source code for execve() and fork() [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
开发者_运维技巧 Improve this questionI would like to look at the source code for execve() and fork().Could you please tell me any websites that gives the source code and also some explaination for it.
exec()
and fork()
both date to the early ages of UNIX, so one good place to see the code along with commentary on it is Lions' Book (a commentary on the source code for UNIX version 6).
In v6, fork()
and exec()
are in ken/sys1.c
.
Source can be found here: http://www.google.com/codesearch/p?hl=en#KMCRKdMbI4g/kernel/fork.c&q=fork&sa=N&cd=1&ct=rc
精彩评论