man-pages/man-pages-2.55-clone2.patch
Štěpán Kasal e12ffa774d - Add man-suid-bins.tar.bz2 and uuname.1 to document suid binaries
(submitted through bug #196352).
- Add man-pages-2.51-sched_setaffinity.patch, fixing the prototypes.
- Remove sccs-related man pages.
- Add man-pages-2.55-syscalls-2.6.9.patch, updating syscalls.2 to kernel
    version 2.6.9.
- Add man-pages-2.55-clone2.patch; s/clone2/__&/, clone2 is not exported.
- Add man-pages-2.55-signal.patch; SIGRTMIN is not constant.
2007-06-20 13:33:55 +00:00

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