summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-24 03:17:42 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-24 03:17:42 +0000
commit27d10e743eadc0718e083faf8ec48b01eda94add (patch)
treebbe7686857c134d2aede0d125ce9336c4d77fbb6
parent01e09cf1c69fec4f931a74139f06193f2476f566 (diff)
downloaduClibc-alpine-27d10e743eadc0718e083faf8ec48b01eda94add.tar.bz2
uClibc-alpine-27d10e743eadc0718e083faf8ec48b01eda94add.tar.xz
Copy from trunk.
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_local_lim.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bits/uClibc_local_lim.h b/libc/sysdeps/linux/common/bits/uClibc_local_lim.h
new file mode 100644
index 000000000..34575cb50
--- /dev/null
+++ b/libc/sysdeps/linux/common/bits/uClibc_local_lim.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+/*
+ * Never include this file directly; use <unistd.h> instead.
+ */
+
+#ifndef _BITS_UCLIBC_LOCAL_LIM_H
+#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
+# error local_lim.h was incorrectly updated, use the NPTL version from glibc
+#endif
+
+#if defined __UCLIBC_HAS_THREADS__
+# define PTHREAD_THREADS_MAX 16384
+# define TIMER_MAX 256
+#endif
+
+#ifndef __UCLIBC_HAS_THREADS__
+# undef _POSIX_THREAD_KEYS_MAX
+# undef PTHREAD_KEYS_MAX
+# undef _POSIX_THREAD_DESTRUCTOR_ITERATIONS
+# undef PTHREAD_DESTRUCTOR_ITERATIONS
+# undef PTHREAD_STACK_MIN
+# undef DELAYTIMER_MAX
+#endif
+
+#endif /* bits/uClibc_local_lim.h */