1.\" $NetBSD: MAKEDEV.8.template,v 1.2 2002/03/14 01:33:27 wiz Exp $ 2.\" 3.\" Copyright (c) 2001 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Thomas Klausner. 8.\" 9.\" Redistribution and use in source and binary forms, with or without 10.\" modification, are permitted provided that the following conditions 11.\" are met: 12.\" 1. Redistributions of source code must retain the above copyright 13.\" notice, this list of conditions and the following disclaimer. 14.\" 2. Redistributions in binary form must reproduce the above copyright 15.\" notice, this list of conditions and the following disclaimer in the 16.\" documentation and/or other materials provided with the distribution. 17.\" 3. All advertising materials mentioning features or use of this software 18.\" must display the following acknowledgement: 19.\" This product includes software developed by the NetBSD 20.\" Foundation, Inc. and its contributors. 21.\" 4. Neither the name of The NetBSD Foundation nor the names of its 22.\" contributors may be used to endorse or promote products derived 23.\" from this software without specific prior written permission. 24.\" 25.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 26.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 29.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35.\" POSSIBILITY OF SUCH DAMAGE. 36.\" 37.Dd @@@DATE@@@ 38.Dt MAKEDEV 8 @@@ARCH@@@ 39.Os 40.Sh NAME 41.Nm MAKEDEV 42.Nd create system and device special files 43.Sh SYNOPSIS 44.Nm 45.Ar special Op Ar ... 46.Pp 47.Nm 48.Ar device Op Ar ... 49.Sh DESCRIPTION 50.Nm 51is used to create system and device special files. 52As arguments it takes the names of known devices, like 53.Ar sd0 , 54or of special targets, like 55.Pa all 56or 57.Pa std , 58which create a collection of device special files. 59.Pp 60The script is in 61.Pa /dev/MAKEDEV 62and must be called from the 63.Pa /dev 64directory. 65For the creation of the devices, 66.Xr mknod 8 67is used, which can only be used for creating devices by the 68super-user. 69.Pp 70The special targets supported on 71.Nx Ns / Ns @@@ARCH@@@ 72are: 73.Pp 74@@@SPECIAL@@@ 75.Pp 76Please note that any hash marks 77.Pq Dq # 78in the following list of supported device targets must be replaced by 79digits when calling 80.Nm "" : 81.Pp 82@@@DEVICES@@@ 83.Sh FILES 84.Bl -tag -width "/dev/MAKEDEV.local" -compact 85.It Pa /dev 86special device files directory 87.It Pa /dev/MAKEDEV 88script described in this man page 89.It Pa /dev/MAKEDEV.local 90script for site specific devices 91.El 92.Sh DIAGNOSTICS 93If the script reports an error that is difficult to understand, 94you can get more debugging output by using 95.Dl Ic sh Fl x Ar MAKEDEV Ar argument . 96.Sh SEE ALSO 97.Xr intro 4 , 98.Xr config 8 , 99.Xr mknod 8 100.Sh HISTORY 101The 102.Nm 103command appeared in 104.Bx 4.2 . 105.Sh BUGS 106This man page is generated automatically from the same sources 107as 108.Pa /dev/MAKEDEV , 109in which the device files are not always sorted, which may result 110in an unusual (non-alphabetical) order. 111