Re: fork() source code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, all.
I'm replying myself.
Now I suppose that this question is no longer about linux kernel but C library.
So I should ask in the other proper ML, shouldn't I? 
Thanks for your consideration.
I'll be counting on you when I'm in trouble.

Regards,
Shinpei Kato

On Fri, 12 Dec 2003 11:12:37 +0900
Shinpei Kato <shinny@j02.itscom.net> wrote:

> > Thank you for your replying.
> 
> As I said on the mail I sent just before, I want to know how fork() sets
> the parameter of sys_fork().
> Is that easy call?
> 
> Regards,
> Shinpei Kato
> 
> 
> On Thu, 11 Dec 2003 20:53:11 +0100
> "Anup Patil" <patil_a@etech.haw-hamburg.de> wrote:
> 
> > > 
> >  ----- Original Message -----
> >  From: <shinny@j02.itscom.net>
> >  To: <kernelnewbies@nl.linux.org>
> >  Sent: Thursday, December 11, 2003 11:43 AM
> >  Subject: fork() source code
> > 
> > 
> >  > Hi, all
> >  >
> >  > This question may be really basic though,
> >  > I'm studying how the linux creates a process and schedules it on
> >  > 2.6 at the moment.
> >  > The core function to create a process seems to be do_fork() in
> >  > kernel/fork.c.
> >  > And do_fork() is called from sys_fork() or sys_clone().
> >  > But we usually use fork() not sys_fork(), don't we?
> >  > So I downloaded the latest libc(glibc-2.3.2) source and looked for
> >  >fork().
> >  > However there are several functions and files that are likely to
> > be
> >  >fork().
> >  > Which fork() in which file is the real we call from our program?
> >  >
> >  > Regards,
> >  > Shinpei Kato
> >  > --
> > 
> >  That is about glibc and has nothing to do with linux kernel.
> >  glibc provides wrappers for sys_fork() which is then called from
> > user
> >  space programs.
> > 
> > 
> > --
> > Kernelnewbies: Help each other learn about the Linux kernel.
> > Archive:       http://mail.nl.linux.org/kernelnewbies/
> > FAQ:           http://kernelnewbies.org/faq/
> > 
> 
> 
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux