acpiconf.8: Remove duplicate SEE ALSO.
[dragonfly.git] / usr.sbin / dev_mkdb / dev_mkdb.8
1 .\" Copyright (c) 1990, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
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. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     @(#)dev_mkdb.8  8.1 (Berkeley) 6/6/93
29 .\" $FreeBSD: src/usr.sbin/dev_mkdb/dev_mkdb.8,v 1.5.2.4 2003/03/11 21:13:48 trhodes Exp $
30 .\"
31 .Dd November 18, 2001
32 .Dt DEV_MKDB 8
33 .Os
34 .Sh NAME
35 .Nm dev_mkdb
36 .Nd create
37 .Pa /dev
38 database
39 .Sh SYNOPSIS
40 .Nm
41 .Op Fl f Ar file
42 .Op Ar directory
43 .Sh DESCRIPTION
44 The
45 .Nm
46 utility creates a
47 .Xr db 3
48 hash access method database in
49 .Ar file
50 .Pa ( /var/run/dev.db
51 by default)
52 which contains the names of all of the character and block special
53 files in
54 .Ar directory
55 .Pa ( /dev
56 by default), using the file type and the
57 .Fa st_rdev
58 field as the key.
59 .Pp
60 Keys are a structure containing a
61 .Vt mode_t
62 followed by a
63 .Vt dev_t ,
64 with any padding zero'd out.
65 The former is the type of the file
66 .Va ( st_mode Li & Dv S_IFMT ) ,
67 the latter is the
68 .Va st_rdev
69 field.
70 .Sh FILES
71 .Bl -tag -width ".Pa /var/run/dev.db" -compact
72 .It Pa /dev
73 default device directory
74 .It Pa /var/run/dev.db
75 default database file
76 .El
77 .Sh SEE ALSO
78 .Xr ps 1 ,
79 .Xr stat 2 ,
80 .Xr db 3 ,
81 .Xr devname 3 ,
82 .Xr ttyname 3
83 .Sh HISTORY
84 The
85 .Nm
86 utility appeared in
87 .Bx 4.4 .