| MKFIFO(2) | System Calls Manual | MKFIFO(2) | 
mkfifo, mkfifoat —
#include <sys/stat.h>
int
  
  mkfifo(const
    char *path, mode_t
    mode);
#include
    <sys/stat.h>
  
  #include <fcntl.h>
int
  
  mkfifoat(int
    fd, const char
    *path, mode_t
    mode);
mkfifo() creates a new fifo file with name
  path. The access permissions are specified by
  mode and restricted by the
  umask(2) of the calling process.
mkfifoat() works the same way as
    mkfifo() except if path is
    relative. In that case, it is looked up from a directory whose file
    descriptor was passed as fd. Search permission is
    required on this directory. fd can be set to
    AT_FDCWD in order to specify the current
  directory.
The fifo's owner ID is set to the process's effective user ID. The fifo's group ID is set to that of the parent directory in which it is created.
mkfifo() and mkfifoat()
  functions return the value 0 if successful; otherwise the
  value -1 is returned and the global variable
  errno is set to indicate the error.
mkfifo() and mkfifoat() will
  fail and no fifo will be created if:
EACCES]EDQUOT]EEXIST]EFAULT]EIO]ELOOP]ENAMETOOLONG]NAME_MAX}
      characters, or an entire path name exceeded
      {PATH_MAX} characters.ENOENT]ENOSPC]ENOTDIR]EOPNOTSUPP]EROFS]In addition, mkfifoat() will fail if:
mkfifo function call conforms to
  IEEE Std 1003.1-1990 (“POSIX.1”).
  mkfifoat() conforms to IEEE Std
  1003.1-2008 (“POSIX.1”).
| July 29, 2013 | NetBSD 10.0 |