Where do I find the source code for execve()?

前端 未结 4 1221
醉话见心
醉话见心 2021-01-03 01:46

Could you give me the source code for execve() system call (exec family). I\'m working with Linux.

相关标签:
4条回答
  • 2021-01-03 02:16

    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

    0 讨论(0)
  • 2021-01-03 02:19

    Youmight look at sys_execve at arch/x86/kernel/process.c which calls do_execve at fs/exec.c.

    0 讨论(0)
  • 2021-01-03 02:22

    You can get the linux source code at the kernel page To browse inline, use the git browsing facility

    0 讨论(0)
  • 2021-01-03 02:30

    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.

    0 讨论(0)
提交回复
热议问题