Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

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 The value of this parameter is constructed by logically ORing ags that are |
dened in the sys/stat.h header le. The permission bits are affected by the |
value of this parameter but depend on both the support for OSS ACLs on the sys- |
tem on which this process is running and on the leset that contains the new |
directory. See "ACL Inheritance" in the acl(5) reference page.
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].
Access Control Lists (ACLs)
If the parent directory has an access control list and that ACL contains default ACL entries: |
An ACL is created for the new FIFO. |
The default ACL entries of the parent directory are copied to the new FIFO both as |
actual (nondefault) ACL entries.
Permissions are determined as described in "ACL Inheritance" in the acl(5) reference |
page. |
4128 Hewlett-Packard Company 527187-007