summaryrefslogtreecommitdiff
path: root/share/man/man9/sema.9
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-07-07 19:57:16 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-07-07 19:57:16 +0000
commit2410103c1d01e5581dbe8c80c0fbbdb90c1fdadc (patch)
tree5be3daa298d2ca42efb7a9f88eff43492e0bfd56 /share/man/man9/sema.9
parent719f27a9f3363379f6a76390202e0a1d954f13e0 (diff)
Notes
Diffstat (limited to 'share/man/man9/sema.9')
-rw-r--r--share/man/man9/sema.97
1 files changed, 6 insertions, 1 deletions
diff --git a/share/man/man9/sema.9 b/share/man/man9/sema.9
index 1617e6e40aae..020790085381 100644
--- a/share/man/man9/sema.9
+++ b/share/man/man9/sema.9
@@ -100,7 +100,9 @@ specifies the minimum time in ticks to wait before returning with failure.
.Fn sema_value
is used to read the current value of the semaphore.
.Sh RETURN VALUES
+The
.Fn sema_value
+function
returns the current value of the semaphore.
.Pp
If decrementing the semaphore would result in its value being negative,
@@ -108,12 +110,15 @@ If decrementing the semaphore would result in its value being negative,
returns 0 to indicate failure.
Otherwise, a non-zero value is returned to indicate success.
.Pp
+The
.Fn sema_timedwait
+function
returns 0 if waiting on the semaphore succeeded; otherwise a
non-zero error code is returned.
.Sh ERRORS
+The
.Fn sema_timedwait
-will fail if:
+function will fail if:
.Bl -tag -width Er
.It Bq Er EWOULDBLOCK
Timeout expired.