NAME(名称)
mkfifo - 创建FIFO(命名管道)
SYNOPSIS(总览)
mkfifo [options] file...
POSIX options(选项): [-m mode]
GNU options(选项)(最短格式): [-m mode] [--help] [--version] [--]
DESCRIPTION(描述)
mkfifo 使用指定的文件名创建FIFO(也称为"命名管道").
"FIFO"是一种特殊的文件类型,它允许独立的进程通讯. 一个进程打开FIFO文件进行写操作,而另一个进程对之进行读操作, 然后数据便可以如同在shell或者其它地方常见的的匿名管道一样流线执行.
默认情况下,创建的FIFO的模式为0666('a+rw')减去umask中设置的位.
OPTIONS(选项)
- -m mode, --mode=mode
- 设置创建的FIFO的模式为 mode, 这可以是 chmod(1) 中的符号模式,并使用默认模式作为起始点.
GNU STANDARD OPTIONS(GNU标准选项)
- --help
- 在标准输出上打印一条用法信息,并以成功状态退出.
- --version
- 在标准输出上打印版本信息,然后以成功状态退出.
- --
- 终止选项列表.
ENVIRONMENT(环境变量)
变量LANG, LC_ALL, LC_CTYPE和LC_MESSAGES取其常用义.
CONFORMING TO(遵循规则)
POSIX 1003.2
NOTES(备注)
本页介绍了包含在fileutils-4.0包中的 mkfifo ; 其他版本可能会有细微差别. 请把您的修正和增补建议发邮件到aeb@cwi.nl.报告程序中的bug请发到 fileutils-bugs@gnu.ai.mit.edu.
#p#
NAME
mkfifo - make FIFOs (named pipes)
SYNOPSIS
mkfifo [OPTION] NAME...
DESCRIPTION
Create named pipes (FIFOs) with the given NAMEs.
Mandatory arguments to long options are mandatory for short options too.
- -Z, --context=CONTEXT
- set security context (quoted string)
- -m, --mode=MODE
- set permission mode (as in chmod), not a=rw - umask
- --help
- display this help and exit
- --version
- output version information and exit
AUTHOR
Written by David MacKenzie.
REPORTING BUGS
Report bugs to <bug-coreutils@gnu.org>.
COPYRIGHT
Copyright © 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
The full documentation for mkfifo is maintained as a Texinfo manual. If the info and mkfifo programs are properly installed at your site, the command
- info coreutils mkfifo
should give you access to the complete manual.