patch-pre2.0.8 linux/include/asm-ppc/unistd.h
Next file: linux/include/asm-ppc/user.h
Previous file: linux/include/asm-ppc/types.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Mon May 27 12:00:59 1996
- Orig file:
pre2.0.7/linux/include/asm-ppc/unistd.h
- Orig date:
Sat Nov 25 19:49:07 1995
diff -u --recursive --new-file pre2.0.7/linux/include/asm-ppc/unistd.h linux/include/asm-ppc/unistd.h
@@ -257,6 +257,14 @@
* won't be any messing with the stack from main(), but we define
* some others too.
*/
+
+extern long __kernel_thread(unsigned long, int (*)(void *), void *);
+
+static inline long kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
+{
+ return __kernel_thread(flags | CLONE_VM, fn, arg);
+}
+
/*
some of these had problems getting the right arguments (namely sys_clone())
when they were inline.
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