Date: Sat, 2 Dec 2006 21:36:13 GMT From: Guy Harris<guy@alum.mit.edu> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/106234: confstr(3) man page incorrectly documents return value Message-ID: <200612022136.kB2LaDsX070354@www.freebsd.org> Resent-Message-ID: <200612022140.kB2LeAv5080061@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 106234 >Category: misc >Synopsis: confstr(3) man page incorrectly documents return value >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 02 21:40:09 GMT 2006 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612022136.kB2LaDsX070354>