summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/bits/posix_opt.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-24 02:58:45 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-24 02:58:45 +0000
commit01f422c12f5799a44832eb26967a906edfc2ba55 (patch)
tree1e8bdcaab1f4da088cc1c490bf96c361a663e0c4 /libc/sysdeps/linux/common/bits/posix_opt.h
parentd2db9bdb4c79afcd4b09353346cd4eaf63b6cd2c (diff)
downloaduClibc-alpine-01f422c12f5799a44832eb26967a906edfc2ba55.tar.bz2
uClibc-alpine-01f422c12f5799a44832eb26967a906edfc2ba55.tar.xz
Well, this is everything for my NPTL implementation. The 'uClibc-nptl' branch is now the exact code that I have. I am going to re-run tests now to verify everything one more time. The next step after that is to merge from trunk with the latest stuff from Mike and Peter.
Diffstat (limited to 'libc/sysdeps/linux/common/bits/posix_opt.h')
-rw-r--r--libc/sysdeps/linux/common/bits/posix_opt.h30
1 files changed, 27 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/bits/posix_opt.h b/libc/sysdeps/linux/common/bits/posix_opt.h
index b2cae9d41..ce416c9dd 100644
--- a/libc/sysdeps/linux/common/bits/posix_opt.h
+++ b/libc/sysdeps/linux/common/bits/posix_opt.h
@@ -58,7 +58,7 @@
/* Setting of memory protections is supported. */
#ifdef __ARCH_USE_MMU__
-# define _POSIX_MEMORY_PROTECTION 1
+# define _POSIX_MEMORY_PROTECTION 200112L
#else
# undef _POSIX_MEMORY_PROTECTION
#endif
@@ -101,7 +101,7 @@
/* We have the reentrant functions described in POSIX. */
#ifdef __UCLIBC_HAS_THREADS__
-# define _POSIX_REENTRANT_FUNCTIONS 1
+# define _POSIX_REENTRANT_FUNCTIONS 1
# define _POSIX_THREAD_SAFE_FUNCTIONS 1
#else
# undef _POSIX_REENTRANT_FUNCTIONS
@@ -165,6 +165,14 @@
# define _POSIX_THREAD_CPUTIME 200912L
#endif
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+/* CPU-time clocks support needs to be checked at runtime. */
+#define _POSIX_CPUTIME 0
+
+/* Clock support in threads must be also checked at runtime. */
+#define _POSIX_THREAD_CPUTIME 0
+#endif
+
/* Reader/Writer locks are available. */
#define _POSIX_READER_WRITER_LOCKS 200912L
@@ -190,7 +198,23 @@
/* The barrier functions are available. */
#define _POSIX_BARRIERS 200912L
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+/* POSIX message queues are available. */
+# define _POSIX_MESSAGE_PASSING 200112L
+#else
/* POSIX message queues are not yet supported. */
-#undef _POSIX_MESSAGE_PASSING
+# undef _POSIX_MESSAGE_PASSING
+#endif
+
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
+/* Thread process-shared synchronization is supported. */
+#define _POSIX_THREAD_PROCESS_SHARED 200112L
+
+/* The monotonic clock might be available. */
+#define _POSIX_MONOTONIC_CLOCK 0
+
+/* The clock selection interfaces are available. */
+#define _POSIX_CLOCK_SELECTION 200112L
+#endif
#endif /* bits/posix_opt.h */