mkfifo - make FIFO special files
mkfifo [-m mode] file...
The mkfifo utility will create the FIFO special files specified by the operands, in the order specified.For each file operand, the mkfifo utility will perform actions equivalent to the XSH specification mkfifo() function, called with the following arguments:
- The file operand is used as the path argument.
- The value of the bitwise inclusive OR of S_IRUSR, S_IWUSR, S_IRGRP, S_IWGRP, S_IROTH and S_IWOTH is used as the mode argument. (If the -m option is specified, the mode option-argument overrides this default.)
The mkfifo utility supports the XBD specification, Utility Syntax Guidelines .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 utility. In the symbolic_mode strings, the op characters "+" and "-" will be interpreted relative to an assumed initial mode of a=rw.
The following operand is supported:
- file
- A pathname of the FIFO special file to be created.
Not used.
None.
The following environment variables affect the execution of mkfifo:
- LANG
- Provide a default value for the internationalisation variables that are unset or null. If LANG is unset or null, the corresponding value from the implementation-dependent default locale will be used. If any of the internationalisation variables contains an invalid setting, the utility will behave as if none of the variables had been defined.
- LC_ALL
- If set to a non-empty string value, override the values of all the other internationalisation variables.
- LC_CTYPE
- Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single- as opposed to multi-byte characters in arguments).
- LC_MESSAGES
- Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.
- NLSPATH
- Determine the location of message catalogues for the processing of LC_MESSAGES .
Default.
Not used.
Used only for diagnostic messages.
None.
None.
The following exit values are returned:
- 0
- All the specified FIFO special files were created successfully.
- >0
- An error occurred.
Default.
None.
None.
None.
umask, the XSH specification description of mkfifo().