patch-1.3.26 linux/include/asm-alpha/unistd.h

Next file: linux/include/asm-i386/checksum.h
Previous file: linux/include/asm-alpha/ptrace.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.25/linux/include/asm-alpha/unistd.h linux/include/asm-alpha/unistd.h
@@ -125,6 +125,7 @@
 #define __NR_get_kernel_syms	309
 #define __NR_syslog		310
 #define __NR_reboot		311
+#define __NR_clone		312
 
 
 #ifdef __LIBRARY__
@@ -172,11 +173,18 @@
 #ifdef __KERNEL_SYSCALLS__
 
 #include <linux/string.h>
+#include <linux/signal.h>
 
-extern unsigned long kernel_fork(void);
-static inline unsigned long fork(void)
+extern unsigned long kernel_clone(unsigned long clone_flags, void * stack);
+
+static inline long clone(unsigned long clone_flags, void * stack)
+{
+	return kernel_clone(clone_flags, stack);
+}
+
+static inline long fork(void)
 {
-	return kernel_fork();
+	return kernel_clone(SIGCHLD, NULL);
 }
 
 extern void sys_idle(void);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this