*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> mkfifo (1)              


 mkfifo(1)                                                         mkfifo(1)

 NAME    [Toc]    [Back]
      mkfifo - make FIFO (named pipe) special files

 SYNOPSIS    [Toc]    [Back]
      mkfifo [-p] [-m mode] filename ...

 DESCRIPTION    [Toc]    [Back]
      mkfifo creates the FIFO special files named by its operand list.  The
      operands are taken sequentially in the order specified and, if the
      user has write permission in the appropriate directory, the FIFO is
      created with permissions 0666 modified by the user's file mode
      creation mask (see umask(2)).

      The specific actions performed are equivalent to calling

           mkfifo(filename, 0666)

      for each filename in the operand list (see mkfifo(3C)).

    Options    [Toc]    [Back]
      mkfifo recognizes the following command-line options:

           -m mode        After creating the FIFO special file, set the
                          permission bits of the new file to the specified
                          mode value.  The mode option argument is a
                          symbolic mode string as defined 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

    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 specified 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 specified 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

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003

 mkfifo(1)                                                         mkfifo(1)

      "C".  See environ(5).

    International Code Set Support    [Toc]    [Back]
      Single-byte character code sets are supported.

 RETURN VALUE    [Toc]    [Back]
      mkfifo returns zero if invoked with at least one operand and if all
      FIFO special files were created successfully.  Otherwise, it prints a
      diagnostic message and returns non-zero.

 EXAMPLES    [Toc]    [Back]
      The following command creates a FIFO special file named peacepipe in
      the current directory:

           mkfifo peacepipe

 SEE ALSO    [Toc]    [Back]
      chmod(1), umask(1), mknod(1M), mkfifo(3C).

      mkfifo: XPG3, XPG4, POSIX.2

 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
mkfifo Linux make a FIFO special file (a named pipe)
mknod IRIX build special file or named pipe (FIFO)
pxfisfifo IRIX Tests for pipe or a FIFO special file
fifo Linux first-in first-out special file, named pipe
mkfifo IRIX make FIFO special file
mkfifo IRIX make a FIFO special file
mkfifo Tru64 Makes FIFO special files
mknod Linux make block or character special files
mknod Tru64 Create a FIFO or special file
mkfifo OpenBSD make a FIFO file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service