summaryrefslogtreecommitdiffstats
path: root/share/man/man9
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-07-07 19:57:16 +0000
committerru <ru@FreeBSD.org>2004-07-07 19:57:16 +0000
commit9f45c1d92e08ca0df8a3120536812394d23d746a (patch)
tree5be3daa298d2ca42efb7a9f88eff43492e0bfd56 /share/man/man9
parenta61052b4e84c4a944ab87da5111af6a18d5a0c6e (diff)
downloadFreeBSD-src-9f45c1d92e08ca0df8a3120536812394d23d746a.zip
FreeBSD-src-9f45c1d92e08ca0df8a3120536812394d23d746a.tar.gz
mdoc(7) fixes.
Diffstat (limited to 'share/man/man9')
-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 1617e6e..0207900 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.
OpenPOWER on IntegriCloud