It's actually called CLONE_VM (the proper invocation would be
clone(0, SIGCHLD|CLONE_VM)) and is defined in <linux/sched.h>, which,
among other places, in included from <pthread.h>.
WARNING: Last I checked, clone() isn't a C library function, and you
MUST NOT invoke it from C code using syscall() unless you have the
CLONE_VM flag, since you will end up with multiple threads
threading(!) on the same stack. An assembly wrapper is *mandatory*.
You're much better off forgetting about clone() and just use the POSIX
thread API. clone() isn't meant to be an interface, but a mechanism
for libraries like LinuxThreads to implement a reasonable API on top
of.
-hpa
-- Always looking for a few good BOsFH. ** Linux - the OS of global cooperation I am Baha'i -- ask me about it or see http://www.bahai.org/