date and time created 91/02/12 22:00:41 by bostic
[unix-history] / usr / src / usr.sbin / dev_mkdb / dev_mkdb.8
.\" Copyright (c) 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" %sccs.include.redist.man%
.\"
.\" @(#)dev_mkdb.8 5.1 (Berkeley) %G%
.\"
.TH dev_mkdb 8 ""
.UC 7
.SH NAME
dev_mkdb \- create /dev database
.SH SYNOPSIS
.B dev_mkdb
.SH DESCRIPTION
.I Dev_mkdb
creates a
.IR db (3)
database in ``/var/run/dev.db'' which lists the name and
.I st_rdev
field of all of the character special files in the ``/dev'' directory.
Each of these files is entered, with the
.I st_rdev
field as the key and the file name as the data.
.PP
This database is used by
.IR ps (1)
and
.IR ttyname (3).
.SH FILES
/dev Device directory
.br
/var/run/dev.db Database file
.SH SEE ALSO
ps(1), db(3), kvm_nlist(3), ttyname(3), kvm_mkdb(8)