Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mkdir(1)

chmod(2)

exec(2)

mknod(2)

umask(2)

fs_ufs(4)

attributes(5)

stat(5)

mkfifo(3C)

NAME

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(2)). 

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 directory. 

mkfifo() calls the mknod(2) function 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 indicate the error. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe

SEE ALSO

mkdir(1), chmod(2), exec(2), mknod(2), umask(2), fs_ufs(4), attributes(5), stat(5)

NOTES

Bits other than the file permission bits in mode are ignored. 

SunOS 5.6  —  Last change: 29 Dec 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026