From nobody@FreeBSD.org  Sat Dec  2 21:36:42 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 9CE5816A403
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  2 Dec 2006 21:36:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C8F9443CBC
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  2 Dec 2006 21:35:59 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kB2LaDoe070355
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 2 Dec 2006 21:36:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kB2LaDsX070354;
	Sat, 2 Dec 2006 21:36:13 GMT
	(envelope-from nobody)
Message-Id: <200612022136.kB2LaDsX070354@www.freebsd.org>
Date: Sat, 2 Dec 2006 21:36:13 GMT
From: Guy Harris<guy@alum.mit.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: confstr(3) man page incorrectly documents return value
X-Send-Pr-Version: www-3.0

>Number:         106234
>Category:       docs
>Synopsis:       confstr(3) man page incorrectly documents return value
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    maxim
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 02 21:40:09 GMT 2006
>Closed-Date:    Wed Dec 13 12:31:22 GMT 2006
>Last-Modified:  Wed Dec 13 12:31:22 GMT 2006
>Originator:     Guy Harris
>Release:        7.0-CURRENT
>Organization:
>Environment:
>Description:
The top-of-tree confstr.c correctly (as per http://www.opengroup.org/onlinepubs/009695399/functions/confstr.html) returns 0 for errors.  The man page, however, says it returns -1.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

*** /tmp/confstr.3.orig	Sat Dec  2 13:33:02 2006
--- /tmp/confstr.3	Sat Dec  2 13:32:07 2006
***************
*** 92,98 ****
  .Sh RETURN VALUES
  If the call to
  .Fn confstr
! is not successful, \-1 is returned and
  .Va errno
  is set appropriately.
  Otherwise, if the variable does not have a configuration defined value,
--- 92,98 ----
  .Sh RETURN VALUES
  If the call to
  .Fn confstr
! is not successful, 0 is returned and
  .Va errno
  is set appropriately.
  Otherwise, if the variable does not have a configuration defined value,

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: maxim 
State-Changed-When: Sun Dec 3 08:22:59 UTC 2006 
State-Changed-Why:  
Fixed in HEAD.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106234 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/106234: commit references a PR
Date: Sun,  3 Dec 2006 08:22:51 +0000 (UTC)

 maxim       2006-12-03 08:22:36 UTC
 
   FreeBSD src repository
 
   Modified files:
     lib/libc/gen         confstr.3 
   Log:
   o As POSIX requires confstr(3) returns zero on errors, not -1.
   
   PR:             misc/106234
   Submitted by:   Guy Harris
   MFC after:      1 week
   
   Revision  Changes    Path
   1.14      +2 -2      src/lib/libc/gen/confstr.3
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
Responsible-Changed-From-To: freebsd-bugs->freebsd-doc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Dec 3 11:38:03 UTC 2006 
Responsible-Changed-Why:  
docs PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106234 
Responsible-Changed-From-To: freebsd-doc->maxim 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Tue Dec 5 22:13:36 UTC 2006 
Responsible-Changed-Why:  
Assign to maxim for MFC plans. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106234 
State-Changed-From-To: patched->closed 
State-Changed-By: maxim 
State-Changed-When: Wed Dec 13 12:31:07 UTC 2006 
State-Changed-Why:  
Merged to RELENG_6. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106234 
>Unformatted:
