MKFIFO(2) MKFIFO(2)
mkfifo - make a FIFO special file
#include <sys/types.h>
#include <sys/stat.h>
int mkfifo (const char *path, mode_t mode);
The mkfifo routine creates a new FIFO special file named by the pathname
pointed to by path. IRIX implements it via the following mknod call:
mknod(path, (mode | S_IFIFO), 0)
where S_IFIFO is defined in <sys/stat.h>. Refer to mknod(2) for details.
mknod(2), chmod(2), exec(2), pipe(2), stat(2), umask(2).
Upon successful completion, mkfifo returns a value of 0. Otherwise, a
value of -1 is returned, no FIFO is created, and errno is set to indicate
the error.
PPPPaaaaggggeeee 1111 [ Back ]
|