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

ipcrm.1p (4991B)


  1. '\" et
  2. .TH IPCRM "1P" 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. ipcrm
  12. \(em remove an XSI message queue, semaphore set, or shared memory
  13. segment identifier
  14. .SH SYNOPSIS
  15. .LP
  16. .nf
  17. ipcrm \fB[\fR-q msgid|-Q msgkey|-s semid|-S semkey|-m shmid|-M shmkey\fB]\fR...
  18. .fi
  19. .SH DESCRIPTION
  20. The
  21. .IR ipcrm
  22. utility shall remove zero or more message queues, semaphore sets, or
  23. shared memory segments. The interprocess communication facilities to be
  24. removed are specified by the options.
  25. .P
  26. Only a user with appropriate privileges shall be allowed to remove an
  27. interprocess communication facility that was not created by or owned by
  28. the user invoking
  29. .IR ipcrm .
  30. .SH OPTIONS
  31. The
  32. .IR ipcrm
  33. utility shall conform to the Base Definitions volume of POSIX.1\(hy2017,
  34. .IR "Section 12.2" ", " "Utility Syntax Guidelines".
  35. .P
  36. The following options shall be supported:
  37. .IP "\fB\-q\ \fImsgid\fR" 10
  38. Remove the message queue identifier
  39. .IR msgid
  40. from the system and destroy the message queue and data structure
  41. associated with it.
  42. .IP "\fB\-m\ \fIshmid\fR" 10
  43. Remove the shared memory identifier
  44. .IR shmid
  45. from the system. The shared memory segment and data structure
  46. associated with it shall be destroyed after the last detach.
  47. .IP "\fB\-s\ \fIsemid\fR" 10
  48. Remove the semaphore identifier
  49. .IR semid
  50. from the system and destroy the set of semaphores and data structure
  51. associated with it.
  52. .IP "\fB\-Q\ \fImsgkey\fR" 10
  53. Remove the message queue identifier, created with key
  54. .IR msgkey ,
  55. from the system and destroy the message queue and data structure
  56. associated with it.
  57. .IP "\fB\-M\ \fIshmkey\fR" 10
  58. Remove the shared memory identifier, created with key
  59. .IR shmkey ,
  60. from the system. The shared memory segment and data structure
  61. associated with it shall be destroyed after the last detach.
  62. .IP "\fB\-S\ \fIsemkey\fR" 10
  63. Remove the semaphore identifier, created with key
  64. .IR semkey ,
  65. from the system and destroy the set of semaphores and data structure
  66. associated with it.
  67. .SH OPERANDS
  68. None.
  69. .SH STDIN
  70. Not used.
  71. .SH "INPUT FILES"
  72. None.
  73. .SH "ENVIRONMENT VARIABLES"
  74. The following environment variables shall affect the execution of
  75. .IR ipcrm :
  76. .IP "\fILANG\fP" 10
  77. Provide a default value for the internationalization variables that are
  78. unset or null. (See the Base Definitions volume of POSIX.1\(hy2017,
  79. .IR "Section 8.2" ", " "Internationalization Variables"
  80. for the precedence of internationalization variables used to determine
  81. the values of locale categories.)
  82. .IP "\fILC_ALL\fP" 10
  83. If set to a non-empty string value, override the values of all the
  84. other internationalization variables.
  85. .IP "\fILC_CTYPE\fP" 10
  86. Determine the locale for the interpretation of sequences of bytes of
  87. text data as characters (for example, single-byte as opposed to
  88. multi-byte characters in arguments).
  89. .IP "\fILC_MESSAGES\fP" 10
  90. .br
  91. Determine the locale that should be used to affect the format and
  92. contents of diagnostic messages written to standard error.
  93. .IP "\fINLSPATH\fP" 10
  94. Determine the location of message catalogs for the processing of
  95. .IR LC_MESSAGES .
  96. .SH "ASYNCHRONOUS EVENTS"
  97. Default.
  98. .SH STDOUT
  99. Not used.
  100. .SH STDERR
  101. The standard error shall be used only for diagnostic messages.
  102. .SH "OUTPUT FILES"
  103. None.
  104. .SH "EXTENDED DESCRIPTION"
  105. None.
  106. .SH "EXIT STATUS"
  107. The following exit values shall be returned:
  108. .IP "\00" 6
  109. Successful completion.
  110. .IP >0 6
  111. An error occurred.
  112. .SH "CONSEQUENCES OF ERRORS"
  113. Default.
  114. .LP
  115. .IR "The following sections are informative."
  116. .SH "APPLICATION USAGE"
  117. None.
  118. .SH EXAMPLES
  119. None.
  120. .SH RATIONALE
  121. None.
  122. .SH "FUTURE DIRECTIONS"
  123. None.
  124. .SH "SEE ALSO"
  125. .IR "\fIipcs\fR\^"
  126. .P
  127. The Base Definitions volume of POSIX.1\(hy2017,
  128. .IR "Chapter 8" ", " "Environment Variables",
  129. .IR "Section 12.2" ", " "Utility Syntax Guidelines"
  130. .P
  131. The System Interfaces volume of POSIX.1\(hy2017,
  132. .IR "\fImsgctl\fR\^(\|)",
  133. .IR "\fIsemctl\fR\^(\|)",
  134. .IR "\fIshmctl\fR\^(\|)"
  135. .\"
  136. .SH COPYRIGHT
  137. Portions of this text are reprinted and reproduced in electronic form
  138. from IEEE Std 1003.1-2017, Standard for Information Technology
  139. -- Portable Operating System Interface (POSIX), The Open Group Base
  140. Specifications Issue 7, 2018 Edition,
  141. Copyright (C) 2018 by the Institute of
  142. Electrical and Electronics Engineers, Inc and The Open Group.
  143. In the event of any discrepancy between this version and the original IEEE and
  144. The Open Group Standard, the original IEEE and The Open Group Standard
  145. is the referee document. The original Standard can be obtained online at
  146. http://www.opengroup.org/unix/online.html .
  147. .PP
  148. Any typographical or formatting errors that appear
  149. in this page are most likely
  150. to have been introduced during the conversion of the source files to
  151. man page format. To report such errors, see
  152. https://www.kernel.org/doc/man-pages/reporting_bugs.html .