summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2004-02-03 10:15:16 +0000
committerdeischen <deischen@FreeBSD.org>2004-02-03 10:15:16 +0000
commitca81ad4e6b755431ebfad40746b2b53d3bb527d3 (patch)
treec7f687b00bd0c54c13f63b28d078af993cabd646
parent9ce4a934e1f176a9f9ae0443b52d5f416adb024e (diff)
downloadFreeBSD-src-ca81ad4e6b755431ebfad40746b2b53d3bb527d3.zip
FreeBSD-src-ca81ad4e6b755431ebfad40746b2b53d3bb527d3.tar.gz
Add prototype for sem_timedwait().
Reviewed by: standards (Stefan Farfeleder)
-rw-r--r--sys/posix4/semaphore.h1
-rw-r--r--sys/sys/semaphore.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/posix4/semaphore.h b/sys/posix4/semaphore.h
index b717b98..f451d5f 100644
--- a/sys/posix4/semaphore.h
+++ b/sys/posix4/semaphore.h
@@ -54,6 +54,7 @@ int sem_getvalue(sem_t * __restrict, int * __restrict);
int sem_init(sem_t *, int, unsigned int);
sem_t *sem_open(const char *, int, ...);
int sem_post(sem_t *);
+int sem_timedwait(sem_t * __restrict, const struct timespec * __restrict);
int sem_trywait(sem_t *);
int sem_unlink(const char *);
int sem_wait(sem_t *);
diff --git a/sys/sys/semaphore.h b/sys/sys/semaphore.h
index b717b98..f451d5f 100644
--- a/sys/sys/semaphore.h
+++ b/sys/sys/semaphore.h
@@ -54,6 +54,7 @@ int sem_getvalue(sem_t * __restrict, int * __restrict);
int sem_init(sem_t *, int, unsigned int);
sem_t *sem_open(const char *, int, ...);
int sem_post(sem_t *);
+int sem_timedwait(sem_t * __restrict, const struct timespec * __restrict);
int sem_trywait(sem_t *);
int sem_unlink(const char *);
int sem_wait(sem_t *);
OpenPOWER on IntegriCloud