glibc/include/bits
Florian Weimer aaacde11f2 Reduce <limits.h> pollution due to dynamic PTHREAD_STACK_MIN
<limits.h> used to be a header file with no declarations.
GCC's libgomp includes it in a #pragma GCC visibility hidden block.
Including <unistd.h> from <limits.h> (indirectly) declares everything
in <unistd.h> with hidden visibility, resulting in linker failures.

This commit avoids C declarations in assembler mode and only declares
__sysconf in <limits.h> (and not the entire contents of <unistd.h>).
The __sysconf symbol is already part of the ABI.  PTHREAD_STACK_MIN
is no longer defined for __USE_DYNAMIC_STACK_SIZE && __ASSEMBLER__
because there is no possible definition.

Additionally, PTHREAD_STACK_MIN is now defined by <pthread.h> for
__USE_MISC because this is what developers expect based on the macro
name.  It also helps to avoid libgomp linker failures in GCC because
libgomp includes <pthread.h> before its visibility hacks.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-07-12 18:43:32 +02:00
..
types time: Add 64-bit time_t support for ftime 2020-10-27 09:54:50 -03:00
argp-ldbl.h ldbl-opt: Add argp_error and argp_failure (bug 23983) 2019-03-01 15:21:32 -03:00
cmathcalls.h
cpu-set.h linux: Use sched_getaffinity for __get_nprocs (BZ #27645) 2021-05-07 13:54:09 -03:00
dlfcn.h
endian.h Split up endian.h to minimize exposure of BYTE_ORDER. 2019-10-01 14:54:46 -07:00
err-ldbl.h ldbl-opt: Add err, errx, verr, verrx, warn, warnx, vwarn, and vwarnx (bug 23984) 2019-03-01 15:24:51 -03:00
error-ldbl.h ldbl-opt: Add error and error_at_line (bug 23984) 2019-03-01 15:26:36 -03:00
error.h
fcntl2.h
getopt_core.h
getopt_ext.h
getopt_posix.h
locale.h
mathcalls-helper-functions.h
mathcalls-narrow.h
mathcalls.h
monetary-ldbl.h
mqueue2.h Add missing header wrappers under include/ 2019-02-16 08:25:16 +01:00
poll2.h
posix1_lim.h
posix2_lim.h
printf-ldbl.h
select2.h
setjmp2.h
sigstack.h sysconf: Add _SC_MINSIGSTKSZ/_SC_SIGSTKSZ [BZ #20305] 2021-02-01 11:00:52 -08:00
sigstksz.h sysconf: Add _SC_MINSIGSTKSZ/_SC_SIGSTKSZ [BZ #20305] 2021-02-01 11:00:52 -08:00
socket2.h
stab.def
statx-generic.h <sys/stat.h>: Use Linux UAPI header for statx if available and useful 2019-06-12 13:04:43 +02:00
statx.h
stdio2.h Add missing header wrappers under include/ 2019-02-16 08:25:16 +01:00
stdio-ldbl.h
stdio.h Add missing header wrappers under include/ 2019-02-16 08:25:16 +01:00
stdlib-float.h
stdlib-ldbl.h
stdlib.h
string2.h
string_fortified.h
strings_fortified.h
syslog-ldbl.h
syslog.h
types.h
unistd_ext.h linux: Add close_range 2021-07-08 14:08:13 -03:00
unistd.h
wchar2.h
wchar-ldbl.h
wctype-wchar.h
xopen_lim.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00