* One question about fork, vfork and clone
@ 2005-06-15 8:17 Roy Lee
2005-06-15 8:41 ` Arnd Bergmann
0 siblings, 1 reply; 2+ messages in thread
From: Roy Lee @ 2005-06-15 8:17 UTC (permalink / raw)
To: linux-kernel
Hi,
I'm a kernel newbie and are reading the source code about process
management of kernel-2.11.10
I found it has not only the sys_clone() but also three explict syscalls
in the arch/<ARCH>/kernel/process.c
sys_fork(), sys_vfork(), sys_clone()
is this means the library calls no more wrap the sys_clone() for the
three library call(fork,vfork,clone), but
call the corresponding syscall? or it never did that?
I've also downloaded the source code of glibc-2.3.5, but I'm not
sure where I should I start to figure out this.
Thank you for your reply.
Roy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: One question about fork, vfork and clone
2005-06-15 8:17 One question about fork, vfork and clone Roy Lee
@ 2005-06-15 8:41 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2005-06-15 8:41 UTC (permalink / raw)
To: Roy Lee; +Cc: linux-kernel
On Middeweken 15 Juni 2005 10:17, Roy Lee wrote:
> is this means the library calls no more wrap the sys_clone() for the
> three library call(fork,vfork,clone), but
> call the corresponding syscall? or it never did that?
The sys_vfork and sys_fork entry points are there so old libc versions
can still work. Some architectures that were added after sys_clone
was introduced wrongly copied this code, but new architectures that
get added should just provide sys_clone and have the other calls
implemented as wrappers in libc.
Arnd <><
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-15 8:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-15 8:17 One question about fork, vfork and clone Roy Lee
2005-06-15 8:41 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox