📄 mkfifo.3
字号:
.\" SCCSID: @(#)mkfifo.3 3.1 11/23/87.TH mkfifo 3.SH Namemkfifo \- make a FIFO special file .SH Syntax.nf.ft B#include <sys/types.h>#include <sys/stat.h>int mkfifo(path, mode)char *path;mode_t mode;.fi.ft R.SH Description.NXR "mkfifo function".NXR "special file" "creating"The .PN mkfifofunction creates a new FIFO special filewhose name is.I path.The file permission bits of the new FIFO are initialized from.IR mode, where the value of .I mode,is one (or more) of the file permission bits defined in <sys/stat.h>.The .IR modeargument is modified by the process's file creation mask (see .MS umask 1 )..PPThe FIFO's owner ID is set to the process's effectiveuser ID. The FIFO's group ID is set to the process's effective group ID..SH Return ValuesUpon successful completion, a value of 0 is returned. Otherwise, a value of \-1 is returned and \fIerrno\fPis set to indicate the error..SH DiagnosticsThe.PN mkfifofunction will fail and the FIFO will not be created if:.TP 15[EACCES]A component of the path prefix denies search permission..TP 15[EEXIST]The named file exists..TP 15[ENAMETOOLONG]A component of a pathname exceeded 255 characters, or an entirepathname exceeded 1023 characters..TP 15[ENOTDIR]A component of the path prefix is not a directory..TP 15[ENOENT]A component of the path prefix does not exist or the \fIpath\fPargument points to an empty string..TP 15[EROFS]The named file resides on a read-only file system..TP 15[EFAULT].I Pathpoints outside the process's allocated address space..TP 15[ELOOP]Too many symbolic links were encountered in translating the pathname..TP 15[EIO]An I/O error occurred while making the directory entry..TP 15[ENOSPC]The directory in which the entry for the new FIFO is being placedcannot be extended because there is no space left on thefile system..TP 15[ENOSPC]There are no free inodes on the file system on whichthe node is being created..TP 15[EDQUOT]The directory in which the entry for the new FIFO is beingplaced cannot be extended because the user's quota of diskblocks on the file system containing the directory has beenexhausted..TP 15[EDQUOT]The user's quota of inodes on the file system on which theFIFO is being created has been exhausted..TP 15[ESTALE]The file handle given in the argument is invalid. Thefile referred to by that file handle no longer existsor has been revoked..TP[ETIMEDOUT]A connect request or remote file operation failedbecause the connected partydid not properly respond after a periodof time which is dependent on the communications protocol..SH See Alsomknod(1), umask(1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -