NAME | SYNOPSIS | FEATURES | DESCRIPTION | ERRORS | ATTRIBUTES | SEE ALSO
#include <sys/types.h> #include <sys/stat.h>int mkfifo(const char *path, mode_t mode);
MSDOSFS, NFS_CLIENT, UFS
The mkfifo system call creates a new fifo file with the name path. The access permissions are specified by mode.
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
If successful, mkfifo returns a value of 0, otherwise a value of -1 is returned, and errno is set to indicate one of the following error conditions.
A component of the path prefix is not a directory.
A component of a pathname exceeded NAME_MAX characters, or an entire path name exceeded PATH_MAX characters.
A component of the path prefix does not exist.
Search permission is denied for a component of the path prefix.
Too many symbolic links were encountered in translating the pathname.
The file named resides on a read-only file system.
The file named already exists.
The directory in which the entry for the new fifo is being placed cannot be extended because there is no space left on the file system containing the directory.
There are no free inodes on the file system on which the fifo is being created.
An I/O error occurred while making the directory entry or allocating the inode. An I/O error occurred while reading from or writing to the file system.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | ERRORS | ATTRIBUTES | SEE ALSO