02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

mkfifo(3P) mkfifo(3P)<br />

NAME<br />

mkf if 0 - make a FIFO special file<br />

SYNOPSIS<br />

finclude <br />

finclude <br />

int mkfifo (path, mode)<br />

char *path;<br />

mode _ t mode;<br />

DESCRIPTION<br />

mk f if 0 creates a new FIFO special file named by the path name<br />

pointed to by path. The mode of the new FIFO is initialized from<br />

mode. The file permission bits of mode are modified by the file<br />

creation mask of the process. If bits in mode other than file permissions<br />

are set, the permissions on the FIFO will be undefined.<br />

For the POSIX environment, the following constants for mode are<br />

defined in :<br />

S IRUSR read permission, owner<br />

S IWUSER<br />

S IXUSR<br />

S IRGRP<br />

S IWGRP<br />

S IXGRP<br />

S IROTH<br />

writer permission, owner<br />

execute/search permission, owner<br />

read permission, group<br />

writer permission, group<br />

execute/search permission, group<br />

read permission, others<br />

S IWOTH writer permission, others<br />

S _ IXOTH execute/search permission, others<br />

The owner ID of the FIFO is set to the effective user ID of the<br />

process. The group ID of the FIFO is set to the effective group ID<br />

of the process.<br />

On successful completion, mkfifo marks for update the<br />

st atime, st ctime, and st mtime fields for the file. The<br />

s t - c time and -s t mt ime fieldS of the directory that contains<br />

thenew entry are also marked for update.<br />

RETURN VALUE<br />

On successful completion, mkfifo returns a value of O. Otherwise,<br />

a value of -1 is returned, no FIFO is created, and errno is<br />

set to indicate the error.<br />

1<br />

February, 1990<br />

Revision C

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!