MKFIFO(3) SysV MKFIFO(3)
NAME
mkfifo - make a FIFO special file
SYNOPSIS
mkfifo(path, mode)
char *path;
int mode;
DESCRIPTION
mkfifo creates a FIFO special file whose name is pointed to by path. mode
sets the mode of the new file, including the special file bits. (The
protection part of the mode is modified by the process' mode mask; see
umask(2)). The owner ID of the file is set to the effective user ID of
the process. The group ID of the file is set to the effective group ID
of the process.
ERRORS
mkfifo will fail if:
[EACCESS] A component of the path prefix denies search permission.
[EIO] An I/O error occurred while writing to the file system.
[ENOTDIR] A component of the path prefix is not a directory.
[ENOENT] A component of the path prefix does not exist.
[EROFS] The named file resides on a read-only file system.
[EEXIST] The named file exists.
[EFAULT] path points outside the process' allocated address space.
SEE ALSO
chmod(2), stat(2), umask(2)
DIAGNOSTICS
A successful call returns zero. A failed call returns -1 and sets errno
as indicated under "Errors."