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:
19
ipc.c
19
ipc.c
@ -38,25 +38,6 @@
|
|||||||
#include <sys/msg.h>
|
#include <sys/msg.h>
|
||||||
#include <sys/shm.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
|
#if !defined IPC_64
|
||||||
# define IPC_64 0x100
|
# define IPC_64 0x100
|
||||||
#endif
|
#endif
|
||||||
|
@ -2,5 +2,5 @@ IPC_RMID
|
|||||||
IPC_SET
|
IPC_SET
|
||||||
IPC_STAT
|
IPC_STAT
|
||||||
IPC_INFO
|
IPC_INFO
|
||||||
MSG_STAT
|
MSG_STAT 11
|
||||||
MSG_INFO
|
MSG_INFO 12
|
||||||
|
@ -2,8 +2,8 @@ IPC_RMID
|
|||||||
IPC_SET
|
IPC_SET
|
||||||
IPC_STAT
|
IPC_STAT
|
||||||
IPC_INFO
|
IPC_INFO
|
||||||
SEM_STAT
|
SEM_STAT 18
|
||||||
SEM_INFO
|
SEM_INFO 19
|
||||||
GETPID
|
GETPID
|
||||||
GETVAL
|
GETVAL
|
||||||
GETALL
|
GETALL
|
||||||
|
@ -2,7 +2,7 @@ IPC_RMID
|
|||||||
IPC_SET
|
IPC_SET
|
||||||
IPC_STAT
|
IPC_STAT
|
||||||
IPC_INFO
|
IPC_INFO
|
||||||
SHM_STAT
|
SHM_STAT 13
|
||||||
SHM_INFO
|
SHM_INFO 14
|
||||||
SHM_LOCK
|
SHM_LOCK
|
||||||
SHM_UNLOCK
|
SHM_UNLOCK
|
||||||
|
Reference in New Issue
Block a user