4.3BSD-Reno/share/man/cat2/mkfifo.0

Compare this file to the similar file:
Show the results in this format:




MKFIFO(2)		      1990			MKFIFO(2)



NNAAMMEE
     mkfifo - make a fifo file

SSYYNNOOPPSSIISS
     mmkkffiiffoo((ppaatthh,, mmooddee))
     cchhaarr **ppaatthh;;
     iinntt mmooddee;;

DDEESSCCRRIIPPTTIIOONN
     _M_k_f_i_f_o creates a new fifo file with name _p_a_t_h.  The mode of
     the new file is initialized from _m_o_d_e.  (The protection part
     of the mode is modified by the process's mode mask; see
     _u_m_a_s_k(2)).

     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 direc-
     tory in which it is created.

     The low-order 9 bits of mode are modified by the process's
     file mode creation mask: all bits set in the process's file
     mode creation mask are cleared.  See _u_m_a_s_k(2).

RREETTUURRNN VVAALLUUEE
     A 0 return value indicates success.  A -1 return value indi-
     cates an error, and an error code is stored in _e_r_r_n_o.

EERRRROORRSS
     _M_k_f_i_f_o will fail and no fifo will be created if:

     [ENOTSUPP]     The kernel has not been configured to support
		    fifo's.

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

     [EINVAL]	    The pathname contains a character with the
		    high-order bit set.

     [ENAMETOOLONG] A component of a pathname exceeded 255 char-
		    acters, or an entire path name exceeded 1023
		    characters.

     [ENOENT]	    A component of the path prefix does not
		    exist.

     [EACCES]	    Search permission is denied for a component
		    of the path prefix.

     [ELOOP]	    Too many symbolic links were encountered in
		    translating the pathname.

     [EPERM]	    The _p_a_t_h argument contains a byte with the



Printed 7/27/90               June				1






MKFIFO(2)		      1990			MKFIFO(2)



		    high-order bit set.

     [EROFS]	    The named file resides on a read-only file
		    system.

     [EEXIST]	    The named file exists.

     [ENOSPC]	    The directory in which the entry for the new
		    fifo is being placed cannot be extended
		    because there is no space left on the file
		    system containing the directory.

     [ENOSPC]	    There are no free inodes on the file system
		    on which the fifo is being created.

     [EDQUOT]	    The directory in which the entry for the new
		    fifo is being placed cannot be extended
		    because the user's quota of disk blocks on
		    the file system containing the directory has
		    been exhausted.

     [EDQUOT]	    The user's quota of inodes on the file system
		    on which the fifo is being created has been
		    exhausted.

     [EIO]	    An I/O error occurred while making the direc-
		    tory entry or allocating the inode.

     [EIO]	    An I/O error occurred while reading from or
		    writing to the file system.

     [EFAULT]	    _P_a_t_h points outside the process's allocated
		    address space.

SSEEEE AALLSSOO
     chmod(2), stat(2), umask(2)



















Printed 7/27/90               June				2