Search code examples
linuxposixsystem-calls

Is syscall(2) part of a standard?


syscall(2) does not seem to be part of POSIX or C standard library. Is it part of any standard?

Are all libc implementations implementing syscall(2)? If it is not part of any standard such as POSIX, is it just a convention that all libc implementations provided syscall(2)?


Solution

  • Searching POSIX online yields no results for syscall.

    Grepping the offline versions doesn't either.

    POSIX doesn't really concerns itself with syscalls vs. pure userspace functions. (It mentions it in the intro that it's only concerned about semantics of the standardized functions, and it doesn't care about whether those functions wrap system calls or not.)