ipc.h 613 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _ASM_GENERIC_IPC_H
  2. #define _ASM_GENERIC_IPC_H
  3. /*
  4. * These are used to wrap system calls.
  5. *
  6. * See architecture code for ugly details..
  7. */
  8. struct ipc_kludge {
  9. struct msgbuf __user *msgp;
  10. long msgtyp;
  11. };
  12. #define SEMOP 1
  13. #define SEMGET 2
  14. #define SEMCTL 3
  15. #define SEMTIMEDOP 4
  16. #define MSGSND 11
  17. #define MSGRCV 12
  18. #define MSGGET 13
  19. #define MSGCTL 14
  20. #define SHMAT 21
  21. #define SHMDT 22
  22. #define SHMGET 23
  23. #define SHMCTL 24
  24. /* Used by the DIPC package, try and avoid reusing it */
  25. #define DIPC 25
  26. #define IPCCALL(version,op) ((version)<<16 | (op))
  27. #endif /* _ASM_GENERIC_IPC_H */