This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RTEMS Adding UNIX98 mutex attr type support
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: "newlib at sources dot redhat dot com" <newlib at sources dot redhat dot com>, Till Straumann <strauman at slac dot stanford dot edu>
- Date: Mon, 6 Jul 2009 09:52:09 -0500
- Subject: RTEMS Adding UNIX98 mutex attr type support
Hi,
Simple patch to enable the UNIX98 mutex attribute
type for RTEMS. Everything else just ripples from there
and the implementation is in RTEMS.
209-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/include/sys/features.h: Enable UNIX98 mutex attributes
for RTEMS.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
Index: libc/include/sys/features.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/features.h,v
retrieving revision 1.18
diff -u -r1.18 features.h
--- libc/include/sys/features.h 17 Jun 2009 16:47:02 -0000 1.18
+++ libc/include/sys/features.h 6 Jul 2009 14:48:20 -0000
@@ -73,6 +73,9 @@
#define _POSIX_INTERRUPT_CONTROL 1
#define _POSIX_ADVISORY_INFO 1
+/* UNIX98 added some new pthread mutex attributes */
+#define _UNIX98_THREAD_MUTEX_ATTRIBUTES 1
+
#endif
/* XMK loosely adheres to POSIX -- 1003.1 */