Start development on 386BSD 0.0
[unix-history] / .ref-BSD-4_3_Net_2 / usr / src / share / man / man8 / makedev.8
CommitLineData
b42074ab
CL
1.\" Copyright (c) 1983, 1991 Regents of the University of California.
2.\" All rights reserved.
e8867c20 3.\"
af359dea
C
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
e8867c20 19.\"
af359dea
C
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
b42074ab 31.\"
af359dea
C
32.\" @(#)makedev.8 6.3 (Berkeley) 3/16/91
33.\"
34.Dd March 16, 1991
b42074ab
CL
35.Dt MAKEDEV 8
36.Os BSD 4.2
37.Sh NAME
38.Nm makedev
39.Nd make system special files
40.Sh SYNOPSIS
41.Nm MAKEDEV
42.Ar device ...
43.Sh DESCRIPTION
44.Nm MAKEDEV
e8867c20
KM
45is a shell script normally used to install
46special files. It resides in the
b42074ab 47.Pa /dev
e8867c20
KM
48directory, as this is the normal location of special files.
49Arguments to
b42074ab 50.Nm MAKEDEV
e8867c20 51are usually of the form
b42074ab 52.Ar device-name Ns Sy \&?
e8867c20 53where
b42074ab 54.Ar device-name
e8867c20 55is one of the supported devices listed in section 4 of the
b42074ab
CL
56manual and
57.Dq Sy \&?
58is a logical unit number (0-9). A few
e8867c20
KM
59special arguments create assorted collections of devices and are
60listed below.
b42074ab
CL
61.Bl -tag -width Ds
62.It Sy std
e8867c20 63Create the
b42074ab
CL
64.Em standard
65devices for the system; for example the standard
66.Tn UNIX
67devices
68.Pa /dev/console and /dev/tty;
69the standard hardware dependent devices,
70for example in the VAX family
71the
72.Tn VAX-11/780
73console floppy device,
74.Pa /dev/floppy ,
75and
76.Tn VAX-11/750
77and
78.Tn VAX-11/730
79console cassette device(s),
80.Pa /dev/tu?
81devices would be made for the appropriate system.
82.It Sy local
e8867c20
KM
83Create those devices specific to the local site. This
84request causes the shell file
b42074ab 85.Pa /dev/MAKEDEV.local
e8867c20 86to be executed. Site specific commands, such as those
b42074ab
CL
87used to setup dialup lines as
88.Pa ttyd?
89should be included
e8867c20 90in this file.
b42074ab
CL
91.El
92.Pp
e8867c20 93Since all devices are created using
b42074ab 94.Xr mknod 8 ,
e8867c20 95this shell script is useful only to the super-user.
b42074ab 96.Sh DIAGNOSTICS
e8867c20 97Either self-explanatory, or generated by one of the programs
b42074ab
CL
98called from the script. Use
99.Ql sh -x MAKEDEV
100in case of
e8867c20 101trouble.
b42074ab
CL
102.Sh SEE ALSO
103.Xr intro 4 ,
104.Xr config 8 ,
105.Xr mknod 8
106.Sh HISTORY
107The
108.Nm
109command appeared in
110.Bx 4.2 .