make a FIFO special file
cc . . . -lc
int mkfifo (path, mode)
routine creates a new
special file named by the pathname specified by
The permissions of the new
are initialized from
The file permission bits of the
argument are modified by the process's file creation mask (see
When bits in
other than the file permission bits are set, the effect is
is set to the process's effective user
is set to the group
of the directory in which the
is being created or to the process's effective group
Upon successful completion, the
function marks the
fields of the file for update. Also, the
fields of the directory that contains
the new entry are marked for update.
Upon successful completion a value of zero is returned.
Otherwise, a value of -1 is returned, no
is created, and
is set to indicate the error.
If any of the following conditions occur, the
function returns -1 and sets
to the corresponding value:
A component of the path prefix denies search permission.
The named file already exists.
The length of the
or a pathname component is longer than
is in effect.
A component of the path prefix does not exist or the
argument points to an empty string.
The directory that would contain the new file cannot
be extended or the file system is out of file allocation resources.
A component of the path prefix is not a directory.
The named file resides on a read-only file system.
mkfifo is conformant with:
IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C Language] (ISO/IEC 9945-1)
NIST FIPS 151-1
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003