aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/oldsemaphore.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-12-27 17:18:07 +0000
committerAndreas Jaeger <aj@suse.de>2000-12-27 17:18:07 +0000
commit27ee0a559513db0d0e650761b6f4268b39199c74 (patch)
tree9ce06a8596a1a5befd819bf1dcba82472d678a6b /linuxthreads/oldsemaphore.c
parenta375a533a2445079390907b962464a379d25f5d5 (diff)
downloadglibc-27ee0a559513db0d0e650761b6f4268b39199c74.zip
glibc-27ee0a559513db0d0e650761b6f4268b39199c74.tar.gz
glibc-27ee0a559513db0d0e650761b6f4268b39199c74.tar.bz2
Update.
* include/sys/wait.h: Add some prototypes. * Rules (dummy.c): Create also prototype to shut up GCC. 2000-12-27 Andreas Jaeger <aj@suse.de>
Diffstat (limited to 'linuxthreads/oldsemaphore.c')
-rw-r--r--linuxthreads/oldsemaphore.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/linuxthreads/oldsemaphore.c b/linuxthreads/oldsemaphore.c
index b9eb20f..82cd637 100644
--- a/linuxthreads/oldsemaphore.c
+++ b/linuxthreads/oldsemaphore.c
@@ -34,6 +34,14 @@ typedef struct {
int sem_spinlock;
} old_sem_t;
+extern int __old_sem_init (old_sem_t *__sem, int __pshared, unsigned int __value);
+extern int __old_sem_wait (old_sem_t *__sem);
+extern int __old_sem_trywait (old_sem_t *__sem);
+extern int __old_sem_post (old_sem_t *__sem);
+extern int __old_sem_getvalue (old_sem_t *__sem, int *__sval);
+extern int __old_sem_destroy (old_sem_t *__sem);
+
+
/* Maximum value the semaphore can have. */
#define SEM_VALUE_MAX ((int) ((~0u) >> 1))