ipc.h 644 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _SYS_IPC_H
  2. #define _SYS_IPC_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <features.h>
  7. #define __NEED_uid_t
  8. #define __NEED_gid_t
  9. #define __NEED_mode_t
  10. #define __NEED_key_t
  11. #include <bits/alltypes.h>
  12. #define __ipc_perm_key __key
  13. #define __ipc_perm_seq __seq
  14. #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  15. #define __key key
  16. #define __seq seq
  17. #endif
  18. #include <bits/ipc.h>
  19. #define IPC_CREAT 01000
  20. #define IPC_EXCL 02000
  21. #define IPC_NOWAIT 04000
  22. #define IPC_RMID 0
  23. #define IPC_SET 1
  24. #define IPC_STAT 2
  25. #define IPC_INFO 3
  26. #define IPC_PRIVATE ((key_t) 0)
  27. key_t ftok (const char *, int);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif