On Sun, 3 Mar 2013, [email protected] wrote:
> * When a confstr() name is queried and it doesn't have a 
> configuration-defined value (e.g., POSIX_V7_ILP32_OFF32_CFLAGS in 
> OpenBSD), getconf is unconformant by exiting with a non-zero status 
> instead of printing "undefined\n".

Yep, since confstr() isn't changing errno, they should be reported as 
"undefined".

Amusingly, since _POSIX_V7_ILP32_OFF32 isn't defined, the meaning of the 
string from confstr(_CS_POSIX_V7_ILP32_OFF32_CFLAGS) is unspecified.  
Maybe it should return "-Dif=while" or something fun like that; see how 
many packages lack the prerequisite check...

> * `getconf -l` lists duplicate entries.

Yep.

> * confstr() failures don't print strerror(errno) unlike sysconf()
> failures.

No, it did include the strerror message.  The real defect was that it also 
included the decimal value of the _CS_FOO constant, which was pointless.

Anyway, fixed.  Thanks.


Philip Guenther

Reply via email to