mkfifo(S)
mkfifo --
create a new FIFO
Synopsis
#include <sys/types.h>
#include <sys/stat.h>
int mkfifo (const char path, mode_t mode);
Description
The
mkfifo
routine creates a new FIFO special file named by the pathname pointed to by
path. The mode of the new FIFO is initialized from mode. The
file permission bits of the mode argument are modified by the process's
file creation mask (see
umask(S)).
The FIFO's owner ID is set to the process's effective user ID.
The FIFO's
group ID is set to the process's effective group ID,
or if the S_ISGID bit is set in the parent directory then the
group ID of the FIFO is inherited from the parent.
mkfifo calls the system call mknod
to make the file.
Return values
Upon successful completion a value of 0 is returned. Otherwise, a value
of -1 is returned and errno is set to identify the error.
References
chmod(S),
exec(S),
mkdir(C),
mknod(S),
stat(M),
umask(S)
Notices
Bits other than the file permission bits in mode are ignored.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005