mirror of https://github.com/mkerrisk/man-pages
clone.2: Rewrite crufty text about number of args in older version of clone()
Some bit rot had crept in regarding the discussion of the number of arguments in older versions of this syscall. Simplify the text to just say that Linux 2.4 and earlier didn't have ptid, tls, and ctid arguments. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533868 Reported-by: Shachar Shemesh <shachar@debian.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
d3dbc9b11a
commit
577f9b624b
19
man2/clone.2
19
man2/clone.2
|
@ -780,18 +780,13 @@ In this case, for correct operation, the
|
|||
.B CLONE_VM
|
||||
option should not be specified.
|
||||
|
||||
Since Linux 2.5.49 the system call has five arguments.
|
||||
The two new arguments are
|
||||
.I ptid
|
||||
which points to the location (in parent and child memory) where
|
||||
the child thread ID will be written in case
|
||||
.B CLONE_PARENT_SETTID
|
||||
was specified, and
|
||||
.I ctid
|
||||
which points to the location (in child memory) where the child thread ID
|
||||
will be written in case
|
||||
.B CLONE_CHILD_SETTID
|
||||
was specified.
|
||||
In Linux 2.4 and earlier,
|
||||
.BR clone ()
|
||||
does not take arguments
|
||||
.IR ptid ,
|
||||
.IR tls ,
|
||||
and
|
||||
.IT ctid .
|
||||
.SH "RETURN VALUE"
|
||||
.\" gettid(2) returns current->pid;
|
||||
.\" getpid(2) returns current->tgid;
|
||||
|
|
Loading…
Reference in New Issue