Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

mkfo(3) OSS Library Calls Reference Manual
NAME
mkfo - Creates a FIFO special le
LIBRARY
G-series native Guardian processes: system library
G-series native OSS processes: system library
H-series native Guardian processes: implicit libraries
H-series OSS processes: implicit libraries
SYNOPSIS
#include <sys/types.h> /* optional except for POSIX.1 */
#include <sys/stat.h>
int mkfo(
const char *path,
mode_t mode);
PARAMETERS
path Names the new le. If any component of the path parameter names a symbolic
link, the link will be traversed and pathname resolution will continue.
mode Species the access permissions of the le, which are modied by the processs
le creation mask (see the umask( ) reference page). The value of this parameter
is constructed by logically ORing ags that are dened in the sys/stat.h header
le.
DESCRIPTION
The mkfo( ) function creates a new FIFO special le with the name pointed to by the path
parameter. The le permission bits of the new FIFO are initialized from the mode parameter.
The le permission bits of the mode parameter are modied by the processs le creation mask
(see the umask() reference page).
Upon successful completion, the mkfo( ) function marks the st_atime, st_ctime, and st_mtime
elds of the le for update and sets the st_ctime and st_mtime elds of the directory that con-
tains the new entry for update.
The group ID of the new FIFO is determined by the value of the S_ISGID ag in the parent
directory. If the S_ISGID ag is set, the group ID is set to the group ID of the parent directory;
otherwise the group ID is set to the effective group ID of the calling process.
Attempting to create a FIFO named lost+found in the root directory of an OSS leset causes the
mkfo() function to fail with errno set to [EPERM]. If the le already exists, errno is set to
[EEXIST].
If bits in the mode parameter other than the le permission bits or S_IFIFO are set, mkfo() fails
and sets errno to [EINVAL].
Use on Guardian Objects
Attempting to create a FIFO within the Guardian le system (that is, within G) fails with errno
set to [EINVAL].
4128 Hewlett-Packard Company 527187-004