...and clean up a duplicate wrapping.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>
---

 include/posix/pthread.h        |   36 ++++++++++++++++++++++++++++++++++++
 include/posix/semaphore.h      |    6 ++++++
 src/skins/posix/posix.wrappers |    1 -
 3 files changed, 42 insertions(+), 1 deletions(-)

diff --git a/include/posix/pthread.h b/include/posix/pthread.h
index 10176ad..94788c3 100644
--- a/include/posix/pthread.h
+++ b/include/posix/pthread.h
@@ -477,6 +477,27 @@ int __real_pthread_setschedparam(pthread_t thread,
                                 const struct sched_param *param);
 int __real_pthread_yield(void);
 
+int __real_pthread_mutexattr_init(pthread_mutexattr_t *attr);
+
+int __real_pthread_mutexattr_destroy(pthread_mutexattr_t *attr);
+
+int __real_pthread_mutexattr_gettype(const pthread_mutexattr_t *attr,
+                                    int *type);
+
+int __real_pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type);
+
+int __real_pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr,
+                                        int *proto);
+
+int __real_pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr,
+                                        int proto);
+
+int __real_pthread_mutexattr_getpshared(const pthread_mutexattr_t *attr,
+                                       int *pshared);
+
+int __real_pthread_mutexattr_setpshared(pthread_mutexattr_t *attr,
+                                       int pshared);
+
 int __real_pthread_mutex_init(pthread_mutex_t *mutex,
                              const pthread_mutexattr_t *attr);
 
@@ -491,6 +512,21 @@ int __real_pthread_mutex_trylock(pthread_mutex_t *mutex);
 
 int __real_pthread_mutex_unlock(pthread_mutex_t *mutex);
 
+int __real_pthread_condattr_init(pthread_condattr_t *attr);
+
+int __real_pthread_condattr_destroy(pthread_condattr_t *attr);
+
+int __real_pthread_condattr_getclock(const pthread_condattr_t *attr,
+                                    clockid_t *clk_id);
+
+int __real_pthread_condattr_setclock(pthread_condattr_t *attr,
+                             clockid_t clk_id);
+
+int __real_pthread_condattr_getpshared(const pthread_condattr_t *attr,
+                                      int *pshared);
+
+int __real_pthread_condattr_setpshared(pthread_condattr_t *attr, int pshared);
+
 int __real_pthread_cond_init (pthread_cond_t *cond,
                              const pthread_condattr_t *attr);
 
diff --git a/include/posix/semaphore.h b/include/posix/semaphore.h
index 8532112..fc27d50 100644
--- a/include/posix/semaphore.h
+++ b/include/posix/semaphore.h
@@ -121,6 +121,12 @@ int __real_sem_post(sem_t *sem);
 
 int __real_sem_wait(sem_t *sem);
 
+int __real_sem_timedwait(sem_t *sem, const struct timespec *abs_timeout);
+
+int __real_sem_trywait(sem_t *sem);
+
+int __real_sem_getvalue(sem_t *sem, int *value);
+
 sem_t *__real_sem_open(const char *name, int oflags, ...);
 
 int __real_sem_close(sem_t *sem);
diff --git a/src/skins/posix/posix.wrappers b/src/skins/posix/posix.wrappers
index ddfe0d7..776c5d5 100644
--- a/src/skins/posix/posix.wrappers
+++ b/src/skins/posix/posix.wrappers
@@ -83,7 +83,6 @@
 --wrap timer_gettime
 --wrap ftruncate
 --wrap ftruncate64
---wrap close
 --wrap shm_open
 --wrap shm_unlink
 --wrap mmap

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to