|
|
HP-UX Reference > Mmkfifo(3C)HP-UX 11i Version 2: December 2007 Update |
|
NAMEmkfifo() — make a FIFO file DESCRIPTIONmkfifo() creates a new FIFO (first-in-first-out) file, at the path name to which path points. The file permission bits of the new file are initialized from the mode argument, as modified by the process's file creation mask: for each bit set in the process's file mode creation mask, the corresponding bit in the new file's mode is cleared (see umask(2)). Bits in mode other than the file permission bits are ignored. The FIFO owner ID is set to the process's effective-user-ID. The FIFO group ID is set to the group ID of the parent directory if the set-group-ID bit is set on that directory. Otherwise the FIFO group ID is set to the process's effective group ID. For details of the I/O behavior of pipes see read(2) and write(2). The following symbolic constants are defined in the <sys/stat.h> header, and should be used to construct the value of the mode argument. The value passed should be the bitwise inclusive OR of the desired permissions:
RETURN VALUEmkfifo() returns 0 upon successful completion. Otherwise, it returns -1, no FIFO is created, and errno is set to indicate the error. ERRORSmkfifo() fails and the new file is not created if any of the following conditions are encountered:
|
|