Direct Syscalls vs Libc
The cluster focuses on debates about directly invoking system calls versus using libc wrappers in languages like Go and Rust, including discussions on syscall stability across Linux, BSDs, and macOS.
Activity Over Time
Top Contributors
Keywords
Sample Comments
There are no syscalls as the fine article explains.
Too bad they don't do syscalls.
Well, Go for example does syscalls directly.
Maybe! Why are Linux syscalls odd? How would you do it instead?
IMO if you cannot directly do a syscall in an os its useless.
Code that uses syscalls that aren’t in libc but doesn’t want to have to drop to inline assembly?
IIRC it's the other way around - it's Linux exposing syscalls for direct access that's unusual.
Any reason you can't use libc::syscall?
...unless the system libc is the syscall interface...
How would syscalls work exactly?