-   Linux - Software (
-   -   need fork() source code (

sachinchhatna 11-16-2012 06:13 AM

need fork() source code
Dear Sir/Madam,
I am mtech student of IITkgp, roll no - 11CS60R23. I want fork() source code.If possible please help me.
thanking you,
Sachin Agarwalla

druuna 11-16-2012 06:23 AM


Originally Posted by sachinchhatna (Post 4830683)
I want fork() source code.If possible please help me.

Download a linux kernel (, unpack it. fork.c resides in the /path/to/linux-x.y.z/kernel/ directory.

resetreset 11-19-2012 09:01 AM

WHY do you want the fork source code?

fakie_flip 11-19-2012 02:11 PM

From man man:


1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]
So either 2 or 3,

man 2 fork
man 3 fork

Both show:

#include <unistd.h>

[bull:~]$ locate unistd.h

I opened the first one, /usr/include/unisd.h

Then I searched for "fork", and several matching lines were found.

All times are GMT -5. The time now is 03:27 PM.