anyone can send implementation of *fork()* library call in the library i want to know how it is get connected to the system call. ** P VENKATESWARLU M.Tech (CSE) II year NIT Calicut ,Kerala* ** *+91-9995115752
On Tue, Jun 14, 2011 at 19:20, Venkateswarlu P <p.venkatesh551@gmail.com> wrote:
anyone can send implementation of fork() library call in the library
i want to know how it is get connected to the system call.
create a C program that callls fork(), compile and the ltrace it... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
On Jun 14, 2011, at 1:36 PM, Mulyadi Santosa wrote:
On Tue, Jun 14, 2011 at 19:20, Venkateswarlu P <p.venkatesh551@gmail.com> wrote:
anyone can send implementation of fork() library call in the library
i want to know how it is get connected to the system call.
create a C program that callls fork(), compile and the ltrace it...
Or take a look at glibc's implementation. I'm sure you'd be able to find it by downloading glibc and grep'ing it or by searching the web for an online repository with the code. --- João Eduardo Luís gpg key: 477C26E5 from pool.keyserver.eu
ftp://ftp.kernel.org/pub/linux/libs/glibc/ 2011/6/14 Venkateswarlu P <p.venkatesh551@gmail.com>
anyone can send implementation of *fork()* library call in the library
i want to know how it is get connected to the system call.
** P VENKATESWARLU M.Tech (CSE) II year NIT Calicut ,Kerala* ** *+91-9995115752
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
In glibc unistd.h, fork is declared as an extern function. And for definition look at sysdeps/unix/i386/fork.S, which is a syscall transfer, when fork is called. Thanks & Regards AshokKumar.G 100 Things can not be taken back. 001. A lost opportunity. 010. A spoken word. 011. A sped arrow. 100. Time spent. On Tue, Jun 14, 2011 at 18:56, cihan kömeçoğlu <cihankomecoglu@gmail.com>wrote:
ftp://ftp.kernel.org/pub/linux/libs/glibc/
2011/6/14 Venkateswarlu P <p.venkatesh551@gmail.com>
anyone can send implementation of *fork()* library call in the library
i want to know how it is get connected to the system call.
** P VENKATESWARLU M.Tech (CSE) II year NIT Calicut ,Kerala* ** *+91-9995115752
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Tue, Jun 14, 2011 at 05:50:53PM +0530, Venkateswarlu P wrote:
anyone can send implementation of *fork()* library call in the library
I don't know exactly where it is, but you could look at http://repo.or.cz/w/glibc.git.
i want to know how it is get connected to the system call.
From the manpage:
Since version 2.3.3, rather than invoking the kernel's fork() system call, the glibc fork() wrapper that is provided as part of the NPTL threading implementation invokes clone(2) with flags that provide the same effect as the traditional system call. The glibc wrapper invokes any fork handlers that have been established using pthread_atfork(3). Thanks, Jonathan Neuschäfer
participants (6)
-
AshokKumar G -
cihan kömeçoğlu -
Jonathan Neuschäfer -
João Eduardo Luís -
Mulyadi Santosa -
Venkateswarlu P