MKFIFO(3) DOMAIN/IX SYS5 MKFIFO(3)
NAME
mkfifo - make a FIFO special file
USAGE
mkfifo(path, mode)
char *path;
int mode;
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's 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.
NOTES
The DOMAIN System's single level store architecture requires
that all filesystem objects be readable in order to be writ-
able or executable. Since write-only or execute-only files
would be unusable in DOMAIN/IX, modes that specify 02
(write-only) or 01 (execute-only) are ORed with 0400 to
force read permission. This applies to the owner, group,
and world portions of the mode word. For example, if mode
0631 were specified, the mode applied to the file would
actually be 0675.
RETURN VALUE
A successful call returns zero. A failed call returns -1
and sets errno as indicated below.
ERRORS
Mknod will fail if:
[EACCESS] A component of the path prefix denies search per-
mission.
[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's allocated
address space.
Printed 12/4/86 MKFIFO-1
MKFIFO(3) DOMAIN/IX SYS5 MKFIFO(3)
RELATED INFORMATION
chmod(2), stat(2), umask(2)
MKFIFO-2 Printed 12/4/86