summaryrefslogtreecommitdiff
path: root/usr.sbin/dev_mkdb/dev_mkdb.8
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1995-01-30 21:12:41 +0000
committermycroft <mycroft@NetBSD.org>1995-01-30 21:12:41 +0000
commitbbfccb8f005ddc2a4b85ee9430d72afb06b2f356 (patch)
tree6a11027fd071858d5d6ff1a39dae82b610283d68 /usr.sbin/dev_mkdb/dev_mkdb.8
parent0c1f0c97eb2bbd90a7aca2a5f84334e3e714d7c4 (diff)
Merge with 4.4-Lite, and use libc err(3) and warn(3).
Diffstat (limited to 'usr.sbin/dev_mkdb/dev_mkdb.8')
-rw-r--r--usr.sbin/dev_mkdb/dev_mkdb.832
1 files changed, 20 insertions, 12 deletions
diff --git a/usr.sbin/dev_mkdb/dev_mkdb.8 b/usr.sbin/dev_mkdb/dev_mkdb.8
index c2899097227..36617aae728 100644
--- a/usr.sbin/dev_mkdb/dev_mkdb.8
+++ b/usr.sbin/dev_mkdb/dev_mkdb.8
@@ -1,5 +1,5 @@
-.\" Copyright (c) 1990 The Regents of the University of California.
-.\" All rights reserved.
+.\" Copyright (c) 1990, 1993
+.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
@@ -29,10 +29,10 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" from: @(#)dev_mkdb.8 5.4 (Berkeley) 8/5/91
-.\" $Id: dev_mkdb.8,v 1.2 1993/08/01 07:25:17 mycroft Exp $
+.\" from: @(#)dev_mkdb.8 8.1 (Berkeley) 6/6/93
+.\" $Id: dev_mkdb.8,v 1.3 1995/01/30 21:12:43 mycroft Exp $
.\"
-.Dd August 5, 1991
+.Dd June 6, 1993
.Os
.Dt DEV_MKDB 8
.Sh NAME
@@ -47,13 +47,19 @@ The
.Nm dev_mkdb
command creates a
.Xr db 3
-database in
+hash access method database in
.Dq Pa /var/run/dev.db
-which lists the name and
-.Fa st_rdev
-field of all of the character and block special files in the
+which contains the names of all of the character and block special
+files in the
.Dq Pa /dev
-directory.
+directory, using the file type and the
+.Fa st_rdev
+field as the key.
+.Pp
+Keys are a structure containing a mode_t followed by a dev_t,
+with any padding zero'd out.
+The former is the type of the file (st_mode & S_IFMT),
+the latter is the st_rdev field.
.Sh FILES
.Bl -tag -width /var/run/dev.db -compact
.It Pa /dev
@@ -63,12 +69,14 @@ Database file.
.El
.Sh SEE ALSO
.Xr ps 1 ,
+.Xr stat 2 ,
.Xr db 3 ,
+.Xr devname 3 ,
.Xr kvm_nlist 3 ,
.Xr ttyname 3 ,
.Xr kvm_mkdb 8
.Sh HISTORY
The
.Nm dev_mkdb
-command is
-.Ud .
+command appeared in
+.Bx 4.4 .