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.

➡️ Stable 0.5x Programming Languages
3,217
Comments
20
Years Active
5
Top Authors
#629
Topic ID

Activity Over Time

2007
1
2008
11
2009
15
2010
36
2011
37
2012
24
2013
41
2014
83
2015
165
2016
216
2017
192
2018
250
2019
256
2020
275
2021
297
2022
316
2023
300
2024
377
2025
275
2026
54

Keywords

e.g UNIX XNU DNS IMO HN ABI LLVM IEEE1003 CL syscalls libc syscall linux calls asm unix language interface assembly

Sample Comments

robotresearcher Jul 11, 2017 View on HN

There are no syscalls as the fine article explains.

sprt Oct 19, 2017 View on HN

Too bad they don't do syscalls.

justincormack May 16, 2024 View on HN

Well, Go for example does syscalls directly.

jvns Dec 19, 2013 View on HN

Maybe! Why are Linux syscalls odd? How would you do it instead?

nwmcsween Jul 4, 2015 View on HN

IMO if you cannot directly do a syscall in an os its useless.

saagarjha Oct 28, 2023 View on HN

Code that uses syscalls that aren’t in libc but doesn’t want to have to drop to inline assembly?

TeMPOraL Jan 24, 2023 View on HN

IIRC it's the other way around - it's Linux exposing syscalls for direct access that's unusual.

glandium Nov 28, 2018 View on HN

Any reason you can't use libc::syscall?

baq Sep 21, 2022 View on HN

...unless the system libc is the syscall interface...

dmitrygr Jan 3, 2018 View on HN

How would syscalls work exactly?