mk®fo(1)

mk®fo(1)

NAME

mk®fo - make FIFO (named pipe) special ®les

SYNOPSIS

mkfifo [-p][-mmode ] ®lename ...

DESCRIPTION

mkfifo creates the FIFO special ®les named by its operand list. The operands are taken sequentially in the order speci®ed and, if the user has write permission in the appropriate directory, the FIFO is created with permissions 0666 modi®ed by the user's ®le mode creation mask (see umask(2)).

The speci®c actions performed are equivalent to calling

mkfifo(®lename, 0666)

for each ®lename in the operand list (see mk®fo(2)).

Options

mkfifo recognizes the following command-line options:

-mmode

After creating the FIFO special ®le, set the permission bits of the new ®le to the

 

speci®ed mode value. The mode option argument is a symbolic mode string as de®ned

 

in chmod(1).

 

(XPG4 Only.) In the symbolic mode strings, the operators + and - will be interpreted

 

relative to an initial mode of a=rw.

-p

Create any missing intermediate path name components.

EXTERNAL INFLUENCES

Environment Variables

LANG determines the locale to use for the locale categories when both LC_ALL and the corresponding environment variable (beginning with LC_) do not specify a locale. If LANG is not speci®ed or is set to the empty string, a default of "C" (see lang(5)) is used.

LC_ALL determines the locale to use to override any values for locale categories speci®ed by the settings of LANG or any environment variables beginning with LC_.

LC_CTYPE determines the locale for the interpretation of sequences of bytes of text data as characters (e.g., single- versus multibyte characters in arguments).

If any internationalization variable contains an invalid setting, mkfifo behaves as if all internationalization variables are set to "C". See environ(5).

International Code Set Support

Single-byte character code sets are supported.

RETURN VALUE

mkfifo returns zero if invoked with at least one operand and if all FIFO special ®les were created success- fully. Otherwise, it prints a diagnostic message and returns non-zero.

EXAMPLES

The following command creates a FIFO special ®le named peacepipe in the current directory:

mkfifo peacepipe

SEE ALSO

chmod(1), umask(1), mknod(1M), mk®fo(3C).

STANDARDS CONFORMANCE mkfifo: XPG3, XPG4, POSIX.2

m

HP-UX Release 11i: December 2000

− 1 −

Section 1531