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.
This commit is contained in:
Elvira Khabirova
2015-07-31 18:44:42 +03:00
committed by Dmitry V. Levin
parent 0c0453a1cb
commit f9ce39d1e4
4 changed files with 6 additions and 25 deletions

19
ipc.c
View File

@ -38,25 +38,6 @@
#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

View File

@ -2,5 +2,5 @@ IPC_RMID
IPC_SET
IPC_STAT
IPC_INFO
MSG_STAT
MSG_INFO
MSG_STAT 11
MSG_INFO 12

View 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

View 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