Home | History | Annotate | Line # | Download | only in man8
MAKEDEV.8.template revision 1.6
 $NetBSD: MAKEDEV.8.template,v 1.6 2005/05/17 13:59:40 wiz Exp $

Copyright (c) 2001, 2003 The NetBSD Foundation, Inc.
All rights reserved.

This code is derived from software contributed to The NetBSD Foundation
by Thomas Klausner.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software
must display the following acknowledgement:
This product includes software developed by the NetBSD
Foundation, Inc. and its contributors.
4. Neither the name of The NetBSD Foundation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

.Dd @@@DATE@@@ .Dt MAKEDEV 8 .Os .Sh NAME .Nm MAKEDEV .Nd create system and device special files .Sh SYNOPSIS .Nm .Op Fl fs .Op Fl m Ar mknod .Ar special Op Ar ...

p .Nm .Op Fl fs .Op Fl m Ar mknod .Ar device Op Ar ... .Sh DESCRIPTION .Nm is used to create system and device special files. As arguments it takes the names of known devices, like .Ar sd0 , or of special targets, like

a all or

a std , which create a collection of device special files.

p The script is in

a /dev/MAKEDEV and must be called from the

a /dev directory. For the creation of the devices, .Xr mknod 8 is used, which can only be used for creating devices by the super-user. The .Xr mknod 8 used can be overridden by the .Fl m flag.

p Supported options are: l -tag -width XmXmknodXX t Fl f Force permissions to be updated on existing devices. t Fl m Ar mknod Name of .Xr mknod 8 program. [Usually, $TOOL_MKNOD or mknod.] t Fl s Generate .Xr mtree 8 specfile instead of creating devices. .El

p The special targets supported on .Nx are:

p @@@SPECIAL@@@

p Please note that any hash marks

q Dq # in the following list of supported device targets must be replaced by digits when calling .Nm :

p @@@DEVICES@@@ .Sh FILES l -tag -width "/dev/MAKEDEV.local" -compact t Pa /dev special device files directory t Pa /dev/MAKEDEV script described in this man page t Pa /dev/MAKEDEV.local script for site specific devices .El .Sh DIAGNOSTICS If the script reports an error that is difficult to understand, you can get more debugging output by using .Dl Ic sh Fl x Ar MAKEDEV Ar argument . .Sh SEE ALSO .Xr intro 4 , .Xr config 8 , .Xr mknod 8 .Sh HISTORY The .Nm command appeared in x 4.2 . .Sh NOTES This man page is generated automatically from the same sources as

a /dev/MAKEDEV , in which the device files are not always sorted, which may result in an unusual (non-alphabetical) order. Not all devices listed in this manpage are supported on all platforms.