Mac Developer Library Developer


This manual page is for Mac OS X version 10.9

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.

MKFIFO(1)                 BSD General Commands Manual                MKFIFO(1)

     mkfifo -- make fifos

     mkfifo [-m mode] fifo_name ...

     mkfifo creates the fifos requested, in the order specified.  By default, the resulting fifos have mode
     0666 (rw-rw-rw-), limited by the current umask(2).

     The options are as follows:

     -m      Set the file permission bits of newly-created fifos to mode, without respect to the current

             The mode is specified as in chmod(1).  In symbolic mode strings, the ``+'' and ``-'' operators
             are interpreted relative to an assumed initial mode of ``a=rw''

     mkfifo requires write permission in the parent directory.

     mkfifo exits with 0 if successful, and with >0 if an error occurred.

     In legacy mode, the fifo's file permission bits are always limited by the current umask.

     For more information about legacy mode, see compat(5).

     mkdir(1), rm(1), umask(1), mkfifo(2), umask(2), compat(5), mknod(8)

     The mkfifo utility is expected to be IEEE Std 1003.2-1992 (``POSIX.2'') compliant.

     mkfifo command appeared in 4.4BSD.

4.4BSD                          January 5, 1994                         4.4BSD

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.