standards/80293: sysconf() does not support well-defined unistd values

Craig Rodrigues rodrigc at FreeBSD.org
Fri Sep 2 10:57:59 PDT 2005


Synopsis: sysconf() does not support well-defined unistd values

State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Fri Sep 2 17:53:02 GMT 2005
State-Changed-Why: 
Whether or not a constant is defined in <unistd.h> is
not relevant to whether sysconf() accepts it or not (unfortunately).

The list of constants supported by sysconf() are handled in
/usr/src/lib/libc/gen/sysconf.c
Any constant which is not handled there will return a -1,
and set errno to EINVAL, which is legal behavior with
respect to the Single Unix Specification.

For _SC_GETGR_R_SIZE_MAX, it is difficult to return a single value,
because in the file where this implemented
( /usr/src/lib/libc/gen/getgrgent.c ), the getgr*_r functions
are delegated down to _nsdispatch().


http://www.freebsd.org/cgi/query-pr.cgi?pr=80293


More information about the freebsd-standards mailing list