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_shm.h.0p (3340B)


  1. '\" et
  2. .TH sys_shm.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/shm.h
  12. \(em XSI shared memory facility
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <sys/shm.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <sys/shm.h>
  21. header shall define the following symbolic constants:
  22. .IP SHM_RDONLY 12
  23. Attach read-only (else read-write).
  24. .IP SHM_RND 12
  25. Round attach address to SHMLBA.
  26. .IP SHMLBA 12
  27. Segment low boundary address multiple.
  28. .P
  29. The
  30. .IR <sys/shm.h>
  31. header shall define the following data types through
  32. .BR typedef :
  33. .IP "\fBshmatt_t\fP" 12
  34. Unsigned integer used for the number of current attaches that must be
  35. able to store values at least as large as a type
  36. .BR "unsigned short" .
  37. .P
  38. The
  39. .IR <sys/shm.h>
  40. header shall define the
  41. .BR shmid_ds
  42. structure, which shall include the following members:
  43. .sp
  44. .RS 4
  45. .nf
  46. struct ipc_perm shm_perm \fROperation permission structure.\fR
  47. size_t shm_segsz \fRSize of segment in bytes.\fR
  48. pid_t shm_lpid \fRProcess ID of last shared memory operation.\fR
  49. pid_t shm_cpid \fRProcess ID of creator.\fR
  50. shmatt_t shm_nattch \fRNumber of current attaches.\fR
  51. time_t shm_atime \fRTime of last \fIshmat\fP\^(\|).\fR
  52. time_t shm_dtime \fRTime of last \fIshmdt\fP\^(\|).\fR
  53. time_t shm_ctime \fRTime of last change by \fIshmctl\fP\^(\|).\fR
  54. .fi
  55. .P
  56. .RE
  57. .P
  58. The
  59. .IR <sys/shm.h>
  60. header shall define the
  61. .BR pid_t ,
  62. .BR size_t ,
  63. and
  64. .BR time_t
  65. types as described in
  66. .IR <sys/types.h> .
  67. .P
  68. The following shall be declared as functions and may also be defined
  69. as macros. Function prototypes shall be provided.
  70. .sp
  71. .RS 4
  72. .nf
  73. void *shmat(int, const void *, int);
  74. int shmctl(int, int, struct shmid_ds *);
  75. int shmdt(const void *);
  76. int shmget(key_t, size_t, int);
  77. .fi
  78. .P
  79. .RE
  80. .P
  81. In addition, the
  82. .IR <sys/shm.h>
  83. header shall include the
  84. .IR <sys/ipc.h>
  85. header.
  86. .LP
  87. .IR "The following sections are informative."
  88. .SH "APPLICATION USAGE"
  89. None.
  90. .SH RATIONALE
  91. None.
  92. .SH "FUTURE DIRECTIONS"
  93. None.
  94. .SH "SEE ALSO"
  95. .IR "\fB<sys_ipc.h>\fP",
  96. .IR "\fB<sys_types.h>\fP"
  97. .P
  98. The System Interfaces volume of POSIX.1\(hy2017,
  99. .IR "\fIshmat\fR\^(\|)",
  100. .IR "\fIshmctl\fR\^(\|)",
  101. .IR "\fIshmdt\fR\^(\|)",
  102. .IR "\fIshmget\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 .