|MKFIFO(2)||System Calls Manual||MKFIFO(2)|
— make a FIFO file
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
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
Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the error.
mkfifoat() will fail and no FIFO will be created
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
|May 31, 2015||OpenBSD-6.2|