This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] posixoptions.7: Expand XSI Options groups.


A related problem I just noticed: sysconf(3) says

| For options, typically, there is a constant
| .B _POSIX_FOO
| that may be defined in
| .IR <unistd.h> .
| If it is undefined, one should ask at run time.
| If it is defined to \-1, then the option is not supported.

But according to
<http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html#tag_13_77_03_02>,
undefined is the same as defined to -1: "If a symbolic constant is not
defined or is defined with the value -1, the option is not supported
for compilation."

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]