3 ms·
Except there are some platforms where you need to go through libc and the direct syscall interface is considered private, or subject to change. OpenBSD is like
by asveikau 2y ago
Except there are some platforms where you need to go through libc and the direct syscall interface is considered private, or subject to change. OpenBSD is like this, and I believe Mac is too.
- matheusmoreira 2y agoLinux is the only one that is not like this. I wrote an article about the subject: https://www.matheusmoreira.com/articles/linux-system-calls https://www.matheusmoreira.com/articles/linux-system-calls
- vetinari 2y agoWhile Linux does have stable syscall interface, unlike other OS-es, you still want to go through glibc. At least for NSS, otherwise your app could be broken. Golang has CGO_ENABLED=1 as the default for this reason.