diff options
Diffstat (limited to 'lib/libpthread/man/sem_getvalue.3')
-rw-r--r-- | lib/libpthread/man/sem_getvalue.3 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libpthread/man/sem_getvalue.3 b/lib/libpthread/man/sem_getvalue.3 index 1153552..f03bfd3 100644 --- a/lib/libpthread/man/sem_getvalue.3 +++ b/lib/libpthread/man/sem_getvalue.3 @@ -37,7 +37,7 @@ .Sh SYNOPSIS .In semaphore.h .Ft int -.Fn sem_getvalue "sem_t *sem" "int *sval" +.Fn sem_getvalue "sem_t * restrict sem" "int * restrict sval" .Sh DESCRIPTION The .Fn sem_getvalue @@ -51,8 +51,9 @@ is actually run. .Sh RETURN VALUES .Rv -std sem_getvalue .Sh ERRORS +The .Fn sem_getvalue -will fail if: +function will fail if: .Bl -tag -width Er .It Bq Er EINVAL .Fa sem @@ -61,10 +62,12 @@ points to an invalid semaphore. .Sh SEE ALSO .Xr sem_post 3 , .Xr sem_trywait 3 , -.Xr sem_wait 3 +.Xr sem_wait 3 , +.Xr sem 4 .Sh STANDARDS +The .Fn sem_getvalue -conforms to +function conforms to .St -p1003.1-96 . .Pp The value of the semaphore is never negative, even if there are threads blocked |