title: Where is the source for the fork() call in Linux?
body: <p>I've been spending quite some time trying to find the source code for the <code>fork()</code> function. I know that most of work done by <code>fork()</code> is done by <code>do_fork()</code> and that can be found in <code>kernel/fork.c</code>. However what I want to see is the source code for the <code>fork()</code> function. </p>
  
  <p>Any ideas where it could be found? I've been going through GCC and Linux source code but still haven't managed to find it.</p>
  
  <p>Edit: I'm trying to find the exact implementation my system is using. As mentioned in the comment and in this <a href="https://unix.stackexchange.com/questions/87551/which-file-in-kernel-specifies-fork-vfork-to-use-sys-clone-system-call">Link</a> Its apparently in some wrapper in glibc. Any idea where in glibc I can find the wrapper. I've searched throughly but couldn't find its definition. </p>