Commit Graph

21 Commits

Author SHA1 Message Date
lukem
364ede827b need <limits.h> for _SC_GET{GR,PW}_SIZE_MAX 2004-11-10 04:46:01 +00:00
lukem
246f6fd919 Implement sysconf(3) _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX for
the 1003.1-2001 Thread Safe Functions (TSF) getgrnam_r(3) and getpwnam_r(3).

These are not implemented in sysctl(3) "user.*", since that adds a lot
of complexity in the implementation for no real benefit.
2004-11-10 04:02:52 +00:00
agc
eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
kleink
71d7654509 Add sysconf(3) knobs for recent additions. 2003-02-02 20:33:05 +00:00
kleink
ac7290d7c2 Add a sysconf(3) knob for {ATEXIT_MAX}. 2002-12-19 23:31:54 +00:00
bjh21
c1ba727b47 Version times() so that programs compiled before the recent change to make
sysconf(_SC_CLK_TCK) return hz will work.

In detail:
__times13() returns values scaled by hz.
times() returns values scaled by 100.
<sys/times.h> renames times() to __times13().

_SC_CLK_TCK has changed from 3 to 39.
sysconf(3) returns 100.
sysconf(39) returns hz.
CLK_TCK is defined as sysconf(39).
2002-06-30 09:45:39 +00:00
perry
ea360bda1a make sysconf(_SC_CLK_TCK) return the kernel hz value, instead of a
fixed constant, as is done on Solaris, Linux, etc.

Technically, standards don't *require* this, but having it return a
constant is a violation of the spirit, and screws up programs that
(perhaps improperly) assume that it will return kernel hz.
2002-06-23 19:19:01 +00:00
kleink
935d56d508 Add {POSIX_MONOTONIC_CLOCK} variables. 2002-01-31 00:32:47 +00:00
kleink
15318b7678 Internally rename sysconf() to __sysconf() to make its latter name suitable
for use from public headers.  Also, do so on all platforms.
2001-05-07 17:25:57 +00:00
mycroft
605490369c Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
kleink
c13a492388 1003.1c: add {LOGIN_NAME_MAX}. 1999-09-27 16:24:39 +00:00
kleink
7b67bca335 Add compile-time and run-time feature test knobs for the 1003.1 Mapped Files,
Process Memory Locking, Range Memory Locking and Memory Protection options.
1999-06-24 14:18:10 +00:00
kleink
22384accd7 Add support for _SC_SYNCHRONIZED_IO and _SC_IOV_MAX. Rearrange documentation
a bit, and actually document _SC_XOPEN_SHM.
1998-08-03 14:41:21 +00:00
kleink
3759ec18f5 Add support to query PAGESIZE, PAGE_SIZE, _POSIX_FSYNC and _XOPEN_SHM via
sysconf().
1998-05-24 20:12:25 +00:00
kleink
c5f58ab93c Need <time.h> for CLK_TCK definition. 1998-03-30 14:33:22 +00:00
perry
8205792218 trivial changes to quiet lint. 1998-02-27 18:34:06 +00:00
jtc
43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
christos
f01d533d35 Fix RCSID's
Remove unused variable
1997-07-13 19:32:15 +00:00
cgd
ee38224d2e fix up some RCS Id's i botched. 1995-03-04 01:55:49 +00:00
cgd
9060ff0dc7 merge with 4.4-Lite, keeping local changes. clean up Ids 1995-02-27 05:50:11 +00:00
cgd
060d0e3d1a various sysctl-related libc functions 1994-05-07 02:52:59 +00:00