aboutsummaryrefslogtreecommitdiffstats
path: root/libc/include/sys/limits.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-07-29 16:51:45 -0700
committerElliott Hughes <enh@google.com>2013-07-29 17:09:36 -0700
commitc03e1e74390c1b8a30341399cd85cc869d0842b0 (patch)
treef4f7c54da4d89aa1019822c5be7aa61d97efcd43 /libc/include/sys/limits.h
parent9a73d08f4c334c00fe06d583d37e038ebe063eba (diff)
downloadandroid_bionic-c03e1e74390c1b8a30341399cd85cc869d0842b0.tar.gz
android_bionic-c03e1e74390c1b8a30341399cd85cc869d0842b0.tar.bz2
android_bionic-c03e1e74390c1b8a30341399cd85cc869d0842b0.zip
Define PTHREAD_KEYS_MAX and _POSIX_THREAD_KEYS_MAX in a POSIX-compliant way.
Also make sysconf use PTHREAD_STACK_MIN rather than redefining its own, different, constant. Bug: 9997352 Change-Id: I9a8e7d2b18e691439abfb45533e82c36eee9e81d
Diffstat (limited to 'libc/include/sys/limits.h')
-rw-r--r--libc/include/sys/limits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/include/sys/limits.h b/libc/include/sys/limits.h
index 2d0d11ebc..f1080fe9e 100644
--- a/libc/include/sys/limits.h
+++ b/libc/include/sys/limits.h
@@ -176,9 +176,9 @@
#define _POSIX_JOB_CONTROL 1 /* job control is a Linux feature */
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 /* the minimum mandated by POSIX */
-#define PTHREAD_DESTRUCTOR_ITERATIONS 4
+#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS
#define _POSIX_THREAD_KEYS_MAX 128 /* the minimum mandated by POSIX */
-/* TODO: our PTHREAD_KEYS_MAX is currently too low to be posix compliant! */
+#define PTHREAD_KEYS_MAX _POSIX_THREAD_KEYS_MAX
#define _POSIX_THREAD_THREADS_MAX 64 /* the minimum mandated by POSIX */
#define PTHREAD_THREADS_MAX /* bionic has no specific limit */