summaryrefslogtreecommitdiff
path: root/semaphore.c
diff options
context:
space:
mode:
authorrpj <rpj>1999-02-08 21:19:53 +0000
committerrpj <rpj>1999-02-08 21:19:53 +0000
commit9e253ed18b58158600fe1b4eed306c11523e7a53 (patch)
tree7583ba194efd2f8c8b035866d0f63a36d7bbb216 /semaphore.c
parent856068d292843ed7e8b3c49ecf55bd5f5c1b2368 (diff)
Fri Feb 5 13:42:30 1999 Ross Johnson <rpj@swan.canberra.edu.au>
* semaphore.c: Comment format changes. Wed Feb 3 13:04:44 1999 Ross Johnson <rpj@swan.canberra.edu.au> * cleanup.c: Rename _pthread_*_cleanup() to pthread_*_cleanup(). * pthread.def: Ditto. * pthread.h: Ditto. * pthread.def (pthread_cleanup_push): Remove from export list; the function is defined as a macro under all compilers. (pthread_cleanup_pop): Ditto. * pthread.h: Remove #if defined().
Diffstat (limited to 'semaphore.c')
-rw-r--r--semaphore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/semaphore.c b/semaphore.c
index e682201..f3bd5c9 100644
--- a/semaphore.c
+++ b/semaphore.c
@@ -68,7 +68,7 @@ _pthread_sem_init (_pthread_sem_t * sem, int pshared, unsigned int value)
* initial value of the semaphore is set to 'value'.
*
* RESULTS
- * 0 successfully created semaphore,
+ * 0 successfully created semaphore,
* EINVAL 'sem' is not a valid semaphore,
* ENOSPC a required resource has been exhausted,
* ENOSYS semaphores are not supported,
@@ -127,7 +127,7 @@ _pthread_sem_destroy (_pthread_sem_t * sem)
* This function destroys an unnamed semaphore.
*
* RESULTS
- * 0 successfully destroyed semaphore,
+ * 0 successfully destroyed semaphore,
* EINVAL 'sem' is not a valid semaphore,
* ENOSYS semaphores are not supported,
* EBUSY threads (or processes) are currently
@@ -163,7 +163,7 @@ _pthread_sem_trywait (_pthread_sem_t * sem)
* this function returns immediately with the error EAGAIN
*
* RESULTS
- * 0 successfully destroyed semaphore,
+ * 0 successfully decreased semaphore,
* EAGAIN the semaphore was already locked,
* EINVAL 'sem' is not a valid semaphore,
* ENOSYS semaphores are not supported,