aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/thr_exit.2
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2016-05-29 14:16:23 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2016-05-29 14:16:23 +0000
commit8e44e0ab19715e2635c0e8571b51af773c97f1b8 (patch)
tree2452c51df12fa72c5202d90d6362272fc2cdb62c /lib/libc/sys/thr_exit.2
parent44f87738345ccf7da818c80cefac28916928bebb (diff)
downloadsrc-8e44e0ab19715e2635c0e8571b51af773c97f1b8.tar.gz
src-8e44e0ab19715e2635c0e8571b51af773c97f1b8.zip
_umtx_op(2),thr_*(2): Various spelling, grammar and mdoc fixes.
Notes
Notes: svn path=/head/; revision=300957
Diffstat (limited to 'lib/libc/sys/thr_exit.2')
-rw-r--r--lib/libc/sys/thr_exit.214
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/libc/sys/thr_exit.2 b/lib/libc/sys/thr_exit.2
index 0804219c8e97..70a07f88ab6d 100644
--- a/lib/libc/sys/thr_exit.2
+++ b/lib/libc/sys/thr_exit.2
@@ -47,18 +47,20 @@ system call terminates the current kernel-scheduled thread.
.Pp
If the
.Fa state
-argument is not NULL, the location pointed to by the argument is
-updated with an arbitrary non-zero value, and
+argument is not
+.Dv NULL ,
+the location pointed to by the argument is
+updated with an arbitrary non-zero value, and an
.Xr _umtx_op 2
.Dv UMTX_OP_WAKE
operation is consequently performed on the location.
.Pp
-Attempts to terminate last thread in the process are silently ignored.
+Attempts to terminate the last thread in the process are silently ignored.
Use
.Xr _exit 2
syscall to terminate the process.
.Sh RETURN VALUES
-The function does not return any values.
+The function does not return a value.
A return from the function indicates that the calling thread was the
last one in the process.
.Sh SEE ALSO
@@ -72,9 +74,9 @@ last one in the process.
.Sh STANDARDS
The
.Fn thr_exit
-system call is non-standard and is used by the
+system call is non-standard and is used by
.Lb libthr
to implement
.St -p1003.1-2001
-.Xr pthread(3)
+.Xr pthread 3
functionality.