logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

sys_ipc.h.0p (2921B)


  1. '\" et
  2. .TH sys_ipc.h "0P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. sys/ipc.h
  12. \(em XSI interprocess communication access structure
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <sys/ipc.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <sys/ipc.h>
  21. header is used by three mechanisms for XSI interprocess communication
  22. (IPC):
  23. messages, semaphores, and shared memory. All use a common structure
  24. type,
  25. .BR ipc_perm ,
  26. to pass information used in determining permission to perform an IPC
  27. operation.
  28. .P
  29. The
  30. .IR <sys/ipc.h>
  31. header shall define the
  32. .BR ipc_perm
  33. structure, which shall include the following members:
  34. .sp
  35. .RS 4
  36. .nf
  37. uid_t uid \fROwner's user ID.\fR
  38. gid_t gid \fROwner's group ID.\fR
  39. uid_t cuid \fRCreator's user ID.\fR
  40. gid_t cgid \fRCreator's group ID.\fR
  41. mode_t mode \fRRead/write permission.\fR
  42. .fi
  43. .P
  44. .RE
  45. .P
  46. The
  47. .IR <sys/ipc.h>
  48. header shall define the
  49. .BR uid_t ,
  50. .BR gid_t ,
  51. .BR mode_t ,
  52. and
  53. .BR key_t
  54. types as described in
  55. .IR <sys/types.h> .
  56. .P
  57. The
  58. .IR <sys/ipc.h>
  59. header shall define the following symbolic constants.
  60. .P
  61. Mode bits:
  62. .IP IPC_CREAT 12
  63. Create entry if key does not exist.
  64. .IP IPC_EXCL 12
  65. Fail if key exists.
  66. .IP IPC_NOWAIT 12
  67. Error if request must wait.
  68. .P
  69. Keys:
  70. .IP IPC_PRIVATE 12
  71. Private key.
  72. .P
  73. Control commands:
  74. .IP IPC_RMID 12
  75. Remove identifier.
  76. .IP IPC_SET 12
  77. Set options.
  78. .IP IPC_STAT 12
  79. Get options.
  80. .P
  81. The following shall be declared as a function and may also be defined
  82. as a macro. A function prototype shall be provided.
  83. .sp
  84. .RS 4
  85. .nf
  86. key_t ftok(const char *, int);
  87. .fi
  88. .P
  89. .RE
  90. .LP
  91. .IR "The following sections are informative."
  92. .SH "APPLICATION USAGE"
  93. None.
  94. .SH RATIONALE
  95. None.
  96. .SH "FUTURE DIRECTIONS"
  97. None.
  98. .SH "SEE ALSO"
  99. .IR "\fB<sys_types.h>\fP"
  100. .P
  101. The System Interfaces volume of POSIX.1\(hy2017,
  102. .IR "\fIftok\fR\^(\|)"
  103. .\"
  104. .SH COPYRIGHT
  105. Portions of this text are reprinted and reproduced in electronic form
  106. from IEEE Std 1003.1-2017, Standard for Information Technology
  107. -- Portable Operating System Interface (POSIX), The Open Group Base
  108. Specifications Issue 7, 2018 Edition,
  109. Copyright (C) 2018 by the Institute of
  110. Electrical and Electronics Engineers, Inc and The Open Group.
  111. In the event of any discrepancy between this version and the original IEEE and
  112. The Open Group Standard, the original IEEE and The Open Group Standard
  113. is the referee document. The original Standard can be obtained online at
  114. http://www.opengroup.org/unix/online.html .
  115. .PP
  116. Any typographical or formatting errors that appear
  117. in this page are most likely
  118. to have been introduced during the conversion of the source files to
  119. man page format. To report such errors, see
  120. https://www.kernel.org/doc/man-pages/reporting_bugs.html .