From f9ce39d1e4d541e15aab486f36a02a9d8269e85c Mon Sep 17 00:00:00 2001 From: Elvira Khabirova Date: Fri, 31 Jul 2015 18:44:42 +0300 Subject: [PATCH] ipc.c: move fallback definitions of msg, sem, and shm constants to xlat/ * ipc.c: Move MSG_STAT and MSG_INFO definitions to xlat/msgctl_flags.in. Move SHM_STAT and SHM_INFO definitions to xlat/shmctl_flags.in. Move SEM_STAT and SEM_INFO definitions to xlat/semctl_flags.in. --- ipc.c | 19 ------------------- xlat/msgctl_flags.in | 4 ++-- xlat/semctl_flags.in | 4 ++-- xlat/shmctl_flags.in | 4 ++-- 4 files changed, 6 insertions(+), 25 deletions(-) diff --git a/ipc.c b/ipc.c index 52a1d7ac..27d8c803 100644 --- a/ipc.c +++ b/ipc.c @@ -38,25 +38,6 @@ #include #include -#ifndef MSG_STAT -#define MSG_STAT 11 -#endif -#ifndef MSG_INFO -#define MSG_INFO 12 -#endif -#ifndef SHM_STAT -#define SHM_STAT 13 -#endif -#ifndef SHM_INFO -#define SHM_INFO 14 -#endif -#ifndef SEM_STAT -#define SEM_STAT 18 -#endif -#ifndef SEM_INFO -#define SEM_INFO 19 -#endif - #if !defined IPC_64 # define IPC_64 0x100 #endif diff --git a/xlat/msgctl_flags.in b/xlat/msgctl_flags.in index 0d39e9e9..4b54adf6 100644 --- a/xlat/msgctl_flags.in +++ b/xlat/msgctl_flags.in @@ -2,5 +2,5 @@ IPC_RMID IPC_SET IPC_STAT IPC_INFO -MSG_STAT -MSG_INFO +MSG_STAT 11 +MSG_INFO 12 diff --git a/xlat/semctl_flags.in b/xlat/semctl_flags.in index e50d6d48..5638adba 100644 --- a/xlat/semctl_flags.in +++ b/xlat/semctl_flags.in @@ -2,8 +2,8 @@ IPC_RMID IPC_SET IPC_STAT IPC_INFO -SEM_STAT -SEM_INFO +SEM_STAT 18 +SEM_INFO 19 GETPID GETVAL GETALL diff --git a/xlat/shmctl_flags.in b/xlat/shmctl_flags.in index 4a6ff782..08908bb3 100644 --- a/xlat/shmctl_flags.in +++ b/xlat/shmctl_flags.in @@ -2,7 +2,7 @@ IPC_RMID IPC_SET IPC_STAT IPC_INFO -SHM_STAT -SHM_INFO +SHM_STAT 13 +SHM_INFO 14 SHM_LOCK SHM_UNLOCK -- 2.50.1