ipc.h 763 B

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