Where can I obtain a list of UNIX system calls?

后端 未结 8 1126
走了就别回头了
走了就别回头了 2020-12-31 15:37

Where are some lists of system calls on UNIX?

This wasn\'t my original question, but thanks anyway :)

8条回答
  •  说谎
    说谎 (楼主)
    2020-12-31 16:16

    man 2 syscalls

    Aside from that, you can look in /usr/include/sys/syscall.h (which on my system merely #includes /usr/include/bits/syscall.h). That's generated at libc build time from kernel syscall list.

    You can also grep the Linux kernel source for SYSCALL_DEFINE. (I'm not a BSD expert, but I think the equivalent in FreeBSD is SYSCALL_MODULE)

提交回复
热议问题