3 ms·
> It provide a series of system calls on which a C API is built. I can't see how that isn't offering a C interface.
by jmull 6y ago
> It provide a series of system calls on which a C API is built.
I can't see how that isn't offering a C interface.
- alexchamberlain 6y agoAs one of the cousin comments said, on Linux the syscall table is defined as stable and various POSIX(-like) C APIs (glibc for example) are built on top.
- jmull 6y ago... thus glibc is one of the C interfaces to which the article refers! I guess I should just stop since you're making a distinction I just am not getting. I realize glibc doesn't == syscalls, but I don't see how that's relevant to the article.
- alexchamberlain 6y agoTo be really pedantic, the pure Linux OS doesn't provide the C interface - a layer on top does.
- mhh__ 6y agoOne thing not mentioned by others so far is that not all system calls available on Linux are actually available in (say) glibc, for example if you want to access the perf_event subsystem you'll have to write your own C function to handle it (This is not true for eBPF IIRC).