mirror of https://github.com/mkerrisk/man-pages
prctl.2: Clarify that prctl can apply to threads
The current synopsis for prctl(2) misleadingly claims that prctl operates on a process. Rather, some (in fact, most) prctls operate on a thread. The wording probably dates back to the old days when Linux didn't really have threads at all. Reword as appropriate. Signed-off-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
3f1dc8e16a
commit
1e0d99b899
|
@ -53,7 +53,7 @@
|
||||||
.\"
|
.\"
|
||||||
.TH PRCTL 2 2020-04-11 "Linux" "Linux Programmer's Manual"
|
.TH PRCTL 2 2020-04-11 "Linux" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
prctl \- operations on a process
|
prctl \- operations on a process or thread
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.B #include <sys/prctl.h>
|
.B #include <sys/prctl.h>
|
||||||
|
@ -63,6 +63,10 @@ prctl \- operations on a process
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.BR prctl ()
|
.BR prctl ()
|
||||||
|
manipulates various aspects of the behavior
|
||||||
|
of the calling thread or process.
|
||||||
|
.PP
|
||||||
|
.BR prctl ()
|
||||||
is called with a first argument describing what to do
|
is called with a first argument describing what to do
|
||||||
(with values defined in \fI<linux/prctl.h>\fP), and further
|
(with values defined in \fI<linux/prctl.h>\fP), and further
|
||||||
arguments with a significance depending on the first one.
|
arguments with a significance depending on the first one.
|
||||||
|
|
Loading…
Reference in New Issue