Module: xenomai-3
Branch: next
Commit: d9d28499e549b472f027475e42bdd53cb4afd00d
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=d9d28499e549b472f027475e42bdd53cb4afd00d

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Mar 20 17:20:58 2016 +0100

boilerplate/libc: provide placeholders for prioceiling ops

---

 configure.ac               |    2 ++
 include/boilerplate/libc.h |   19 +++++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/configure.ac b/configure.ac
index fdd310e..63a0bd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -511,6 +511,8 @@ AC_CHECK_FUNCS([pthread_mutexattr_setprotocol       \
                pthread_mutexattr_getprioceiling \
                pthread_mutexattr_setprioceiling \
                pthread_mutexattr_setrobust_np  \
+               pthread_mutex_getprioceiling    \
+               pthread_mutex_setprioceiling    \
                pthread_condattr_getclock       \
                pthread_condattr_setclock       \
                pthread_spin_lock fork          \
diff --git a/include/boilerplate/libc.h b/include/boilerplate/libc.h
index 3a5af8c..2f356a9 100644
--- a/include/boilerplate/libc.h
+++ b/include/boilerplate/libc.h
@@ -127,6 +127,25 @@ int pthread_mutexattr_getprioceiling(const 
pthread_mutexattr_t *
 }
 #endif /* !HAVE_PTHREAD_MUTEXATTR_GETPRIOCEILING */
 
+#ifndef HAVE_PTHREAD_MUTEX_SETPRIOCEILING
+static inline
+int pthread_mutex_setprioceiling(pthread_mutex_t *__restrict attr,
+                                int prioceiling,
+                                int *__restrict old_ceiling)
+{
+       return ENOSYS;
+}
+#endif /* !HAVE_PTHREAD_MUTEXATTR_SETPRIOCEILING */
+
+#ifndef HAVE_PTHREAD_MUTEX_GETPRIOCEILING
+static inline
+int pthread_mutex_getprioceiling(pthread_mutex_t *__restrict attr,
+                                int *__restrict prioceiling)
+{
+       return ENOSYS;
+}
+#endif /* !HAVE_PTHREAD_MUTEXATTR_GETPRIOCEILING */
+
 #ifndef HAVE_PTHREAD_ATTR_SETAFFINITY_NP
 #include <sched.h>
 static inline


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to