On Thu, Nov 14, 2002 at 11:24:53AM +0530, Saji Kumar VR wrote: > I want to use clone() system call with CLONE_PARENT & CLONE_THREAD flags. > But when I compile, I get error saying, these flags are not defined. > > These flags are introdused from 2.4 kernel. I have redhat 7.1. But the > /usr/include/bits/sched.h does not define these flags. > > Can anyone please tell me which version of libc I have to install > inorder to use these flags. Please tell me from where to get this & > how to install. > > Also, what is use of CLONE_THREAD? I read that it creates child > with same thread group id. where can I find more info about this > linux thread group? It's a long time since /usr/include/linux became unrelated to the kernel. Have a look at what package files in /usr/include/linux actually come from (I expect something like kernel-headers-*) and make sure, it's the appropriate version. (There can be kernel-headers-2.2 and kernel-headers-2.4, so it does not upgrade automatically) ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/