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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon Aug 25 11:47:48 2014 +0200

lib/cobalt: add semaphore API wrappers

---

 lib/cobalt/wrappers.c |   18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/lib/cobalt/wrappers.c b/lib/cobalt/wrappers.c
index 64dc003..47c67e1 100644
--- a/lib/cobalt/wrappers.c
+++ b/lib/cobalt/wrappers.c
@@ -123,6 +123,24 @@ int __real_sem_wait(sem_t * sem)
        return sem_wait(sem);
 }
 
+__weak
+int __real_sem_trywait(sem_t * sem)
+{
+       return sem_trywait(sem);
+}
+
+__weak
+int __real_sem_timedwait(sem_t * sem, const struct timespec *abs_timeout)
+{
+       return sem_timedwait(sem, abs_timeout);
+}
+
+__weak
+int __real_sem_getvalue(sem_t * sem, int *sval)
+{
+       return sem_getvalue(sem, sval);
+}
+
 /* rtdm */
 __weak
 int __real_open(const char *path, int oflag, ...)


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

Reply via email to