Message ID | 1589301419-24459-2-git-send-email-Dave.Martin@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | prctl.2 man page updates for Linux 5.6 | expand |
On 5/12/20 6:36 PM, Dave Martin wrote: > 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. Thanks, Dave. Patch applied. Cheers, Michael > Signed-off-by: Dave Martin <Dave.Martin@arm.com> > --- > man2/prctl.2 | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/man2/prctl.2 b/man2/prctl.2 > index 7a5af76..7932ada 100644 > --- a/man2/prctl.2 > +++ b/man2/prctl.2 > @@ -53,7 +53,7 @@ > .\" > .TH PRCTL 2 2020-04-11 "Linux" "Linux Programmer's Manual" > .SH NAME > -prctl \- operations on a process > +prctl \- operations on a process or thread > .SH SYNOPSIS > .nf > .B #include <sys/prctl.h> > @@ -63,6 +63,10 @@ prctl \- operations on a process > .fi > .SH DESCRIPTION > .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 > (with values defined in \fI<linux/prctl.h>\fP), and further > arguments with a significance depending on the first one. >
diff --git a/man2/prctl.2 b/man2/prctl.2 index 7a5af76..7932ada 100644 --- a/man2/prctl.2 +++ b/man2/prctl.2 @@ -53,7 +53,7 @@ .\" .TH PRCTL 2 2020-04-11 "Linux" "Linux Programmer's Manual" .SH NAME -prctl \- operations on a process +prctl \- operations on a process or thread .SH SYNOPSIS .nf .B #include <sys/prctl.h> @@ -63,6 +63,10 @@ prctl \- operations on a process .fi .SH DESCRIPTION .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 (with values defined in \fI<linux/prctl.h>\fP), and further arguments with a significance depending on the first one.
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> --- man2/prctl.2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)