summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old/oldsemaphore.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/oldsemaphore.c
parent1466eb283c8eee992835f66433c43fd4d31e92bc (diff)
prototypes for threads too
Diffstat (limited to 'libpthread/linuxthreads.old/oldsemaphore.c')
-rw-r--r--libpthread/linuxthreads.old/oldsemaphore.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/oldsemaphore.c b/libpthread/linuxthreads.old/oldsemaphore.c
index 6817e8e7c..6e91dc3c7 100644
--- a/libpthread/linuxthreads.old/oldsemaphore.c
+++ b/libpthread/linuxthreads.old/oldsemaphore.c
@@ -53,6 +53,7 @@ static inline int sem_compare_and_swap(old_sem_t *sem, long oldval, long newval)
static void sem_restart_list(pthread_descr waiting);
+int __old_sem_init(old_sem_t *sem, int pshared, unsigned int value);
int __old_sem_init(old_sem_t *sem, int pshared, unsigned int value)
{
if (value > SEM_VALUE_MAX) {
@@ -77,6 +78,7 @@ static int old_sem_extricate_func(void *obj attribute_unused, pthread_descr th a
return 1;
}
+int __old_sem_wait(old_sem_t * sem);
int __old_sem_wait(old_sem_t * sem)
{
long oldstatus, newstatus;
@@ -139,6 +141,7 @@ int __old_sem_wait(old_sem_t * sem)
}
}
+int __old_sem_trywait(old_sem_t * sem);
int __old_sem_trywait(old_sem_t * sem)
{
long oldstatus, newstatus;
@@ -155,6 +158,7 @@ int __old_sem_trywait(old_sem_t * sem)
return 0;
}
+int __old_sem_post(old_sem_t * sem);
int __old_sem_post(old_sem_t * sem)
{
long oldstatus, newstatus;
@@ -178,6 +182,7 @@ int __old_sem_post(old_sem_t * sem)
return 0;
}
+int __old_sem_getvalue(old_sem_t * sem, int * sval);
int __old_sem_getvalue(old_sem_t * sem, int * sval)
{
long status = sem->sem_status;
@@ -188,6 +193,7 @@ int __old_sem_getvalue(old_sem_t * sem, int * sval)
return 0;
}
+int __old_sem_destroy(old_sem_t * sem);
int __old_sem_destroy(old_sem_t * sem)
{
if ((sem->sem_status & 1) == 0) {