Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Sep 2005 17:57:59 GMT
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        flashdict@gmail.com, rodrigc@FreeBSD.org, freebsd-standards@FreeBSD.org
Subject:   Re: standards/80293: sysconf() does not support well-defined unistd values
Message-ID:  <200509021757.j82HvxKB054846@freefall.freebsd.org>

index | next in thread | raw e-mail

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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509021757.j82HvxKB054846>