misc/106234: confstr(3) man page incorrectly documents return value
Guy Harris
guy at alum.mit.edu
Sat Dec 2 13:40:26 PST 2006
>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:
More information about the freebsd-bugs
mailing list