clone.2: Note those architectures where the sys_clone argument order differs

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-04-16 07:12:50 +02:00
parent 81f10dad47
commit c787510f56
1 changed files with 10 additions and 1 deletions

View File

@ -804,7 +804,7 @@ arguments of the
.BR clone ()
wrapper function are omitted.
Furthermore, the argument order changes.
The raw system call interface is roughly:
The raw system call interface on x86 and many other architectures is roughly:
.in +4
.nf
@ -824,6 +824,15 @@ the stack.
In this case, for correct operation, the
.B CLONE_VM
option should not be specified.
For some architectures, the order of the arguments for
.BR sys_clone ()
differs from that shown above.
On the score, microblaze, ARM, ARM 64, PA-RISC, arc, Power PC, xtensa,
and MIPS architectures,
the order of the fourth and fifth arguments is reversed.
On the cris and s390 architectures,
the order of the first and second arguments is reversed.
.SS Linux 2.4 and earlier
In Linux 2.4 and earlier,
.BR clone ()