手册页部分 1M: 系统管理命令

退出打印视图

更新时间: 2014 年 7 月
 
 

mkfifo(1M)

名称

mkfifo - make FIFO special file

用法概要

/usr/bin/mkfifo [-m mode] path...

描述

The mkfifo utility creates the FIFO special files named by its argument list. The arguments are taken sequentially, in the order specified; and each FIFO special file is either created completely or, in the case of an error or signal, not created at all.

If errors are encountered in creating one of the special files, mkfifo writes a diagnostic message to the standard error and continues with the remaining arguments, if any.

The mkfifo utility calls the library routine mkfifo(3C), with the path argument is passed as the path argument from the command line, and mode is set to the equivalent of a=rw, modified by the current value of the file mode creation mask umask (1).

选项

The following option is supported:

–m mode

Set the file permission bits of the newly-created FIFO to the specified mode value. The mode option-argument will be the same as the mode operand defined for the chmod(1) command. In <symbolicmode> strings, the op characters + and will be interpreted relative to an assumed initial mode of a=rw.

操作数

The following operand is supported:

file

A path name of the FIFO special file to be created.

用法

See largefile(5) for the description of the behavior of mkfifo when encountering files greater than or equal to 2 Gbyte (2 31 bytes).

环境变量

See environ(5) for descriptions of the following environment variables that affect the execution of mkfifo: LANG, LC_ALL , LC_CTYPE, LC_MESSAGES, and NLSPATH.

退出状态

The following exit values are returned:

0

All the specified FIFO special files were created successfully.

>0

An error occurred.

属性

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os
Interface Stability
Committed
Standard

另请参见

chmod(1), umask(1), mkfifo(3C), attributes(5), environ(5), largefile(5), standards(5)