From chris@holly.dyndns.org Mon Jul 19 06:46:04 1999
Return-Path: <chris@holly.dyndns.org>
Received: from leap.innerx.net (leap.innerx.net [38.179.176.25])
	by hub.freebsd.org (Postfix) with ESMTP id 79FDC14D37
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 Jul 1999 06:46:00 -0700 (PDT)
	(envelope-from chris@holly.dyndns.org)
Received: from holly.dyndns.org (ip194.houston3.tx.pub-ip.psi.net [38.12.169.194])
	by leap.innerx.net (Postfix) with ESMTP id 5C87E3708B
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 19 Jul 1999 09:45:38 -0400 (EDT)
Received: (from chris@localhost)
	by holly.dyndns.org (8.9.3/8.9.3) id IAA15783;
	Mon, 19 Jul 1999 08:46:28 -0500 (CDT)
	(envelope-from chris)
Message-Id: <199907191346.IAA15783@holly.dyndns.org>
Date: Mon, 19 Jul 1999 08:46:28 -0500 (CDT)
From: chris@calldei.com
Sender: chris@holly.dyndns.org
Reply-To: chris@calldei.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: [Patch] src/lib/libc/gen/devname.3 out-of-sync with devname.c
X-Send-Pr-Version: 3.2

>Number:         12707
>Category:       docs
>Synopsis:       [Patch] src/lib/libc/gen/devname.3 out-of-sync with devname.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    phk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 19 06:50:01 PDT 1999
>Closed-Date:    Tue Jul 20 13:48:53 PDT 1999
>Last-Modified:  Tue Jul 20 13:49:23 PDT 1999
>Originator:     Chris Costello
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
none
>Environment:

devname.3:
     $Id: devname.3,v 1.4 1999/07/12 20:46:25 nik Exp $

>Description:

devname.c now returns the string "??" when no device is found.

>How-To-Repeat:

Use devname(3) and pass it data that will obviously cause it to not find
anything

Compare the results with the information in 'man 3 devname'

>Fix:

Index: devname.3
===================================================================
RCS file: /home/ncvs/src/lib/libc/gen/devname.3,v
retrieving revision 1.4
diff -u -r1.4 devname.3
--- devname.3	1999/07/12 20:46:25	1.4
+++ devname.3	1999/07/19 13:40:20
@@ -54,11 +54,9 @@
 .Fa type
 which must be one of S_IFBLK or S_IFCHR.
 If no device matches the specified values, or no information is
-available, NULL is returned.
-.Pp
-The traditional display for applications when no device is
-found is the string
-.Dq ?? .
+available, the string
+.Dq ??
+is returned.
 .Sh SEE ALSO
 .Xr stat 2 ,
 .Xr dev_mkdb 8

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->phk 
Responsible-Changed-By: green 
Responsible-Changed-When: Tue Jul 20 07:45:05 PDT 1999 
Responsible-Changed-Why:  
Poul made the change to the code. 
State-Changed-From-To: open->closed 
State-Changed-By: nik 
State-Changed-When: Tue Jul 20 13:48:53 PDT 1999 
State-Changed-Why:  
Beat phk to it :-)  Committed, thanks. 
>Unformatted:
