summaryrefslogtreecommitdiff
path: root/usr.sbin/dev_mkdb/dev_mkdb.8
diff options
context:
space:
mode:
authormanu <manu@NetBSD.org>2001-07-04 20:42:02 +0000
committermanu <manu@NetBSD.org>2001-07-04 20:42:02 +0000
commitb70b2499b00a3e4bdbf6b7e6b89d2afb486b8938 (patch)
tree428c1695582f717ab66940b2770d9e829c28c8f0 /usr.sbin/dev_mkdb/dev_mkdb.8
parente7313e53ae70826b5487de5c51b9a2cc830b666a (diff)
Added flags to choose the location of the input device directory and the
output device database. Goal is to be consistent with other *_mkdb utilities such as pwd_mkdb or kvm_mkdb.
Diffstat (limited to 'usr.sbin/dev_mkdb/dev_mkdb.8')
-rw-r--r--usr.sbin/dev_mkdb/dev_mkdb.816
1 files changed, 12 insertions, 4 deletions
diff --git a/usr.sbin/dev_mkdb/dev_mkdb.8 b/usr.sbin/dev_mkdb/dev_mkdb.8
index 87fd7ed5c90..ef8a4b89016 100644
--- a/usr.sbin/dev_mkdb/dev_mkdb.8
+++ b/usr.sbin/dev_mkdb/dev_mkdb.8
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)dev_mkdb.8 8.1 (Berkeley) 6/6/93
-.\" $NetBSD: dev_mkdb.8,v 1.5 1997/10/17 00:12:43 lukem Exp $
+.\" $NetBSD: dev_mkdb.8,v 1.6 2001/07/04 20:42:02 manu Exp $
.\"
.Dd June 6, 1993
.Os
@@ -42,6 +42,8 @@
database
.Sh SYNOPSIS
.Nm
+.Op Fl o Ar database
+.Op directory
.Sh DESCRIPTION
The
.Nm
@@ -50,16 +52,22 @@ command creates a
hash access method database in
.Dq Pa /var/run/dev.db
which contains the names of all of the character and block special
-files in the
-.Dq Pa /dev
-directory, using the file type and the
+files in the specified directory, using the file type and the
.Fa st_rdev
field as the key.
+If no directory is specified, the
+.Dq Pa /dev
+directory is used.
.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.
+.Pp
+The options are as follows:
+.Bl -tag -width indent
+.It Fl o Ar database
+Put the output databases in the named file.
.Sh FILES
.Bl -tag -width /var/run/dev.db -compact
.It Pa /dev