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

mkfifo.1p (5612B)


  1. '\" et
  2. .TH MKFIFO "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. mkfifo
  12. \(em make FIFO special files
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. mkfifo \fB[\fR-m \fImode\fB] \fIfile\fR...
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR mkfifo
  21. utility shall create the FIFO special files specified by the operands,
  22. in the order specified.
  23. .P
  24. For each
  25. .IR file
  26. operand, the
  27. .IR mkfifo
  28. utility shall perform actions equivalent to the
  29. \fImkfifo\fR()
  30. function defined in the System Interfaces volume of POSIX.1\(hy2017, called with the following arguments:
  31. .IP " 1." 4
  32. The
  33. .IR file
  34. operand is used as the
  35. .IR path
  36. argument.
  37. .IP " 2." 4
  38. The value of the bitwise-inclusive OR of S_IRUSR, S_IWUSR, S_IRGRP,
  39. S_IWGRP, S_IROTH, and S_IWOTH is used as the
  40. .IR mode
  41. argument. (If the
  42. .BR \-m
  43. option is specified, the value of the
  44. \fImkfifo\fR()
  45. .IR mode
  46. argument is unspecified, but the FIFO shall at no time have permissions
  47. less restrictive than the
  48. .BR \-m
  49. .IR mode
  50. option-argument.)
  51. .SH OPTIONS
  52. The
  53. .IR mkfifo
  54. utility shall conform to the Base Definitions volume of POSIX.1\(hy2017,
  55. .IR "Section 12.2" ", " "Utility Syntax Guidelines".
  56. .P
  57. The following option shall be supported:
  58. .IP "\fB\-m\ \fImode\fR" 10
  59. Set the file permission bits of the newly-created FIFO to the specified
  60. .IR mode
  61. value. The
  62. .IR mode
  63. option-argument shall be the same as the
  64. .IR mode
  65. operand defined for the
  66. .IR chmod
  67. utility. In the
  68. .IR symbolic_mode
  69. strings, the
  70. .IR op
  71. characters
  72. .BR '\(pl'
  73. and
  74. .BR '\-'
  75. shall be interpreted relative to an assumed initial mode of
  76. .IR a =\c
  77. .IR rw .
  78. .SH OPERANDS
  79. The following operand shall be supported:
  80. .IP "\fIfile\fR" 10
  81. A pathname of the FIFO special file to be created.
  82. .SH STDIN
  83. Not used.
  84. .SH "INPUT FILES"
  85. None.
  86. .SH "ENVIRONMENT VARIABLES"
  87. The following environment variables shall affect the execution of
  88. .IR mkfifo :
  89. .IP "\fILANG\fP" 10
  90. Provide a default value for the internationalization variables that are
  91. unset or null. (See the Base Definitions volume of POSIX.1\(hy2017,
  92. .IR "Section 8.2" ", " "Internationalization Variables"
  93. for the precedence of internationalization variables used to determine
  94. the values of locale categories.)
  95. .IP "\fILC_ALL\fP" 10
  96. If set to a non-empty string value, override the values of all the
  97. other internationalization variables.
  98. .IP "\fILC_CTYPE\fP" 10
  99. Determine the locale for the interpretation of sequences of bytes of
  100. text data as characters (for example, single-byte as opposed to
  101. multi-byte characters in arguments).
  102. .IP "\fILC_MESSAGES\fP" 10
  103. .br
  104. Determine the locale that should be used to affect the format and
  105. contents of diagnostic messages written to standard error.
  106. .IP "\fINLSPATH\fP" 10
  107. Determine the location of message catalogs for the processing of
  108. .IR LC_MESSAGES .
  109. .SH "ASYNCHRONOUS EVENTS"
  110. Default.
  111. .SH STDOUT
  112. Not used.
  113. .SH STDERR
  114. The standard error shall be used only for diagnostic messages.
  115. .SH "OUTPUT FILES"
  116. None.
  117. .SH "EXTENDED DESCRIPTION"
  118. None.
  119. .SH "EXIT STATUS"
  120. The following exit values shall be returned:
  121. .IP "\00" 6
  122. All the specified FIFO special files were created successfully.
  123. .IP >0 6
  124. An error occurred.
  125. .SH "CONSEQUENCES OF ERRORS"
  126. Default.
  127. .LP
  128. .IR "The following sections are informative."
  129. .SH "APPLICATION USAGE"
  130. None.
  131. .SH EXAMPLES
  132. None.
  133. .SH RATIONALE
  134. This utility was added to permit shell applications to create FIFO
  135. special files.
  136. .P
  137. The
  138. .BR \-m
  139. option was added to control the file mode, for consistency with the
  140. similar functionality provided by the
  141. .IR mkdir
  142. utility.
  143. .P
  144. Early proposals included a
  145. .BR \-p
  146. option similar to the
  147. .IR mkdir
  148. .BR \-p
  149. option that created intermediate directories leading up to the FIFO
  150. specified by the final component. This was removed because it is not
  151. commonly needed and is not common practice with similar utilities.
  152. .P
  153. The functionality of
  154. .IR mkfifo
  155. is described substantially through a reference to the
  156. \fImkfifo\fR()
  157. function in the System Interfaces volume of POSIX.1\(hy2017. For example, by default, the mode of the FIFO
  158. file is affected by the file mode creation mask in accordance with the
  159. specified behavior of the
  160. \fImkfifo\fR()
  161. function. In this way, there is less duplication of effort required for
  162. describing details of the file creation.
  163. .SH "FUTURE DIRECTIONS"
  164. None.
  165. .SH "SEE ALSO"
  166. .IR "\fIchmod\fR\^",
  167. .IR "\fIumask\fR\^"
  168. .P
  169. The Base Definitions volume of POSIX.1\(hy2017,
  170. .IR "Chapter 8" ", " "Environment Variables",
  171. .IR "Section 12.2" ", " "Utility Syntax Guidelines"
  172. .P
  173. The System Interfaces volume of POSIX.1\(hy2017,
  174. .IR "\fImkfifo\fR\^(\|)"
  175. .\"
  176. .SH COPYRIGHT
  177. Portions of this text are reprinted and reproduced in electronic form
  178. from IEEE Std 1003.1-2017, Standard for Information Technology
  179. -- Portable Operating System Interface (POSIX), The Open Group Base
  180. Specifications Issue 7, 2018 Edition,
  181. Copyright (C) 2018 by the Institute of
  182. Electrical and Electronics Engineers, Inc and The Open Group.
  183. In the event of any discrepancy between this version and the original IEEE and
  184. The Open Group Standard, the original IEEE and The Open Group Standard
  185. is the referee document. The original Standard can be obtained online at
  186. http://www.opengroup.org/unix/online.html .
  187. .PP
  188. Any typographical or formatting errors that appear
  189. in this page are most likely
  190. to have been introduced during the conversion of the source files to
  191. man page format. To report such errors, see
  192. https://www.kernel.org/doc/man-pages/reporting_bugs.html .