Re: fork() in libc

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

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[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