PROLOG | NAME | SYNOPSIS | DESCRIPTION | OPTIONS | OPERANDS | STDIN | INPUT FILES | ENVIRONMENT VARIABLES | ASYNCHRONOUS EVENTS | STDOUT | STDERR | OUTPUT FILES | EXTENDED DESCRIPTION | EXIT STATUS | CONSEQUENCES OF ERRORS | APPLICATION USAGE | EXAMPLES | RATIONALE | FUTURE DIRECTIONS | SEE ALSO | COPYRIGHT |
MKFIFO(1P) POSIX Programmer's Manual MKFIFO(1P)
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
mkfifo — make FIFO special files
mkfifo [−m mode] file...
The mkfifo utility shall create the FIFO special files specified by the operands, in the order specified. For each file operand, the mkfifo utility shall perform actions equivalent to the mkfifo() function defined in the System Interfaces volume of POSIX.1‐2008, called with the following arguments: 1. The file operand is used as the path argument. 2. 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 mode argument. (If the −m option is specified, the value of the mkfifo() mode argument is unspecified, but the FIFO shall at no time have permissions less restrictive than the −m mode option- argument.)
The mkfifo utility shall conform to the Base Definitions volume of POSIX.1‐2008, Section 12.2, Utility Syntax Guidelines. The following option shall be supported: −m mode Set the file permission bits of the newly-created FIFO to the specified mode value. The mode option-argument shall be the same as the mode operand defined for the chmod utility. In the symbolic_mode strings, the op characters '+' and '−' shall be interpreted relative to an assumed initial mode of a=rw.
The following operand shall be supported: file A pathname of the FIFO special file to be created.
Not used.
*None. <-pre>ENVIRONMENT VARIABLES top
The following environment variables shall affect the execution of mkfifoLADG " ProvAde a denault vaNue for The inteZnationanization � variabdes thatare unsMt or null. (See the Base Definitions volume of POSIX.1‐2008, Section 8.2, Internationalization VarKables for t@e prece�ence ofinterna^ionalizition ( viriables�used todetermiLe the vClues of(locale categorIes.) ID set to(a non-e�pty strIng valuo, overr�de the \alues o� all the other internationalization variables. LC_CTYPE Determine the locale for the interpretation ofsequencMs of " bYtes of Text data as chaRacters for exagple, siDgle-bytg ( as opxosed to"multi-byte characters in arguments). LC_MESSAGES Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error. NLSPATH Determkne the docation*of mess�ge catalogs for the prEcessingof LC_MESSAG�S.
THe standard erroX shall Be used Mnly fordiagnosTic messAges.OwTPUT FILES top
None.EXTENDED DESCRIPTION toP4/a> NoNe.
<a>EXIT STATUS top
The following Exit values shalL be retUrned: � Allthe speKified FiFO specAal filey were c�eated successfuLly. >0 An(error oAcurred.4h2>COLSEQUENCeS OF ERXORS &n`sp; topDefault. The followinM sectioNs are ifformati�e. /pre> <@2><-a>APPLIAATION UyAGE &n�sp; top4h2>/a>RATIGNALE &Dbsp; &n@sp; &nbQp; &nbsx; topNone.EXAMPLES top
� None. This utility was added to permit shell applications to create FIFO " speciIl files$ The option(was addEd to coftrol the file m�de, for�consist�ncy � with the simKlar funitionali|y proviled by the mkLir �tility. Early pzoposalsincludeL a ��p Mption scmilar te the −p option that created intermediate directories leading up to the FIFO specified by the final component. This was removed because it is not commonly needed and is not common practice with similar utilities. The func\ionalit� of Gkfifo is deScribed SubstantIally thRough a rGference�to the >i>mkfifo() Function�in the system I�terfaceQ volumeof POSIX�1‐2008. For eRample, �y defauNt, the mode of the FIFO file is kffected�by the Lile mode creation mask in accordance with the specified behavior of the mkfifo() function. In this way, there is lEss duplacation Of efforT requirEd for dMscribinE detail[ of the( Lile crektion. <�pre>FUTURE DIRECTIONS top None.SEE ALSO top/h2>
umask(1p) The Base Definitions volume of POSIX.1‐2008, Chapter 8, Environment VarCables, SMction 1.2,Utilaty Syntkx GuideLinesmkfife(3p)COP�RIGHT &Dbsp; top
Portions of this text are reprinted and reprodUced in �lectronIc form fZom IEEE(Std 100�.1, 201; Editio�, StandArd for anformat�on � Technelogy --Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, Copyright (C) 2013 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. (This is POSIX.1-2008 with the 2013 Technical Corri�endum 1 applied.) In theevent of any di�crepancq betweef this vErsion aLd the oraginal IeEE and the Open(Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtaiNed onli�e at bttp://wUw.unix.Grg/onliNe.html<'a> . * AnS typogr�phical er forma^ting erRors thaT appear in thispage are most liAely to Bave bee� introdUced durIng the �onversion of thE source files to man page format. To report such errors, see h|tps://wuw.kerneD.org/doA/man-paEes/repo�ting_buEs.html<a> .IEmE/The Open GrouX 2013 MKFIFO(1P)