summaryrefslogtreecommitdiff
path: root/sem_post.c
diff options
context:
space:
mode:
authorrpj <rpj>2004-05-17 01:38:02 +0000
committerrpj <rpj>2004-05-17 01:38:02 +0000
commit771465fed0cf50ee2dd790723245fc091699c324 (patch)
treed8c18d095a33fe7c4564bd90c5f313bb9e4057dd /sem_post.c
parent8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff)
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'sem_post.c')
-rw-r--r--sem_post.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sem_post.c b/sem_post.c
index a0ee019..3281643 100644
--- a/sem_post.c
+++ b/sem_post.c
@@ -55,7 +55,7 @@ sem_post (sem_t * sem)
*
* PARAMETERS
* sem
- * pointer to an instance of sem_t
+ * pointer to an instance of sem_t
*
* DESCRIPTION
* This function posts a wakeup to a semaphore. If there
@@ -63,11 +63,11 @@ sem_post (sem_t * sem)
* otherwise, the semaphore value is incremented by one.
*
* RESULTS
- * 0 successfully posted semaphore,
- * -1 failed, error in errno
+ * 0 successfully posted semaphore,
+ * -1 failed, error in errno
* ERRNO
- * EINVAL 'sem' is not a valid semaphore,
- * ENOSYS semaphores are not supported,
+ * EINVAL 'sem' is not a valid semaphore,
+ * ENOSYS semaphores are not supported,
*
* ------------------------------------------------------
*/
@@ -76,21 +76,21 @@ sem_post (sem_t * sem)
if (sem == NULL || *sem == NULL)
{
- result = EINVAL;
+ result = EINVAL;
}
#ifdef NEED_SEM
- else if (! ptw32_increase_semaphore (sem, 1))
+ else if (!ptw32_increase_semaphore (sem, 1))
#else /* NEED_SEM */
- else if (! ReleaseSemaphore ((*sem)->sem, 1, 0))
+ else if (!ReleaseSemaphore ((*sem)->sem, 1, 0))
#endif /* NEED_SEM */
{
- result = EINVAL;
+ result = EINVAL;
}
if (result != 0)