summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1999-07-24 00:33:27 +0000
committerbde <bde@FreeBSD.org>1999-07-24 00:33:27 +0000
commit02cdc154c9cfc7c75b2711b4e3e819d0745949b3 (patch)
treec07129b476aa36ec7916f831d9b1d5c0f7bce197 /lib
parentc9e1b9416b60e2e9e3dd7b383a46837c3736dd4a (diff)
downloadFreeBSD-src-02cdc154c9cfc7c75b2711b4e3e819d0745949b3.zip
FreeBSD-src-02cdc154c9cfc7c75b2711b4e3e819d0745949b3.tar.gz
Backed out previous commit. devname.3 and devname.c were broken in Lite1
(devname() returned "??" when the lookup failed, but callers expected it to return NULL). This was fixed in Lite2, but until recently the changes were only merged into devname.3. A day or two after devname.c was fixed, devname.3 was made inconsistent again by backing out most of the Lite2 changes.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/devname.310
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/gen/devname.3 b/lib/libc/gen/devname.3
index 078cf34..7b0606f 100644
--- a/lib/libc/gen/devname.3
+++ b/lib/libc/gen/devname.3
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)devname.3 8.2 (Berkeley) 4/29/95
-.\" $Id: devname.3,v 1.4 1999/07/12 20:46:25 nik Exp $
+.\" $Id: devname.3,v 1.5 1999/07/20 20:48:40 nik Exp $
.\"
.Dd April 29, 1995
.Dt DEVNAME 3
@@ -54,9 +54,11 @@ and a file type matching the one encoded in
.Fa type
which must be one of S_IFBLK or S_IFCHR.
If no device matches the specified values, or no information is
-available, the string
-.Dq ??
-is returned.
+available, NULL is returned.
+.Pp
+The traditional display for applications when no device is
+found is the string
+.Dq ?? .
.Sh SEE ALSO
.Xr stat 2 ,
.Xr dev_mkdb 8
OpenPOWER on IntegriCloud