Subject: lib/35170: confstr() should return 0, not -1, on errors
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <guy@alum.mit.edu>
List: netbsd-bugs
Date: 12/02/2006 22:45:00
>Number: 35170
>Category: lib
>Synopsis: confstr() should return 0, not -1, on errors
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Dec 02 22:45:00 +0000 2006
>Originator: Guy Harris
>Release: -current
>Organization:
>Environment:
>Description:
According to
http://www.opengroup.org/onlinepubs/009695399/functions/confstr.html
confstr() should return 0, not (size_t)-1, on errors. The current NetBSD implementation returns -1 if sysctl() fails.
>How-To-Repeat:
>Fix: