50 lines
1.8 KiB
Diff
50 lines
1.8 KiB
Diff
|
diff -urpN man-pages-2.55.kasal/man2/clone.2 man-pages-2.55/man2/clone.2
|
||
|
--- man-pages-2.55.kasal/man2/clone.2 2007-06-19 16:07:34.000000000 +0200
|
||
|
+++ man-pages-2.55/man2/clone.2 2007-06-19 16:06:10.000000000 +0200
|
||
|
@@ -34,7 +34,7 @@
|
||
|
.\"
|
||
|
.TH CLONE 2 2007-06-01 "Linux 2.6" "Linux Programmer's Manual"
|
||
|
.SH NAME
|
||
|
-clone \- create a child process
|
||
|
+clone, __clone2 \- create a child process
|
||
|
.SH SYNOPSIS
|
||
|
.nf
|
||
|
.B #include <sched.h>
|
||
|
@@ -43,6 +43,11 @@ clone \- create a child process
|
||
|
.BI " int " flags ", void *" "arg" ", ... "
|
||
|
.BI " /* pid_t *" pid ", struct user_desc *" tls \
|
||
|
", pid_t *" ctid " */ );"
|
||
|
+
|
||
|
+.BI "int __clone2(int (*" fn ")(void *), void *" child_stack_base ,
|
||
|
+.BI " size_t " stack_size ", int " flags ", void *" arg ", ..."
|
||
|
+.BI " /* pid_t *" pid ", struct user_desc *" tls \
|
||
|
+", pid_t *" ctid " */ );"
|
||
|
.fi
|
||
|
.SH DESCRIPTION
|
||
|
.BR clone ()
|
||
|
@@ -661,15 +666,14 @@ should not be called through vsyscall, b
|
||
|
On IA-64, a different system call is used:
|
||
|
.nf
|
||
|
|
||
|
-.BI "int clone2(int (*" "fn" ")(void *), "
|
||
|
-.BI " void *" child_stack_base ", size_t " stack_size ,
|
||
|
-.BI " int " flags ", void *" "arg" ", ... "
|
||
|
-.BI " /* pid_t *" pid ", struct user_desc *" tls \
|
||
|
+.BI "int __clone2(int (*" fn ")(void *), void *" child_stack_base ,
|
||
|
+.BI " size_t " stack_size ", int " flags ", void *" arg ", ..."
|
||
|
+.BI " /* pid_t *" pid ", struct user_desc *" tls \
|
||
|
", pid_t *" ctid " */ );"
|
||
|
.fi
|
||
|
.PP
|
||
|
The
|
||
|
-.BR clone2 ()
|
||
|
+.BR __clone2 ()
|
||
|
system call operates in the same way as
|
||
|
.BR clone (),
|
||
|
except that
|
||
|
diff -urpN man-pages-2.55.kasal/man2/__clone2.2 man-pages-2.55/man2/__clone2.2
|
||
|
--- man-pages-2.55.kasal/man2/__clone2.2 1970-01-01 01:00:00.000000000 +0100
|
||
|
+++ man-pages-2.55/man2/__clone2.2 2007-06-19 16:06:10.000000000 +0200
|
||
|
@@ -0,0 +1 @@
|
||
|
+.so man2/clone.2
|