summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/devname.3
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-09-09 11:39:59 +0000
committerphk <phk@FreeBSD.org>2000-09-09 11:39:59 +0000
commitd0fd2f76cf6b0884889cbadc44dc9807523a6d51 (patch)
tree8c7e2a84070834a639ea2e7b10c104c5505a1e85 /lib/libc/gen/devname.3
parent81ee18f66b10b0987c69873963a2552186771844 (diff)
downloadFreeBSD-src-d0fd2f76cf6b0884889cbadc44dc9807523a6d51.zip
FreeBSD-src-d0fd2f76cf6b0884889cbadc44dc9807523a6d51.tar.gz
Add code to devname(3) so it can find the names of devices which
were not present when dev_mkdb(8) was run. First the dev_mkdb(8) database is searched, this caters for non-DEVFS cases where people have renamed a device. If that fails we ask the kernel using sysctl kern.devname if the device driver has put a name in the dev_t. This covers DEVFS cloned devices. If that also fails we format a string which isn't entirely useless.
Diffstat (limited to 'lib/libc/gen/devname.3')
-rw-r--r--lib/libc/gen/devname.31
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/devname.3 b/lib/libc/gen/devname.3
index b63d6c9..2f39c80 100644
--- a/lib/libc/gen/devname.3
+++ b/lib/libc/gen/devname.3
@@ -41,6 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
+.Fd #include <sys/stat.h>
.Fd #include <stdlib.h>
.Ft char *
.Fn devname "dev_t dev" "mode_t type"
OpenPOWER on IntegriCloud