NetBSD/include
manu 841339f07f Make PTHREAD_KEYS_MAX dynamically adjustable
NetBSD's PTHREAD_KEYS_MAX is set to 256, which is low compared to
other systems like Linux (1024) or MacOS X (512). As a result some
setups tested on Linux will exhibit problems on NetBSD because of
pthread_keys usage beyond the limit. This happens for instance on
Apache with various module loaded, and in this case no particular
developper can be blamed for going beyond the limit, since several
modules from different sources contribute to the problem.

This patch makes the limit conigurable through the PTHREAD_KEYS_MAX
environement variable. If undefined, the default remains unchanged
(256). In any case, the value cannot be lowered below POSIX-mandated
_POSIX_THREAD_KEYS_MAX (128).

While there:
- use EXIT_FAILURE instead of 1 when calling err(3) in libpthread.
- Reset _POSIX_THREAD_KEYS_MAX to POSIX mandated 128, instead of 256.
2015-05-29 07:37:31 +00:00
..
arpa belated removal of the advertising clause. 2015-02-24 17:56:20 +00:00
protocols
rpc
rpcsvc
ssp add a macro to check overlapping pointers 2015-05-09 15:41:47 +00:00
a.out.h
aio.h
ar.h
assert.h
atomic.h
bitstring.h
bm.h
cdbw.h
complex.h
cpio.h
ctype.h
db.h
dirent.h
disktab.h
dlfcn.h
err.h
errno.h
fenv.h fenv(3) support for hppa 2014-12-27 16:54:02 +00:00
fmtmsg.h
fnmatch.h
fstab.h
fts.h
ftw.h
getopt.h
glob.h
grp.h
hesiod.h
iconv.h
ieeefp.h
ifaddrs.h
inttypes.h strtoi and strtou additions 2015-01-16 18:35:59 +00:00
iso646.h
kvm.h
langinfo.h
libgen.h
limits.h Make PTHREAD_KEYS_MAX dynamically adjustable 2015-05-29 07:37:31 +00:00
link_aout.h
link_elf.h
link.h
locale.h
login_cap.h
lwp.h
Makefile
malloc.h
math.h
md2.h
memory.h
mntopts.h
monetary.h
mpool.h
mqueue.h
ndbm.h
netconfig.h
netdb.h
netgroup.h
nl_types.h
nlist.h
nsswitch.h
paths.h Add missing PATH_WATCHDOG (to complement PATH_SYSMON and PATH_POWER) 2015-05-06 23:06:26 +00:00
pwd.h
quota.h
randomid.h
ranlib.h
re_comp.h
regex.h
regexp.h
res_update.h
resolv.h
rmt.h
sched.h
search.h
semaphore.h
setjmp.h
sgtty.h
signal.h
spawn.h
stab.h
stdbool.h
stddef.h
stdio.h Put fseeko, ftello, pread, and pwrite in the POSIX 2001 namespace. 2015-03-24 07:44:52 +00:00
stdlib.h Move reallocarray under _OPENBSD_SOURCE where it belongs. 2015-02-17 20:33:40 +00:00
string.h add strnstr from FreeBSD 2014-09-24 18:16:36 +00:00
stringlist.h
strings.h
struct.h
sysexits.h
tar.h
tgmath.h
time.h sync function signatures with tzcode 2014-10-07 21:50:36 +00:00
ttyent.h
tzfile.h
ucontext.h
ulimit.h
unistd.h Put fseeko, ftello, pread, and pwrite in the POSIX 2001 namespace. 2015-03-24 07:44:52 +00:00
util.h add estrto{i,u} (Kamil Rytarowski) 2015-01-18 18:10:01 +00:00
utime.h
utmp.h
utmpx.h
uuid.h
vis.h add VIS_NOLOCALE flag 2015-05-23 11:48:31 +00:00
wchar.h add open_{,w}memstream 2014-10-13 00:47:03 +00:00
wctype.h
wordexp.h