mkfifo - make FIFO special file
mkfifo [-m mode] path ...
mkfifo creates the FIFO special files named by its argument list. The
arguments are taken sequentially, in the order specified; and each FIFO
special file is either created completely or, in the case of an error or
signal, not created at all.
For each path argument, the mkfifo command behaves as if the function
mkfifo [see mkfifo(2)] was called with the argument path set to path and
the mode set to the bitwise inclusive OR of S_IRUSR, S_IWUSR, S_IRGRP,
S_IWGRP, S_IROTH and S_IWOTH.
If -m option is specified, the file permission bits of the newly created
FIFO is set to the specified mode value. The mode option argument is the
same as the mode operand defined for the chmod utility. In the
symbolic_mode strings, the op characters + and - are interpreted relative
to an assumed initial mode of a=rw.
If errors are encountered in creating one of the special files, mkfifo
writes a diagnostic message to the standard error and continues with the
remaining arguments, if any.
mkfifo returns exit code 0 if all FIFO special files were created
normally; otherwise it prints a diagnostic and returns a value greater
PPPPaaaaggggeeee 1111 [ Back ]