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.
You can get the linux source code at the kernel page To browse inline, use the git browsing facility
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.