1mkfifo(1M)              System Administration Commands              mkfifo(1M)
2
3
4

NAME

6       mkfifo - make FIFO special file
7

SYNOPSIS

9       /usr/bin/mkfifo [-m mode] path...
10
11
12   ksh93
13       mkfifo [ options ] file...
14
15

DESCRIPTION

17   /usr/bin/mkfifo
18       The mkfifo utility creates the FIFO special files named by its argument
19       list. The arguments are taken sequentially, in the order specified; and
20       each  FIFO special file is either created completely or, in the case of
21       an error or signal, not created at all.
22
23
24       If errors are encountered in creating one of the special files,  mkfifo
25       writes  a  diagnostic  message to the standard error and continues with
26       the remaining arguments, if any.
27
28
29       The mkfifo utility calls the library routine mkfifo(3C), with the  path
30       argument  is  passed  as  the  path argument from the command line, and
31       mode is set to the equivalent of a=rw, modified by the current value of
32       the file mode creation mask umask(1).
33
34   ksh93
35       The  mkfifo  utility creates one or more FIFOs. By default, the mode of
36       the created FIFO is a=rw minus the bits set in umask(1).
37

OPTIONS

39   /usr/bin/ksh93
40       The following option is supported for /usr/bin/mkfifo:
41
42       -m mode    Set the file permission bits of the  newly-created  FIFO  to
43                  the  specified  mode value. The mode option-argument will be
44                  the same as the mode operand defined for the  chmod(1)  com‐
45                  mand.  In  <symbolicmode> strings, the op characters + and 
46                  will be interpreted relative to an assumed initial  mode  of
47                  a=rw.
48
49
50   ksh93
51       The following option is supported for ksh93:
52
53       -m mode        Set  the  mode  of  the  created  FIFO to mode. The mode
54       --mode=mode    option-argument is  a  symbolic  or  octal  mode  as  in
55                      chmod(1). Relative modes assume an initial mode of a=rw.
56
57

OPERANDS

59       The following operand is supported:
60
61       file    A path name of the FIFO special file to be created.
62
63

USAGE

65       See  largefile(5)  for  the  description of the behavior of mkfifo when
66       encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
67

ENVIRONMENT VARIABLES

69       See environ(5) for descriptions of the following environment  variables
70       that  affect  the  execution of mkfifo: LANG, LC_ALL, LC_CTYPE, LC_MES‐
71       SAGES, and NLSPATH.
72

EXIT STATUS

74       The following exit values are returned:
75
76       0     All the specified FIFO special files were created successfully.
77
78
79       >0    An error occurred.
80
81

ATTRIBUTES

83       See attributes(5) for descriptions of the following attributes:
84
85
86
87
88       ┌─────────────────────────────┬─────────────────────────────┐
89       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
90       ├─────────────────────────────┼─────────────────────────────┤
91       │Availability                 │SUNWesu                      │
92       ├─────────────────────────────┼─────────────────────────────┤
93       │Interface Stability          │Standard                     │
94       └─────────────────────────────┴─────────────────────────────┘
95

SEE ALSO

97       chmod(1),  umask(1),  mkfifo(3C),  attributes(5),  environ(5),   large‐
98       file(5), standards(5)
99
100
101
102SunOS 5.11                        11 Aug 2009                       mkfifo(1M)
Impressum