Could you give me the source code for execve()
system call (exec family). I'm working with Linux.
execve() calls sys_execve() which calls do_execve(), which is where the action is: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=fs/exec.c#l1376
Youmight look at sys_execve at arch/x86/kernel/process.c which calls do_execve at fs/exec.c.
The execve()
entry point is here, in the Linux Cross-Reference page. You can follow the function references (do_execve()
is probably what you actually need) to see the source code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With