xref: /original-bsd/usr.sbin/dev_mkdb/dev_mkdb.8 (revision ba762ddc)
Copyright (c) 1990 The Regents of the University of California.
All rights reserved.

%sccs.include.redist.man%

@(#)dev_mkdb.8 5.2 (Berkeley) 05/02/91

dev_mkdb 8 ""
C 7
NAME
dev_mkdb - create /dev database
SYNOPSIS
dev_mkdb
DESCRIPTION
Dev_mkdb creates a db (3) database in ``/var/run/dev.db'' which lists the name and st_rdev field of all of the character and block special files in the ``/dev'' directory. Character special files are entered using the st_rdev field as the key. Block special files are entered using the st_rdev field followed by a single NULL byte as the key. The file name is stored as the data.

This database is used by the devname() function in ps (1) and is shared among several other programs.

FILES
/dev Device directory

/var/run/dev.db Database file

SEE ALSO
ps(1), db(3), kvm_nlist(3), ttyname(3), kvm_mkdb(8)