]> granicus.if.org Git - strace/commitdiff
ipc.c: move fallback definitions of msg, sem, and shm constants to xlat/
authorElvira Khabirova <lineprinter0@gmail.com>
Fri, 31 Jul 2015 15:44:42 +0000 (18:44 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 1 Aug 2015 16:52:43 +0000 (16:52 +0000)
* 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
xlat/msgctl_flags.in
xlat/semctl_flags.in
xlat/shmctl_flags.in

diff --git a/ipc.c b/ipc.c
index 52a1d7ac6fb169080811bbca632afdafeb19cfbc..27d8c8035814e266fc9b6c0b9406311c542df576 100644 (file)
--- a/ipc.c
+++ b/ipc.c
 #include <sys/msg.h>
 #include <sys/shm.h>
 
-#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
index 0d39e9e9a7837fd5177f5ed8fa96852a4400998d..4b54adf67befc327b8b70dd62ecdb519b45e3f9a 100644 (file)
@@ -2,5 +2,5 @@ IPC_RMID
 IPC_SET
 IPC_STAT
 IPC_INFO
-MSG_STAT
-MSG_INFO
+MSG_STAT 11
+MSG_INFO 12
index e50d6d4875600d3e84c776e39606b5a1207d687d..5638adba6b978700a0b5a83e7cd790a387992f28 100644 (file)
@@ -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
index 4a6ff782ca00e6fc3f671ca606fc66ac8774488b..08908bb33b6ced74f8850223930cc44e062405da 100644 (file)
@@ -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