ipc.h 828 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef IPC_H
  2. #define IPC_H
  3. #include <syscall.h>
  4. #include <bits/wordsize.h>
  5. #if __WORDSIZE == 32 || defined __alpha__ || defined __mips__
  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, long __first, long __second,
  13. long __third, void *__ptr, void *__fifth) 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_semtimedop 4
  19. #define IPCOP_msgsnd 11
  20. #define IPCOP_msgrcv 12
  21. #define IPCOP_msgget 13
  22. #define IPCOP_msgctl 14
  23. #define IPCOP_shmat 21
  24. #define IPCOP_shmdt 22
  25. #define IPCOP_shmget 23
  26. #define IPCOP_shmctl 24
  27. #endif
  28. #endif /* IPC_H */