Format
>>-mkfifo--pathname--mode--------------------------------------><
Purpose
mkfifo invokes the mknod callable service to create a
new FIFO special file.
Parameters
- pathname
- A path name for the file.
- mode
- A three- or four-digit number, corresponding to the access permission
bits. Each digit must be in the range 0–7,
and at least three digits must be specified. For more information
on permissions, see Setting permissions for files and directories.
Usage
- The file permission bits specified in mode are modified
by the process's file creation mask (see umask),
and then used to set the file permission bits of the file being created.
- The file's owner ID is set to the process's effective
user ID (UID). The group ID is set to the group ID (GID) of the directory
containing the file.
- The mknod service sets the access, change, and modification times
for the new file. It also sets the change and modification times for
the directory that contains the new file.
Examples
In the following example, assume that
pathname was assigned
a value earlier in the exec. The mode
777 grants read-write-execute
permission to everyone.
"mkfifo (pathname) 777"