logoalt Hacker News

Aransentin11/07/20241 replyview on HN

> We try to hide some of the differences between arches when reasonably feasible. e.g. Newer architectures no longer provide an open syscall, but do provide openat. We will still expose a sys_open helper by default that calls into openat instead.

Sometimes you actually want to make sure that the exact syscall is called; e.g. you're writing a little program protected by strict seccomp rules. If the layer can magically call some other syscall under the hood this won't work anymore.


Replies

dundarious11/07/2024

musl does this too. glibc may also, I haven't checked in a long time. I bet rust, etc., does too. You always need to check.

show 1 reply