diff options
| author | joerg <joerg@NetBSD.org> | 2012-06-03 21:42:44 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2012-06-03 21:42:44 +0000 |
| commit | c75c4faf072ea40511548482ef5ddf59c92afcc0 (patch) | |
| tree | b2176172ab0730406ac514ab1c56e5cbd2720253 /usr.sbin/dev_mkdb/dev_mkdb.8 | |
| parent | b77be5886d2a20db14467957a1d6086db60cec6e (diff) | |
Switch device database to cdb(5). Rework ttyname(3) and ttyname_r(3) to
depend on new devname_r(3) as heart. Add /dev/pts magic directly to
devname(3). While it can lead to returning non-existing paths, the
behavior is more consistent that way. Drop caching layer in devname(3),
it doesn't buy anything for the common case of having access to the
database. Teach devname(3) proper fallback behavior of scanning /dev.
Create both old-style and new-style database for now in /etc/rc.d/sysdb.
Diffstat (limited to 'usr.sbin/dev_mkdb/dev_mkdb.8')
| -rw-r--r-- | usr.sbin/dev_mkdb/dev_mkdb.8 | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/usr.sbin/dev_mkdb/dev_mkdb.8 b/usr.sbin/dev_mkdb/dev_mkdb.8 index 14f38e83838..1ac74ef2e6b 100644 --- a/usr.sbin/dev_mkdb/dev_mkdb.8 +++ b/usr.sbin/dev_mkdb/dev_mkdb.8 @@ -26,9 +26,9 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)dev_mkdb.8 8.1 (Berkeley) 6/6/93 -.\" $NetBSD: dev_mkdb.8,v 1.12 2012/03/05 10:57:19 njoly Exp $ +.\" $NetBSD: dev_mkdb.8,v 1.13 2012/06/03 21:42:47 joerg Exp $ .\" -.Dd June 6, 1993 +.Dd June 1, 2012 .Dt DEV_MKDB 8 .Os .Sh NAME @@ -38,15 +38,16 @@ database .Sh SYNOPSIS .Nm +.Op Fl c .Op Fl o Ar database .Op directory .Sh DESCRIPTION The .Nm command creates a -.Xr db 3 -hash access method database in -.Dq Pa /var/run/dev.db +.Xr cdbr 3 +database in +.Dq Pa /var/run/dev.cdb which contains the names of all of the character and block special files in the specified directory, using the file type and the .Fa st_rdev @@ -62,6 +63,14 @@ the latter is the st_rdev field. .Pp The options are as follows: .Bl -tag -width indent +.It Fl c +Create a +.Xr db 3 +database for compatibility with libc versions and statically linked programs +from before +.Nx 6.0 . +The default name is +.Dq Pa /var/run/dev.db . .It Fl o Ar database Put the output databases in the named file. .El |
