|MKFIFO(2)||System Calls Manual||MKFIFO(2)|
char *path, mode_t
fd, const char
mkfifo() creates a new FIFO file with name path. The access permissions are specified by mode and restricted by the umask(2) of the calling process.
The FIFO's owner ID is set to the process's effective user ID. The FIFO's group ID is set to that of the parent directory in which it is created.
mkfifoat() function is equivalent to
mkfifo() except that where
path specifies a relative path, the newly created FIFO
is created relative to the directory associated with file descriptor
fd instead of the current working directory.
mkfifoat() is passed the special value
AT_FDCWD (defined in
<fcntl.h>) in the
fd parameter, the current working directory is used
and the behavior is identical to a call to
mkfifoat() will fail and no FIFO will be created if:
NAME_MAXcharacters, or an entire pathname (including the terminating NUL) exceeded
mkfifoat() will fail if:
AT_FDCWDnor a valid file descriptor.
mkfifoat() functions conform to IEEE Std 1003.1-2008 (“POSIX.1”).
mkfifoat() function appeared in OpenBSD 5.0.
|May 31, 2015||OpenBSD-6.2|