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 merge christos-time_t 2009-01-11 02:57:17 +00:00
rpc Always use the reentrant rpc_createerr. Otherwise every threaded program 2014-06-06 14:31:24 +00:00
rpcsvc Fix typo. 2013-01-23 17:27:35 +00:00
ssp add a macro to check overlapping pointers 2015-05-09 15:41:47 +00:00
Makefile Allow kernel code to access constant databases by moving cdbr(3) and the 2013-12-11 01:24:08 +00:00
a.out.h Repair more fallout from the exec_aout.h change. 2009-08-16 17:12:47 +00:00
aio.h fix reversed test from Tobias Nygren. 2009-01-13 15:11:09 +00:00
ar.h
assert.h __assert and __assert13 are dead 2011-08-26 01:10:49 +00:00
atomic.h /usr/include/atomic.h, for Solaris source compat. 2008-05-28 12:28:12 +00:00
bitstring.h lint friendly 2010-05-06 18:54:22 +00:00
bm.h
cdbw.h Prototype for cdbw_stable_seeder. 2012-06-03 21:21:45 +00:00
complex.h Add missing long double prototypes. 2013-01-28 23:19:50 +00:00
cpio.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ctype.h Include at least ctype_bits.h, even when not providing the macros. 2013-04-28 19:39:56 +00:00
db.h add new internal functions 2013-12-01 00:23:11 +00:00
dirent.h comments 2012-07-30 23:04:42 +00:00
disktab.h
dlfcn.h Add _dlauxinfo helper function to provide access to the ELF auxilary 2012-02-16 23:00:38 +00:00
err.h Add the {v,}{warn,err}c function flavors from FreeBSD 2014-01-16 17:22:06 +00:00
errno.h Add a comment noting that the definition of __errno is now replicated in 2008-03-03 06:57:48 +00:00
fenv.h fenv(3) support for hppa 2014-12-27 16:54:02 +00:00
fmtmsg.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
fnmatch.h new error. 2011-01-31 04:49:46 +00:00
fstab.h
fts.h Version fts one more time! This is the most versioned API ever... Bump 2009-08-16 19:33:38 +00:00
ftw.h
getopt.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
glob.h add globstar. 2010-09-06 14:38:56 +00:00
grp.h kill _NETBSD_TOOLS. 2007-10-19 15:58:52 +00:00
hesiod.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
iconv.h
ieeefp.h finish the ieeefp.h vs fp_prec_t hack from the previous change and 2011-03-27 05:13:15 +00:00
ifaddrs.h
inttypes.h strtoi and strtou additions 2015-01-16 18:35:59 +00:00
iso646.h Do not define the C++ alternative operator names as macros. 2013-04-26 10:58:45 +00:00
kvm.h add kvm_getkernelname() 2011-09-12 21:14:29 +00:00
langinfo.h Add nl_langinfo_l, catopen_l and wcsftime_l. 2013-08-19 08:03:33 +00:00
libgen.h remove the const again - per core. 2008-05-10 22:37:42 +00:00
limits.h Make PTHREAD_KEYS_MAX dynamically adjustable 2015-05-29 07:37:31 +00:00
link.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
link_aout.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
link_elf.h Implement dl_iterate_phdr. 2010-10-16 10:27:06 +00:00
locale.h Too many endif. 2013-05-17 14:11:55 +00:00
login_cap.h merge christos-time_t 2009-01-11 02:57:17 +00:00
lwp.h __lwp_park60 2014-01-31 20:44:17 +00:00
malloc.h
math.h Allow archs to provide __isinf() and __isnan() as inline functions instead 2013-09-16 15:54:42 +00:00
md2.h
memory.h
mntopts.h Implement experimental support to pass notifications that a file 2012-10-19 17:09:06 +00:00
monetary.h add missing attributes to the remaining calls, even the ones that gcc has 2008-09-21 16:59:46 +00:00
mpool.h use a TAILQ instead of a CIRCLEQ, from FreeBSD 2013-11-22 16:25:01 +00:00
mqueue.h merge christos-time_t 2009-01-11 02:57:17 +00:00
ndbm.h Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
netconfig.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
netdb.h fix gethostbyaddr prototype per TOG. 2013-08-19 07:18:42 +00:00
netgroup.h Remove 3rd and 4th clauses in christos' license. OK christos. 2009-10-21 01:07:44 +00:00
nl_types.h Add nl_langinfo_l, catopen_l and wcsftime_l. 2013-08-19 08:03:33 +00:00
nlist.h Introduce a new accessor macro N_NAME() to access the n_name field 2009-08-21 08:42:02 +00:00
nsswitch.h Retire varargs.h support. Move machine/stdarg.h logic into MI 2011-07-17 20:54:30 +00:00
paths.h Add missing PATH_WATCHDOG (to complement PATH_SYSMON and PATH_POWER) 2015-05-06 23:06:26 +00:00
pwd.h revert previous commit since it breaks the build on NetBSD and 2012-11-26 19:53:41 +00:00
quota.h Be consistent about whether idtype and objtype codes are signed or 2012-02-01 05:46:45 +00:00
randomid.h
ranlib.h
re_comp.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
regex.h
regexp.h
res_update.h use standard queue macros. 2012-11-15 18:49:37 +00:00
resolv.h add <netinet/in.h> because it is needed for sockaddr_in. 2012-11-07 15:45:24 +00:00
rmt.h handle ssp 2011-02-16 19:29:35 +00:00
sched.h merge christos-time_t 2009-01-11 02:57:17 +00:00
search.h amend the new destroy function to take function pointers. 2014-07-20 20:17:21 +00:00
semaphore.h Implement sem_timedwait. 2012-03-08 21:59:24 +00:00
setjmp.h Add __returns_twice for the attribute of the same name. This makes the 2011-11-05 09:27:06 +00:00
sgtty.h
signal.h The signal number argument in psignal is int not unsigned int. 2010-08-27 08:40:38 +00:00
spawn.h Use C++ compatible declaration for posix_spawn (instead of the C99 specific 2012-02-22 17:51:01 +00:00
stab.h
stdbool.h Define __bool_true_false_are_defined for C++ as well. 2013-04-26 17:41:34 +00:00
stddef.h Make ptrdiff_t available in the kernel. 2013-12-12 17:53:03 +00:00
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 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
strings.h Don't pollute the namespace with stdint.h. (This file is included from 2011-08-22 01:24:15 +00:00
struct.h
sysexits.h
tar.h
tgmath.h Add the C99 header <tgmath.h> (Type-generic math.h) 2008-09-28 14:57:41 +00:00
time.h sync function signatures with tzcode 2014-10-07 21:50:36 +00:00
ttyent.h Systematically include sys/featuretest.h when _NETBSD_SOURCE is used. 2013-04-27 21:35:24 +00:00
tzfile.h
ucontext.h Add __returns_twice for the attribute of the same name. This makes the 2011-11-05 09:27:06 +00:00
ulimit.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
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 merge christos-time_t 2009-01-11 02:57:17 +00:00
utmp.h merge christos-time_t 2009-01-11 02:57:17 +00:00
utmpx.h don't do size computations because g++ does not like it. 2009-01-11 19:09:29 +00:00
uuid.h constify uuid(3) 2008-04-23 07:52:32 +00:00
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 Systematically include sys/featuretest.h when _NETBSD_SOURCE is used. 2013-04-27 21:35:24 +00:00
wordexp.h everyone else assumes that defining "_XOPEN_SOURCE" means XPG4.2, 2008-04-01 19:23:28 +00:00