Author: sthibault Date: 2015-11-21 17:54:54 +0000 (Sat, 21 Nov 2015) New Revision: 6684
Modified: glibc-package/branches/glibc-2.22/debian/changelog glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-posix_thread.diff Log: backport r6683 from 2.21: patches/hurd-i386/tg-posix_thread.diff: Update, to define _POSIX_THREAD_KEYS_MAX, _POSIX_THREAD_DESTRUCTOR_ITERATIONS and _POSIX_THREAD_THREADS_MAX. Modified: glibc-package/branches/glibc-2.22/debian/changelog =================================================================== --- glibc-package/branches/glibc-2.22/debian/changelog 2015-11-21 17:53:00 UTC (rev 6683) +++ glibc-package/branches/glibc-2.22/debian/changelog 2015-11-21 17:54:54 UTC (rev 6684) @@ -62,6 +62,9 @@ * debian/patches/hurd-i386/cvs-s_scalbn.diff: New patch, fixes s_scalbn.S build. * debian/patches/hurd-i386/tg-tls-threadvar.diff: Update. + * patches/hurd-i386/tg-posix_thread.diff: Update, to define + _POSIX_THREAD_KEYS_MAX, _POSIX_THREAD_DESTRUCTOR_ITERATIONS and + _POSIX_THREAD_THREADS_MAX. -- Adam Conrad <adcon...@0c3.net> Tue, 15 Sep 2015 17:57:41 -0600 Modified: glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-posix_thread.diff =================================================================== --- glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-posix_thread.diff 2015-11-21 17:53:00 UTC (rev 6683) +++ glibc-package/branches/glibc-2.22/debian/patches/hurd-i386/tg-posix_thread.diff 2015-11-21 17:54:54 UTC (rev 6684) @@ -7,8 +7,8 @@ --- sysdeps/mach/hurd/Makefile | 4 ++++ - sysdeps/mach/hurd/bits/posix_opt.h | 40 +++++++++++++++++++++++++------------- - 2 files changed, 31 insertions(+), 13 deletions(-) + sysdeps/mach/hurd/bits/local_lim.h | 9 ++++++++ + sysdeps/mach/hurd/bits/posix_opt.h | 42 +++++++++++++++++++++++++------------- diff --git a/sysdeps/mach/hurd/Makefile b/sysdeps/mach/hurd/Makefile index 68aedb6..4a6ee36 100644 @@ -25,6 +25,23 @@ # Override the generic Makeconfig values so we link against the RPC libs. link-libc-static := -Wl,--start-group \ $(patsubst %,$(common-objpfx)%.a,\ +diff --git a/sysdeps/mach/hurd/bits/local_lim.h b/sysdeps/mach/hurd/bits/local_lim.h +index f7cc86c..570b5ce 100644 +--- a/sysdeps/mach/hurd/bits/local_lim.h ++++ b/sysdeps/mach/hurd/bits/local_lim.h +@@ -32,3 +32,12 @@ + suitable, and `sysconf' will return a number at least as large. */ + + #define NGROUPS_MAX 256 ++ ++/* The number of data keys per process. */ ++#define _POSIX_THREAD_KEYS_MAX 128 ++ ++/* Controlling the iterations of destructors for thread-specific data. */ ++#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 ++ ++/* The number of threads per process. */ ++#define _POSIX_THREAD_THREADS_MAX 64 diff --git a/sysdeps/mach/hurd/bits/posix_opt.h b/sysdeps/mach/hurd/bits/posix_opt.h index 940e376..24ef55c 100644 --- a/sysdeps/mach/hurd/bits/posix_opt.h @@ -101,8 +118,9 @@ @@ -140,7 +154,7 @@ #define _POSIX_TIMERS 0 - /* The barrier functions are not available. */ +-/* The barrier functions are not available. */ -#define _POSIX_BARRIERS -1 ++/* We support barrier functions. */ +#define _POSIX_BARRIERS 200112L /* POSIX message queues could be available in future. */