xref: /minix3/usr.bin/mkfifo/mkfifo.1 (revision ef03affb849429015772640e8e579db16b6f3ca5)
1*ef03affbSThomas Cort.\"	$NetBSD: mkfifo.1,v 1.11 2004/10/08 22:32:35 wiz Exp $
2*ef03affbSThomas Cort.\"
3*ef03affbSThomas Cort.\" Copyright (c) 1990, 1993
4*ef03affbSThomas Cort.\"	The Regents of the University of California.  All rights reserved.
5*ef03affbSThomas Cort.\"
6*ef03affbSThomas Cort.\" This code is derived from software contributed to Berkeley by
7*ef03affbSThomas Cort.\" the Institute of Electrical and Electronics Engineers, Inc.
8*ef03affbSThomas Cort.\"
9*ef03affbSThomas Cort.\" Redistribution and use in source and binary forms, with or without
10*ef03affbSThomas Cort.\" modification, are permitted provided that the following conditions
11*ef03affbSThomas Cort.\" are met:
12*ef03affbSThomas Cort.\" 1. Redistributions of source code must retain the above copyright
13*ef03affbSThomas Cort.\"    notice, this list of conditions and the following disclaimer.
14*ef03affbSThomas Cort.\" 2. Redistributions in binary form must reproduce the above copyright
15*ef03affbSThomas Cort.\"    notice, this list of conditions and the following disclaimer in the
16*ef03affbSThomas Cort.\"    documentation and/or other materials provided with the distribution.
17*ef03affbSThomas Cort.\" 3. Neither the name of the University nor the names of its contributors
18*ef03affbSThomas Cort.\"    may be used to endorse or promote products derived from this software
19*ef03affbSThomas Cort.\"    without specific prior written permission.
20*ef03affbSThomas Cort.\"
21*ef03affbSThomas Cort.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22*ef03affbSThomas Cort.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23*ef03affbSThomas Cort.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24*ef03affbSThomas Cort.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25*ef03affbSThomas Cort.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26*ef03affbSThomas Cort.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27*ef03affbSThomas Cort.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28*ef03affbSThomas Cort.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29*ef03affbSThomas Cort.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30*ef03affbSThomas Cort.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31*ef03affbSThomas Cort.\" SUCH DAMAGE.
32*ef03affbSThomas Cort.\"
33*ef03affbSThomas Cort.\"     @(#)mkfifo.1	8.2 (Berkeley) 1/5/94
34*ef03affbSThomas Cort.\"
35*ef03affbSThomas Cort.Dd January 5, 1994
36*ef03affbSThomas Cort.Dt MKFIFO 1
37*ef03affbSThomas Cort.Os
38*ef03affbSThomas Cort.Sh NAME
39*ef03affbSThomas Cort.Nm mkfifo
40*ef03affbSThomas Cort.Nd make fifos
41*ef03affbSThomas Cort.Sh SYNOPSIS
42*ef03affbSThomas Cort.Nm
43*ef03affbSThomas Cort.Op Fl m Ar mode
44*ef03affbSThomas Cort.Ar fifo_name  ...
45*ef03affbSThomas Cort.Sh DESCRIPTION
46*ef03affbSThomas Cort.Nm
47*ef03affbSThomas Cortcreates the fifos requested, in the order specified,
48*ef03affbSThomas Cortusing mode
49*ef03affbSThomas Cort.Li \&0666
50*ef03affbSThomas Cortmodified by the current
51*ef03affbSThomas Cort.Xr umask 2 .
52*ef03affbSThomas Cort.Pp
53*ef03affbSThomas CortThe options are as follows:
54*ef03affbSThomas Cort.Bl -tag -width Ds
55*ef03affbSThomas Cort.It Fl m
56*ef03affbSThomas CortSet the file permission bits of newly-created fifos to
57*ef03affbSThomas Cort.Ar mode .
58*ef03affbSThomas CortThe mode is specified as in
59*ef03affbSThomas Cort.Xr chmod 1 .
60*ef03affbSThomas CortIn symbolic mode strings, the
61*ef03affbSThomas Cort.Dq +
62*ef03affbSThomas Cortand
63*ef03affbSThomas Cort.Dq -
64*ef03affbSThomas Cortoperators are interpreted relative to an assumed initial mode of
65*ef03affbSThomas Cort.Dq a=rw
66*ef03affbSThomas Cort.El
67*ef03affbSThomas Cort.Pp
68*ef03affbSThomas Cort.Nm
69*ef03affbSThomas Cortrequires write permission in the parent directory.
70*ef03affbSThomas Cort.Pp
71*ef03affbSThomas Cort.Nm
72*ef03affbSThomas Cortexits 0 if successful, and \*[Gt]0 if an error occurred.
73*ef03affbSThomas Cort.Sh SEE ALSO
74*ef03affbSThomas Cort.Xr mkdir 1 ,
75*ef03affbSThomas Cort.Xr rm 1 ,
76*ef03affbSThomas Cort.Xr mkfifo 2 ,
77*ef03affbSThomas Cort.Xr mknod 8
78*ef03affbSThomas Cort.Sh STANDARDS
79*ef03affbSThomas CortThe
80*ef03affbSThomas Cort.Nm
81*ef03affbSThomas Cortutility is expected to be
82*ef03affbSThomas Cort.St -p1003.2-92
83*ef03affbSThomas Cortcompliant.
84*ef03affbSThomas Cort.Sh HISTORY
85*ef03affbSThomas Cort.Nm
86*ef03affbSThomas Cortcommand appeared in
87*ef03affbSThomas Cort.Bx 4.4 .
88