1 #ifndef IPC_H 2 #define IPC_H 3 #include <syscall.h> 4 #include <bits/kernel-features.h> 5 #include <bits/wordsize.h> 6 7 #ifndef __ARCH_HAS_DEPRECATED_SYSCALLS__ 8 # define __IPC_64 0x0 9 #elif defined __mips__ || defined __m68k__ 10 # if __LINUX_KERNEL_VERSION < 0x050100 11 # define __IPC_64 0x100 12 # else 13 # define __IPC_64 0x0 14 # endif 15 #else 16 # if __WORDSIZE == 32 || defined __alpha__ 17 # define __IPC_64 0x100 18 # else 19 # define __IPC_64 0x0 20 # endif 21 #endif 22 23 #ifdef __NR_ipc 24 25 /* The actual system call: all functions are multiplexed by this. */ 26 extern int __syscall_ipc (unsigned int __call, long __first, long __second, 27 long __third, void *__ptr, void *__fifth) attribute_hidden; 28 29 30 /* The codes for the functions to use the multiplexer `__syscall_ipc'. */ 31 #define IPCOP_semop 1 32 #define IPCOP_semget 2 33 #define IPCOP_semctl 3 34 #define IPCOP_semtimedop 4 35 #define IPCOP_msgsnd 11 36 #define IPCOP_msgrcv 12 37 #define IPCOP_msgget 13 38 #define IPCOP_msgctl 14 39 #define IPCOP_shmat 21 40 #define IPCOP_shmdt 22 41 #define IPCOP_shmget 23 42 #define IPCOP_shmctl 24 43 44 #endif 45 46 #endif /* IPC_H */ 47