ipc.h 605 B

123456789101112131415161718192021222324252627
  1. #ifndef IPC_H
  2. #define IPC_H
  3. #include <syscall.h>
  4. #ifdef __NR_ipc
  5. /* The actual system call: all functions are multiplexed by this. */
  6. extern int __ipc __P((int __call, int __first, int __second,
  7. int __third, void *__ptr));
  8. /* The codes for the functions to use the multiplexer `__syscall_ipc'. */
  9. #define IPCOP_semop 1
  10. #define IPCOP_semget 2
  11. #define IPCOP_semctl 3
  12. #define IPCOP_msgsnd 11
  13. #define IPCOP_msgrcv 12
  14. #define IPCOP_msgget 13
  15. #define IPCOP_msgctl 14
  16. #define IPCOP_shmat 21
  17. #define IPCOP_shmdt 22
  18. #define IPCOP_shmget 23
  19. #define IPCOP_shmctl 24
  20. #endif
  21. #endif /* IPC_H */