Go to file
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
bin Drop privileges when executed set{u,g}id unless -p is specified like other 2015-05-26 21:35:15 +00:00
common force 2nd to argument to unsigned byte value. 2015-05-26 06:55:08 +00:00
compat Only support oabi for earm* 2015-05-27 15:35:23 +00:00
crypto Regenerate. 2015-05-28 19:13:53 +00:00
dist/pf
distrib Put a full "init" /dev on the CD, not just "all". The install environment 2015-05-29 06:28:50 +00:00
doc Note import of dhcpcd-6.9.0 2015-05-16 23:34:52 +00:00
etc define TOOL_MKUBOOTIMAGE for mkimage 2015-05-22 01:18:05 +00:00
external generate after oabi/eabi fixes. 2015-05-28 17:31:38 +00:00
extsrc
games
gnu CID 1225079: check getrlimit return 2015-05-09 13:32:30 +00:00
include Make PTHREAD_KEYS_MAX dynamically adjustable 2015-05-29 07:37:31 +00:00
lib Make PTHREAD_KEYS_MAX dynamically adjustable 2015-05-29 07:37:31 +00:00
libexec Bump date for previous. 2015-05-05 08:08:33 +00:00
regress
rescue
sbin constness doesn't increase by applying more const. 2015-05-28 20:14:00 +00:00
share Build both xf86-video-radeon drivers for amd64 and i386, just build the 2015-05-28 14:36:44 +00:00
sys disable drmkms on r100 and most r200. works around PR#49744, etc. 2015-05-29 05:48:46 +00:00
tests Bump timeout for ping and ping6 to 5 sec 2015-05-29 02:06:46 +00:00
tools Like the non-host mkdep don't print ./foo.h as a dependency, but simplify 2015-05-12 00:04:34 +00:00
usr.bin Fix warning about uninitialized variable 2015-05-25 09:01:06 +00:00
usr.sbin Remove obsolete interfaces: eon (netiso) and nsip (netns) 2015-05-21 01:09:00 +00:00
x11
build.sh Fix typo in usage. From Christopher M. Fuhrman in PR 49882. 2015-05-06 17:31:49 +00:00
BUILDING
Makefile
Makefile.inc
UPDATING