Un outil pour savoir si une commande est posix - retour accueil
git clone git://bebou.netlib.re/isposix
Log | Files | Refs | README |
mkfifo.html (11026B)
1 <!-- Copyright 2001-2024 IEEE and The Open Group, All Rights Reserved --> 2 <!DOCTYPE HTML> 3 <html lang="en"> 4 <head> 5 <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.8.0"> 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 7 <link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group rhtm tool v1.2.4 --> 8 <!-- Copyright (c) 2001-2024 The Open Group, All Rights Reserved --> 9 <title>mkfifo</title> 10 </head> 11 <body bgcolor="white"> 12 <div class="NAVHEADER"> 13 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"> 14 <tr class="nav"> 15 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/mkdir.html" accesskey="P"><<< 16 Previous</a></td> 17 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td> 18 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/more.html" accesskey="N">Next >>></a></td> 19 </tr> 20 </table> 21 <hr align="left" width="100%"></div> 22 <script language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> 23 <center><font size="2">The Open Group Base Specifications Issue 8<br> 24 IEEE Std 1003.1-2024<br> 25 Copyright © 2001-2024 The IEEE and The Open Group</font></center> 26 <hr size="2" noshade> 27 <a name="top" id="top"></a> <a name="mkfifo" id="mkfifo"></a> <a name="tag_20_80" id="tag_20_80"></a><!-- mkfifo --> 28 <h4 class="mansect"><a name="tag_20_80_01" id="tag_20_80_01"></a>NAME</h4> 29 <blockquote>mkfifo — make FIFO special files</blockquote> 30 <h4 class="mansect"><a name="tag_20_80_02" id="tag_20_80_02"></a>SYNOPSIS</h4> 31 <blockquote class="synopsis"> 32 <p><code><tt>mkfifo</tt> <b>[</b><tt>-m</tt> <i>mode</i><b>]</b> <i>file</i><tt>...</tt></code></p> 33 </blockquote> 34 <h4 class="mansect"><a name="tag_20_80_03" id="tag_20_80_03"></a>DESCRIPTION</h4> 35 <blockquote> 36 <p>The <i>mkfifo</i> utility shall create the FIFO special files specified by the operands, in the order specified.</p> 37 <p>For each <i>file</i> operand, the <i>mkfifo</i> utility shall perform actions equivalent to the <a href= 38 "../functions/mkfifo.html"><i>mkfifo</i>()</a> function defined in the System Interfaces volume of POSIX.1-2024, called with the 39 following arguments:</p> 40 <ol> 41 <li> 42 <p>The <i>file</i> operand is used as the <i>path</i> argument.</p> 43 </li> 44 <li> 45 <p>The value of the bitwise-inclusive OR of S_IRUSR, S_IWUSR, S_IRGRP, S_IWGRP, S_IROTH, and S_IWOTH is used as the <i>mode</i> 46 argument. (If the <b>-m</b> option is specified, the value of the <a href="../functions/mkfifo.html"><i>mkfifo</i>()</a> 47 <i>mode</i> argument is unspecified, but the FIFO shall at no time have permissions less restrictive than the <b>-m</b> <i>mode</i> 48 option-argument.)</p> 49 </li> 50 </ol> 51 </blockquote> 52 <h4 class="mansect"><a name="tag_20_80_04" id="tag_20_80_04"></a>OPTIONS</h4> 53 <blockquote> 54 <p>The <i>mkfifo</i> utility shall conform to XBD <a href="../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax 55 Guidelines</i></a> .</p> 56 <p>The following option shall be supported:</p> 57 <dl compact> 58 <dd></dd> 59 <dt><b>-m </b><i>mode</i></dt> 60 <dd>Set the file permission bits of the newly-created FIFO to the specified <i>mode</i> value. The <i>mode</i> option-argument 61 shall be the same as the <i>mode</i> operand defined for the <a href="../utilities/chmod.html"><i>chmod</i></a> utility. In the 62 <i>symbolic_mode</i> strings, the <i>op</i> characters <tt>'+'</tt> and <tt>'-'</tt> shall be interpreted relative to an assumed 63 initial mode of <i>a</i>=<i>rw</i>.</dd> 64 </dl> 65 </blockquote> 66 <h4 class="mansect"><a name="tag_20_80_05" id="tag_20_80_05"></a>OPERANDS</h4> 67 <blockquote> 68 <p>The following operand shall be supported:</p> 69 <dl compact> 70 <dd></dd> 71 <dt><i>file</i></dt> 72 <dd>A pathname of the FIFO special file to be created.</dd> 73 </dl> 74 </blockquote> 75 <h4 class="mansect"><a name="tag_20_80_06" id="tag_20_80_06"></a>STDIN</h4> 76 <blockquote> 77 <p>Not used.</p> 78 </blockquote> 79 <h4 class="mansect"><a name="tag_20_80_07" id="tag_20_80_07"></a>INPUT FILES</h4> 80 <blockquote> 81 <p>None.</p> 82 </blockquote> 83 <h4 class="mansect"><a name="tag_20_80_08" id="tag_20_80_08"></a>ENVIRONMENT VARIABLES</h4> 84 <blockquote> 85 <p>The following environment variables shall affect the execution of <i>mkfifo</i>:</p> 86 <dl compact> 87 <dd></dd> 88 <dt><i>LANG</i></dt> 89 <dd>Provide a default value for the internationalization variables that are unset or null. (See XBD <a href= 90 "../basedefs/V1_chap08.html#tag_08_02"><i>8.2 Internationalization Variables</i></a> for the precedence of internationalization 91 variables used to determine the values of locale categories.)</dd> 92 <dt><i>LC_ALL</i></dt> 93 <dd>If set to a non-empty string value, override the values of all the other internationalization variables.</dd> 94 <dt><i>LC_CTYPE</i></dt> 95 <dd>Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as 96 opposed to multi-byte characters in arguments).</dd> 97 <dt><i>LC_MESSAGES</i></dt> 98 <dd><br> 99 Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.</dd> 100 <dt><i>NLSPATH</i></dt> 101 <dd><sup>[<a href="javascript:open_code('XSI')">XSI</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0"> 102 Determine the location of messages objects and message catalogs. <img src="../images/opt-end.gif" alt="[Option End]" border= 103 "0"></dd> 104 </dl> 105 </blockquote> 106 <h4 class="mansect"><a name="tag_20_80_09" id="tag_20_80_09"></a>ASYNCHRONOUS EVENTS</h4> 107 <blockquote> 108 <p>Default.</p> 109 </blockquote> 110 <h4 class="mansect"><a name="tag_20_80_10" id="tag_20_80_10"></a>STDOUT</h4> 111 <blockquote> 112 <p>Not used.</p> 113 </blockquote> 114 <h4 class="mansect"><a name="tag_20_80_11" id="tag_20_80_11"></a>STDERR</h4> 115 <blockquote> 116 <p>The standard error shall be used only for diagnostic messages.</p> 117 </blockquote> 118 <h4 class="mansect"><a name="tag_20_80_12" id="tag_20_80_12"></a>OUTPUT FILES</h4> 119 <blockquote> 120 <p>None.</p> 121 </blockquote> 122 <h4 class="mansect"><a name="tag_20_80_13" id="tag_20_80_13"></a>EXTENDED DESCRIPTION</h4> 123 <blockquote> 124 <p>None.</p> 125 </blockquote> 126 <h4 class="mansect"><a name="tag_20_80_14" id="tag_20_80_14"></a>EXIT STATUS</h4> 127 <blockquote> 128 <p>The following exit values shall be returned:</p> 129 <dl compact> 130 <dd></dd> 131 <dt> 0</dt> 132 <dd>All the specified FIFO special files were created successfully.</dd> 133 <dt>>0</dt> 134 <dd>An error occurred.</dd> 135 </dl> 136 </blockquote> 137 <h4 class="mansect"><a name="tag_20_80_15" id="tag_20_80_15"></a>CONSEQUENCES OF ERRORS</h4> 138 <blockquote> 139 <p>Default.</p> 140 </blockquote> 141 <hr> 142 <div class="box"><em>The following sections are informative.</em></div> 143 <h4 class="mansect"><a name="tag_20_80_16" id="tag_20_80_16"></a>APPLICATION USAGE</h4> 144 <blockquote> 145 <p>None.</p> 146 </blockquote> 147 <h4 class="mansect"><a name="tag_20_80_17" id="tag_20_80_17"></a>EXAMPLES</h4> 148 <blockquote> 149 <p>None.</p> 150 </blockquote> 151 <h4 class="mansect"><a name="tag_20_80_18" id="tag_20_80_18"></a>RATIONALE</h4> 152 <blockquote> 153 <p>This utility was added to permit shell applications to create FIFO special files.</p> 154 <p>The <b>-m</b> option was added to control the file mode, for consistency with the similar functionality provided by the <a href= 155 "../utilities/mkdir.html"><i>mkdir</i></a> utility.</p> 156 <p>Early proposals included a <b>-p</b> option similar to the <a href="../utilities/mkdir.html"><i>mkdir</i></a> <b>-p</b> option 157 that created intermediate directories leading up to the FIFO specified by the final component. This was removed because it is not 158 commonly needed and is not common practice with similar utilities.</p> 159 <p>The functionality of <i>mkfifo</i> is described substantially through a reference to the <a href= 160 "../functions/mkfifo.html"><i>mkfifo</i>()</a> function in the System Interfaces volume of POSIX.1-2024. For example, by default, 161 the mode of the FIFO file is affected by the file mode creation mask in accordance with the specified behavior of the <a href= 162 "../functions/mkfifo.html"><i>mkfifo</i>()</a> function. In this way, there is less duplication of effort required for describing 163 details of the file creation.</p> 164 </blockquote> 165 <h4 class="mansect"><a name="tag_20_80_19" id="tag_20_80_19"></a>FUTURE DIRECTIONS</h4> 166 <blockquote> 167 <p>If this utility is directed to create a new directory entry that contains any bytes that have the encoded value of a 168 <newline> character, implementations are encouraged to treat this as an error. A future version of this standard may require 169 implementations to treat this as an error.</p> 170 </blockquote> 171 <h4 class="mansect"><a name="tag_20_80_20" id="tag_20_80_20"></a>SEE ALSO</h4> 172 <blockquote> 173 <p><a href="../utilities/chmod.html#tag_20_17"><i>chmod</i></a> , <a href="../utilities/umask.html#tag_20_132"><i>umask</i></a></p> 174 <p>XBD <a href="../basedefs/V1_chap08.html#tag_08"><i>8. Environment Variables</i></a> , <a href= 175 "../basedefs/V1_chap12.html#tag_12_02"><i>12.2 Utility Syntax Guidelines</i></a></p> 176 <p>XSH <a href="../functions/mkfifo.html#tag_17_340"><i>mkfifo</i></a></p> 177 </blockquote> 178 <h4 class="mansect"><a name="tag_20_80_21" id="tag_20_80_21"></a>CHANGE HISTORY</h4> 179 <blockquote> 180 <p>First released in Issue 3.</p> 181 </blockquote> 182 <h4 class="mansect"><a name="tag_20_80_22" id="tag_20_80_22"></a>Issue 6</h4> 183 <blockquote> 184 <p>The <b>-m</b> option is aligned with the IEEE P1003.2b draft standard to clarify an ambiguity.</p> 185 </blockquote> 186 <h4 class="mansect"><a name="tag_20_80_23" id="tag_20_80_23"></a>Issue 8</h4> 187 <blockquote> 188 <p>Austin Group Defect 251 is applied, encouraging implementations to disallow the creation of filenames containing any bytes that 189 have the encoded value of a <newline> character.</p> 190 <p>Austin Group Defect 1122 is applied, changing the description of <i>NLSPATH .</i></p> 191 </blockquote> 192 <div class="box"><em>End of informative text.</em></div> 193 <hr> 194 <p> </p> 195 <a href="#top"><span class="topOfPage">return to top of page</span></a><br> 196 <hr size="2" noshade> 197 <center><font size="2">UNIX® is a registered Trademark of The Open Group.<br> 198 POSIX™ is a Trademark of The IEEE.<br> 199 Copyright © 2001-2024 The IEEE and The Open Group, All Rights Reserved<br> 200 [ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href= 201 "../functions/contents.html">XSH</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../xrat/contents.html">XRAT</a> 202 ]</font></center> 203 <hr size="2" noshade> 204 <div class="NAVHEADER"> 205 <table summary="Header navigation table" class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"> 206 <tr class="nav"> 207 <td class="nav" width="15%" align="left" valign="bottom"><a href="../utilities/mkdir.html" accesskey="P"><<< 208 Previous</a></td> 209 <td class="nav" width="70%" align="center" valign="bottom"><a href="contents.html">Home</a></td> 210 <td class="nav" width="15%" align="right" valign="bottom"><a href="../utilities/more.html" accesskey="N">Next >>></a></td> 211 </tr> 212 </table> 213 <hr align="left" width="100%"></div> 214 </body> 215 </html>