ipc.h 857 B

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