mkfifo(1)
NAME
mkfifo − make FIFO (named pipe) special files
SYNOPSIS
mkfifo [-p] [-m mode] filename ...
DESCRIPTION
mkfifo creates the FIFO special files named by its operand list. The operands are taken sequentially in the order specified and, if the user has write permission in the appropriate directory, the FIFO is created with permissions 0666 modified by the user’s file mode creation mask (see umask(2)).
The specific actions performed are equivalent to calling
mkfifo(filename, 0666)
for each filename in the operand list (see mkfifo(2)).
Options
mkfifo recognizes the following command-line options:
-m mode After creating the FIFO special file, set the permission bits of the new file to the specified mode value. The mode option argument is a symbolic mode string as defined in chmod(1).
-p Create any missing intermediate path name components.
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If LANG is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG.
If any internationalization variable contains an invalid setting, mkfifo behaves as if all internationalization variables are set to "C". See environ(5).
International Code Set Support
Single-byte character code sets are supported.
RETURN VALUE
mkfifo returns zero if invoked with at least one operand and if all FIFO special files were created successfully. Otherwise, it prints a diagnostic message and returns non-zero.
EXAMPLES
The following command creates a FIFO special file named peacepipe in the current directory:
mkfifo peacepipe
SEE ALSO
chmod(1), umask(1), mknod(1M), mkfifo(3C).
STANDARDS CONFORMANCE
mkfifo: XPG3, POSIX.2 ." tocmkfifo(1): mkfifo make FIFO (named pipe) special files ." index mkfifo − make FIFO (named pipe) special files mkfifo(1) ." index make FIFO (named pipe) special files mkfifo(1) ." index FIFO (named pipe) special files, make mkfifo(1) ." index (named pipe) special files, make FIFO mkfifo(1) ." index special files, make FIFO (named pipe) mkfifo(1)
Hewlett-Packard Company — HP-UX Release 9.0: August 1992