xref: /freebsd/usr.bin/mkfifo/mkfifo.1 (revision bdcbfde31e8e9b343f113a1956384bdf30d1ed62)
19b50d902SRodney W. Grimes.\" Copyright (c) 1990, 1993
29b50d902SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
39b50d902SRodney W. Grimes.\"
49b50d902SRodney W. Grimes.\" This code is derived from software contributed to Berkeley by
59b50d902SRodney W. Grimes.\" the Institute of Electrical and Electronics Engineers, Inc.
69b50d902SRodney W. Grimes.\"
79b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
89b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions
99b50d902SRodney W. Grimes.\" are met:
109b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
119b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
129b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
139b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
149b50d902SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
15*fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors
169b50d902SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
179b50d902SRodney W. Grimes.\"    without specific prior written permission.
189b50d902SRodney W. Grimes.\"
199b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
209b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
219b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
229b50d902SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
239b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
249b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
259b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
269b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
279b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
289b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
299b50d902SRodney W. Grimes.\" SUCH DAMAGE.
309b50d902SRodney W. Grimes.\"
319b50d902SRodney W. Grimes.Dd January 5, 1994
329b50d902SRodney W. Grimes.Dt MKFIFO 1
3362500372SRuslan Ermilov.Os
349b50d902SRodney W. Grimes.Sh NAME
359b50d902SRodney W. Grimes.Nm mkfifo
369b50d902SRodney W. Grimes.Nd make fifos
379b50d902SRodney W. Grimes.Sh SYNOPSIS
3893e0d62dSJohn-Mark Gurney.Nm
39513c0475SSheldon Hearn.Op Fl m Ar mode
409b50d902SRodney W. Grimes.Ar fifo_name ...
419b50d902SRodney W. Grimes.Sh DESCRIPTION
4293e0d62dSJohn-Mark GurneyThe
4393e0d62dSJohn-Mark Gurney.Nm
44e8937ba0SPhilippe Charnierutility creates the fifos requested, in the order specified.
459b50d902SRodney W. Grimes.Pp
46513c0475SSheldon HearnThe options are as follows:
47513c0475SSheldon Hearn.Bl -tag -width indent
48513c0475SSheldon Hearn.It Fl m
49513c0475SSheldon HearnSet the file permission bits of the created fifos to the
50513c0475SSheldon Hearnspecified mode, ignoring the
51513c0475SSheldon Hearn.Xr umask 2
52513c0475SSheldon Hearnof the calling process.
5323207f2fSRuslan ErmilovThe
5423207f2fSRuslan Ermilov.Ar mode
5523207f2fSRuslan Ermilovargument takes any format that can be specified to the
56513c0475SSheldon Hearn.Xr chmod 1
57513c0475SSheldon Hearncommand.
58513c0475SSheldon HearnIf a symbolic mode is specified, the op symbols
5923207f2fSRuslan Ermilov.Ql +
60513c0475SSheldon Hearn(plus) and
6123207f2fSRuslan Ermilov.Ql -
62513c0475SSheldon Hearn(hyphen) are interpreted relative to an assumed initial mode of
6323207f2fSRuslan Ermilov.Dq Li a=rw
64513c0475SSheldon Hearn(read and write permissions for all).
65513c0475SSheldon Hearn.El
66513c0475SSheldon Hearn.Pp
67513c0475SSheldon HearnIf the
68513c0475SSheldon Hearn.Fl m
69513c0475SSheldon Hearnoption is not specified, fifos are created with mode
7023207f2fSRuslan Ermilov.Li 0666
71513c0475SSheldon Hearnmodified by the
72513c0475SSheldon Hearn.Xr umask 2
73513c0475SSheldon Hearnof the calling process.
7493e0d62dSJohn-Mark GurneyThe
7593e0d62dSJohn-Mark Gurney.Nm
76e8937ba0SPhilippe Charnierutility requires write permission in the parent directory.
77a866e170SRuslan Ermilov.Sh EXIT STATUS
78d628d776SRuslan Ermilov.Ex -std
799b50d902SRodney W. Grimes.Sh SEE ALSO
809b50d902SRodney W. Grimes.Xr mkdir 1 ,
819b50d902SRodney W. Grimes.Xr rm 1 ,
82da1ff3cbSWolfram Schneider.Xr mkfifo 2 ,
8378b0b234SMike Pritchard.Xr mknod 2 ,
8478b0b234SMike Pritchard.Xr mknod 8
856c7216dfSRuslan Ermilov.Sh STANDARDS
866c7216dfSRuslan ErmilovThe
876c7216dfSRuslan Ermilov.Nm
886c7216dfSRuslan Ermilovutility is expected to be
896c7216dfSRuslan Ermilov.St -p1003.2
906c7216dfSRuslan Ermilovcompliant.
919b50d902SRodney W. Grimes.Sh HISTORY
929b50d902SRodney W. GrimesThe
939b50d902SRodney W. Grimes.Nm
9493e0d62dSJohn-Mark Gurneycommand appeared in
959b50d902SRodney W. Grimes.Bx 4.4 .
96