ipc.h 910 B

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