1.\" $NetBSD: MAKEDEV.8.template,v 1.7 2005/06/20 13:25:25 peter Exp $ 2.\" 3.\" Copyright (c) 2001, 2003 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 39.Os 40.Sh NAME 41.Nm MAKEDEV 42.Nd create system and device special files 43.Sh SYNOPSIS 44.Nm 45.Op Fl fs 46.Op Fl m Ar mknod 47.Ar special Op Ar ... 48.Pp 49.Nm 50.Op Fl fs 51.Op Fl m Ar mknod 52.Ar device Op Ar ... 53.Sh DESCRIPTION 54.Nm 55is used to create system and device special files. 56As arguments it takes the names of known devices, like 57.Ar sd0 , 58or of special targets, like 59.Pa all 60or 61.Pa std , 62which create a collection of device special files. 63.Pp 64The script is in 65.Pa /dev/MAKEDEV 66and must be called from the 67.Pa /dev 68directory. 69For the creation of the devices, 70.Xr mknod 8 71is used, which can only be used for creating devices by the 72super-user. 73The 74.Xr mknod 8 75used can be overridden by the 76.Fl m 77flag. 78.Pp 79Supported options are: 80.Bl -tag -width XmXmknodXX 81.It Fl f 82Force permissions to be updated on existing devices. 83.It Fl m Ar mknod 84Name of 85.Xr mknod 8 86program. 87[Usually, $TOOL_MKNOD or mknod.] 88.It Fl s 89Generate 90.Xr mtree 8 91specfile instead of creating devices. 92.El 93.Pp 94The special targets supported on 95.Nx 96are: 97.Pp 98@@@SPECIAL@@@ 99.Pp 100Please note that any hash marks 101.Pq Dq # 102in the following list of supported device targets must be replaced by 103digits when calling 104.Nm : 105.Pp 106@@@DEVICES@@@ 107.Sh FILES 108.Bl -tag -width "/dev/MAKEDEV.local" -compact 109.It Pa /dev 110special device files directory 111.It Pa /dev/MAKEDEV 112script described in this man page 113.It Pa /dev/MAKEDEV.local 114script for site specific devices 115.El 116.Sh DIAGNOSTICS 117If the script reports an error that is difficult to understand, 118you can get more debugging output by using 119.Dl Ic sh Fl x Ar MAKEDEV Ar argument . 120.Sh SEE ALSO 121.Xr config 1 , 122.Xr intro 4 , 123.Xr mknod 8 124.Sh HISTORY 125The 126.Nm 127command appeared in 128.Bx 4.2 . 129.Sh NOTES 130This man page is generated automatically from the same sources 131as 132.Pa /dev/MAKEDEV , 133in which the device files are not always sorted, which may result 134in an unusual (non-alphabetical) order. 135Not all devices listed in this manpage are supported on all platforms. 136