Where can I obtain a list of UNIX system calls?

后端 未结 8 1125
走了就别回头了
走了就别回头了 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:23

    What operating system, exactly? Man section 2 documents the syscalls, however the complete set varies depending upon what flavor of UNIX you are on.

    POSIX.1 defines a standard set of operating system interfaces, however no operating system limits itself to just those. In general you have the BSD and SYSV flavors which have slightly different semantics. However, nowdays the supposed syscalls are actually quasi library functions.

    The only TRUE answer requires a specific installation and examination of the file

     /usr/include/syscall.h
    
    0 讨论(0)
  • 2020-12-31 16:23

    What you should really do is pick up a copy of "Advanced Programming in the Unix Environment" by W. Richard Stevens. This is the classic book on how to program Unix-like OS's. The book is old and MacOs/iPhoneOs are a different most traditional flavors of Unix, but the book is a great way to learn the basics and get a feel for how the API's are supposed to be used. Check it out at Amazon

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