Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

chmod(2P)

exec(2)

pipe(2)

stat(2)

umask(2P)



          mkfifo(2P)       INTERACTIVE UNIX System (POSIX)       mkfifo(2P)



          NAME
               mkfifo - create a new FIFO

          SYNOPSIS
               #include <sys/types.h>
               #include <signal.h>

               int mkfifo (path, mode);
               char *path;
               mode_t mode;

          DESCRIPTION
               The mkfifo () routine creates a new FIFO special file named
               by the path name pointed to by path.  The mode of the new
               FIFO is initialized from mode.  The file permission bits of
               the mode argument are modified by the process's file crea-
               tion mask.

               The FIFO's owner ID is set to the process's effective user
               ID.  The FIFO's group ID is set to the process's effective
               group ID or to the group ID of the directory in which the
               FIFO is being created.

               Bits other than the file permission bits in mode are ignored
               quietly.

          RETURN VALUE
               Upon successful completion a value of zero is returned.
               Otherwise, a value of -l is returned, and errno is set to
               indicate the error.

          ERRORS
               EACESS         A component of the path prefix denies search
                              permission.

               EEXIST         The named file already exists.

               ENOENT         A component of the path prefix does not exist
                              or the path argument points to an empty
                              string.

               ENOSPC         The directory that would contain the new file
                              cannot be extended or the file system is out
                              of allocation resources.

               ENOTDIR        A component of the path prefix is not a
                              directory.

               EROFS          The directory in which the file is to be
                              created is located on a read-only file sys-
                              tem.

               ENAMETOOLONG   The path argument exceeds {PATH_MAX} or a


          Rev. 1.1                                                   Page 1





          mkfifo(2P)       INTERACTIVE UNIX System (POSIX)       mkfifo(2P)



                              path name component is longer than
                              {NAME_MAX}.

          SEE ALSO
               chmod(2P), exec(2), pipe(2), stat(2), umask(2P).


















































          Rev. 1.1                                                   Page 2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026