logoalt Hacker News

guitmz • today at 12:27 PM • 2 replies • view on HN

The Linux kernel API is the same everywhere, but the syscall ABI (numbers, calling convention, entry paths) is specific to a architecture, while it's the C library that wraps those details into the portable POSIX API we code against


Replies

weli • today at 12:54 PM

Also newer archs (riscv) don't support certain syscalls (open, fork) they are still functions you can call under your standard musl,glibc but they inernally call openat, clone.

tomtomtom777 • today at 1:02 PM

I see, but why were they numbered differently? Why not use the same numbers?

➕ show 1 reply