From: Jan Kiszka <jan.kiszka@domain.hid>
To: Philippe Gerum <rpm@xenomai.org>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [PATCH] posix: Add missing __real prototypes
Date: Tue, 14 Apr 2009 23:59:29 +0200 [thread overview]
Message-ID: <49E50741.2070205@domain.hid> (raw)
[-- 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 --]
next reply other threads:[~2009-04-14 21:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-14 21:59 Jan Kiszka [this message]
2009-04-15 12:14 ` [Xenomai-core] [PATCH] posix: Add missing __real prototypes Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49E50741.2070205@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=rpm@xenomai.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.