Subject: Re: bin/35194: getconf should check for 0, not -1, in its confstr()
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, guy@alum.mit.edu>
From: Guy Harris <guy@alum.mit.edu>
List: netbsd-bugs
Date: 12/06/2006 11:25:01
The following reply was made to PR bin/35194; it has been noted by GNATS.
From: Guy Harris <guy@alum.mit.edu>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/35194: getconf should check for 0, not -1, in its confstr()
call
Date: Wed, 06 Dec 2006 02:18:52 -0800
Note also that, in order to distinguish between confstr() reporting a
real error and confstr() reporting that the variable doesn't have a
configured value, you need to clear errno before the call and check
whether it's set after the call if it returned 0.