patch-1.3.34 linux/include/asm-alpha/unistd.h
Next file: linux/include/asm-i386/page.h
Previous file: linux/include/asm-alpha/page.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu Oct 12 18:23:55 1995
- Orig file:
v1.3.33/linux/include/asm-alpha/unistd.h
- Orig date:
Wed Oct 4 14:14:33 1995
diff -u --recursive --new-file v1.3.33/linux/include/asm-alpha/unistd.h linux/include/asm-alpha/unistd.h
@@ -177,16 +177,11 @@
#include <linux/string.h>
#include <linux/signal.h>
-extern unsigned long kernel_clone(unsigned long clone_flags, void * stack);
+extern long __kernel_thread(unsigned long, int (*)(void *), void *);
-static inline long clone(unsigned long clone_flags, void * stack)
+static inline long kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
{
- return kernel_clone(clone_flags, stack);
-}
-
-static inline long fork(void)
-{
- return kernel_clone(SIGCHLD, NULL);
+ return __kernel_thread(flags | CLONE_VM, fn, arg);
}
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