summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/sysconf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sysconf(_SC_SEM_VALUE_MAX) should return SEM_VALUE_MAX, not someguenther2013-03-241-7/+3
| | | | | unrelated sysv sem limit. Similarly, sysconf(_SC_SEM_NSEMS_MAX) should return -1 instead of another sysv sem limit.
* Fix _SC_CHILD_MAX, _SC_OPEN_MAX, and _SC_STREAM_MAX to correctlymatthew2012-08-291-6/+38
| | | | | | | | | | | handle rlim_cur set to RLIM_INFINITY or values greater than LONG_MAX, as unlikely as those are to happen. Further limit _SC_STREAM_MAX to at most SHRT_MAX, because struct __sFILE uses a short int for storing the file descriptor. While here, also remove a dead label that Clang complains about. From FreeBSD via Brad.
* In sysconf(), don't bother querying the kernel for userspace-onlymatthew2012-06-241-40/+19
| | | | | | values or features that POSIX now requires to always be provided. From Brad; ok guenther and me; incorporates feedback from millert too
* More sysconf(3)-y and pathconf(3)-y goodness from Brad.matthew2012-05-141-29/+231
| | | | ok guenther, millert (and me); bulk build test by naddy
* Add the _POSIX_MONOTONIC_CLOCK symbol and the sysconf(3)ajacoutot2012-03-061-1/+3
| | | | | | | | | | | _SC_MONOTONIC_CLOCK variable. from Brad No libc minor crank needed, as no API has been changed, per se (deraadt). ports bulk testing by landry@ small man rewording from thib@ ok millert@ otto@ deraadt@
* Teach sysconf(_SC_GETGR_R_SIZE_MAX) the correct size of a buffer for thesthen2011-04-251-2/+3
| | | | | | reentrant getgrent functions (getgrgid_r, getgrnam_r). seems reasonable to millert@, ok deraadt@
* support _SC_HOST_NAME_MAX; from bradderaadt2010-10-281-1/+5
| | | | a libc crank is happening in < 24 hours
* Add support to sysconf(3) for the variables _SC_NPROCESSORS_CONF andsthen2010-01-151-1/+10
| | | | | | | _SC_NPROCESSORS_ONLN, implemented by AIX/Tru64/Solaris/Linux/SCO/FreeBSD/NetBSD. Bump libc minor. From Brad, ok deraadt@ guenther@
* Implement _SC_GETGR_R_SIZE_MAX, _SC_GETPW_R_SIZE_MAX, _SC_LOGIN_NAME_MAX,millert2008-06-251-1/+15
| | | | and _SC_THREAD_SAFE_FUNCTIONS for sysconf(3). OK deraadt@
* Add the semi-standard _SC_PHYS_PAGES and _SC_AVPHYS_PAGES, sysconf(3) variable.kettenis2008-03-161-1/+27
| | | | ok espie@
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* ansify function definitions and zap some `register'jfb2004-05-181-3/+2
| | | | ok millert@
* Implement _SC_SEM_NSEMS_MAX and _SC_SEM_VALUE_MAX.millert2004-05-071-4/+14
| | | | Based on a diff from Jean-Gérard Pailloncy.
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* add sysctl and sysconf support for sysvsem, sysvshm, sysvmsg, and fsync; mostly from kleinkderaadt1998-06-021-1/+18
|
* Remove dead codetholo1996-09-151-2/+1
| | | | | | Remove unused variables Silence some warnings lint(1) is your friend
* Fix RCS idstholo1996-08-191-7/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+194