Creates a new FIFO special file.
#include <sys/stat.h> int mkfifo ( const char *pathname, mode_t mode);
(IN) Points to the path containing the new directory (either relative to the current working directory or an absolute pathname).
(IN) Specifies the mode for the FIFO file (see File Access Modes and NetWare Attributes).
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
A FIFO file is a special file in the file system that any process can open for reading and writing, just like any other file. However, it must be opened at both ends simultaneously before you can proceed to do any input or output operations on it. Opening a FIFO for reading normally blocks until some other process opens the same FIFO for writing, and vice versa
On NetWare file systems, the caller must have Create rights in the parent directory to use mkfifo to create a file. The inherited rights mask for the FIFO is ALL rights. You can use the mode parameter to set NetWare file attributes.