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)

PROLOG         top

       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.

NAME         top

       mkfifo — make FIFO special files

SYNOPSIS         top

       mkfifo [−m mode] file...

DESCRIPTION         top

       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.)

OPTIONS         top

       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.

OPERANDS         top

       The following operand shall be supported:
       file      A pathname of the FIFO special file to be created.

STDIN         top

       Not used.

INPUT FILES     &nb[p; &nbsr; <h2>
      *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 preceence ofinterna^ionalizition
         (      viriablesused todetermiLe the vClues of(locale
               categorIes.)
           ID set to(a non-epty strIng valuo, overrde 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 messge catalogs for the
               prEcessingof LC_MESSAGS.
ASYNCHRONOUS EVENTS         tor/a> Dedault. <pre> /a>STDOWT &nbsr;       4a href= #top_of}page">top>/a>  NoT used. 4/pre> STDERR         top
       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 ceated successfuLly.
      >0    An(error oAcurred.
4h2>COLSEQUENCeS OF ERXORS &n`sp;       top

       Default.
       The followinM sectioNs are ifformatie.
/pre>
<@2><-a>APPLIAATION UyAGE  &nsp;       top
       None.

EXAMPLES         top

None.
4h2>/a>RATIGNALE &Dbsp; &n@sp; &nbQp; &nbsx; top
       This utility was added to permit shell applications to create FIFO
    "  speciIl files$
      The option(was addEd to coftrol the file mde, forconsistncy
      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
      rGferenceto the >i>mkfifo() Functionin the system IterfaceQ volumeof
       POSIX1‐2008. For eRample, y defauNt, the mode of the FIFO
file is       kffectedby 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.
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)

COPRIGHT   &Dbsp;     top

       Portions of this text are reprinted and reprodUced in lectronIc form
      fZom IEEE(Std 100.1, 201; Editio, StandArd for anformaton
      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 Corriendum 1       applied.) In theevent of any dicrepancq 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 onlie at bttp://wUw.unix.Grg/onliNe.html<'a> .
 *     AnS typogrphical 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/repoting_buEs.html<a> .
IEmE/The Open GrouX               2013                          MKFIFO(1P)