summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/mutex.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:30:50 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:30:50 +0000
commitdfb199421b130157ef9154acb932d80b35fa2894 (patch)
treebf16be20c6ffb3cb09b889c036cc7085e3146ed3 /libpthread/linuxthreads.old/mutex.c
parent1466eb283c8eee992835f66433c43fd4d31e92bc (diff)
prototypes for threads too
Diffstat (limited to 'libpthread/linuxthreads.old/mutex.c')
-rw-r--r--libpthread/linuxthreads.old/mutex.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/mutex.c b/libpthread/linuxthreads.old/mutex.c
index 8d26b8a87..890841452 100644
--- a/libpthread/linuxthreads.old/mutex.c
+++ b/libpthread/linuxthreads.old/mutex.c
@@ -225,6 +225,7 @@ strong_alias(__pthread_mutexattr_settype,pthread_mutexattr_settype)
strong_alias (__pthread_mutexattr_settype, __pthread_mutexattr_setkind_np)
weak_alias (__pthread_mutexattr_setkind_np, pthread_mutexattr_setkind_np)
+int __pthread_mutexattr_gettype(const pthread_mutexattr_t *attr, int *kind) attribute_hidden;
int __pthread_mutexattr_gettype(const pthread_mutexattr_t *attr, int *kind)
{
*kind = attr->__mutexkind;
@@ -235,6 +236,8 @@ strong_alias (__pthread_mutexattr_gettype, __pthread_mutexattr_getkind_np)
weak_alias (__pthread_mutexattr_getkind_np, pthread_mutexattr_getkind_np)
int __pthread_mutexattr_getpshared (const pthread_mutexattr_t *attr attribute_unused,
+ int *pshared) attribute_hidden;
+int __pthread_mutexattr_getpshared (const pthread_mutexattr_t *attr attribute_unused,
int *pshared)
{
*pshared = PTHREAD_PROCESS_PRIVATE;
@@ -242,6 +245,7 @@ int __pthread_mutexattr_getpshared (const pthread_mutexattr_t *attr attribute_un
}
weak_alias (__pthread_mutexattr_getpshared, pthread_mutexattr_getpshared)
+int __pthread_mutexattr_setpshared (pthread_mutexattr_t *attr attribute_unused, int pshared) attribute_hidden;
int __pthread_mutexattr_setpshared (pthread_mutexattr_t *attr attribute_unused, int pshared)
{
if (pshared != PTHREAD_PROCESS_PRIVATE && pshared != PTHREAD_PROCESS_SHARED)
@@ -334,16 +338,19 @@ strong_alias (__pthread_once, pthread_once)
* and reset them back to NEVER.
*/
+void __pthread_once_fork_prepare(void);
void __pthread_once_fork_prepare(void)
{
__pthread_mutex_lock(&once_masterlock);
}
+void __pthread_once_fork_parent(void);
void __pthread_once_fork_parent(void)
{
__pthread_mutex_unlock(&once_masterlock);
}
+void __pthread_once_fork_child(void);
void __pthread_once_fork_child(void)
{
__pthread_mutex_init(&once_masterlock, NULL);