diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-14 11:53:52 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:23 +0200 |
commit | d5332f2fdd01396faf8cd6f925cca3916024a96f (patch) | |
tree | 150dc7f045f9329570a7b5430fc84063b031660b /libc/sysdeps/linux/common/bits | |
parent | d1671548b968103f4df1b80659e60ae1fc5a67b3 (diff) |
local_lim.h: add NPTL version for alpha,ia64,powerpc,sparc, update common
avoid the possibility to use the wrong bits/local_lim.h
uClibc_local_lim.h fix it be correct for LT
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/bits')
-rw-r--r-- | libc/sysdeps/linux/common/bits/local_lim.h | 5 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/bits/uClibc_local_lim.h | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/bits/local_lim.h b/libc/sysdeps/linux/common/bits/local_lim.h index a263b5d28..8f0df4f92 100644 --- a/libc/sysdeps/linux/common/bits/local_lim.h +++ b/libc/sysdeps/linux/common/bits/local_lim.h @@ -71,6 +71,8 @@ /* The number of threads per process. */ #define _POSIX_THREAD_THREADS_MAX 64 +/* We have no predefined limit on the number of threads. */ +#undef PTHREAD_THREADS_MAX /* Maximum amount by which a process can descrease its asynchronous I/O priority level. */ @@ -93,3 +95,6 @@ /* Maximum message queue priority level. */ #define MQ_PRIO_MAX 32768 + +/* Maximum value the semaphore can have. */ +#define SEM_VALUE_MAX (2147483647) diff --git a/libc/sysdeps/linux/common/bits/uClibc_local_lim.h b/libc/sysdeps/linux/common/bits/uClibc_local_lim.h index abfc86de5..832051cd7 100644 --- a/libc/sysdeps/linux/common/bits/uClibc_local_lim.h +++ b/libc/sysdeps/linux/common/bits/uClibc_local_lim.h @@ -11,14 +11,19 @@ #define _BITS_UCLIBC_LOCAL_LIM_H 1 /* This file works correctly only if local_lim.h is the NPTL version */ -#if !defined PTHREAD_KEYS_MAX || defined TIMER_MAX +#if !defined PTHREAD_KEYS_MAX || defined TIMER_MAX || !defined SEM_VALUE_MAX # error local_lim.h was incorrectly updated, use the NPTL version from glibc #endif /* This should really be moved to thread specific directories */ #if defined __UCLIBC_HAS_THREADS__ && !defined __UCLIBC_HAS_THREADS_NATIVE__ +/* glibc uses 16384 */ # define PTHREAD_THREADS_MAX 1024 # define TIMER_MAX 256 +# undef SEM_VALUE_MAX +# undef PTHREAD_STACK_MIN +/* glibc uses at least 16364 */ +# define PTHREAD_STACK_MIN 1024 #endif #ifndef __UCLIBC_HAS_THREADS__ @@ -28,6 +33,7 @@ # undef PTHREAD_DESTRUCTOR_ITERATIONS # undef PTHREAD_STACK_MIN # undef DELAYTIMER_MAX +# undef SEM_VALUE_MAX #endif #endif /* bits/uClibc_local_lim.h */ |