* [Xenomai-core] [PATCH] posix: Add missing __real prototypes
@ 2009-04-14 21:59 Jan Kiszka
2009-04-15 12:14 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2009-04-14 21:59 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 3073 bytes --]
...and clean up a duplicate wrapping.
Signed-off-by: Jan Kiszka <jan.kiszka@domain.hid>
---
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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-15 12:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-14 21:59 [Xenomai-core] [PATCH] posix: Add missing __real prototypes Jan Kiszka
2009-04-15 12:14 ` Gilles Chanteperdrix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.