The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

mkfifo - make FIFO special files

 SYNOPSIS



mkfifo [-m mode] file...

 DESCRIPTION

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:

  1. The file operand is used as the path argument.

  2. 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.)

 OPTIONS

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.

 OPERANDS

The following operand is supported:
file
A pathname of the FIFO special file to be created.

 STDIN

Not used.

 INPUT FILES

None.

 ENVIRONMENT VARIABLES

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 .

 ASYNCHRONOUS EVENTS

Default.

 STDOUT

Not used.

 STDERR

Used only for diagnostic messages.

 OUTPUT FILES

None.

 EXTENDED DESCRIPTION

None.

 EXIT STATUS

The following exit values are returned:
0
All the specified FIFO special files were created successfully.
>0
An error occurred.

 CONSEQUENCES OF ERRORS

Default.

 APPLICATION USAGE

None.

 EXAMPLES

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

umask, the XSH specification description of mkfifo().

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]