4 ms·
> The same is not generally true for Linux binaries – these usually do go through glibc, but direct syscalls are possible (through raising the appropriate inter
by masklinn 6y ago
> The same is not generally true for Linux binaries – these usually do go through glibc, but direct syscalls are possible (through raising the appropriate interrupt or instruction).
OTOH Linux having a well defined set of syscalls you can very convincingly fake being a Linux kernel. That’s what wsl1 did. That’s also what SmartOS does, which allows it to mix native and Linux (LX) zones.
- lxgr 6y agoDefinitely, iSH does the same thing on iOS and it works really well. But I don't see why we can't have both (a stable syscall interface and requiring all syscalls to go through a standard library).
- masklinn 6y ago> But I don't see why we can't have both (a stable syscall interface and requiring all syscalls to go through a standard library). What's the point of having a stable syscall interface when you can require that only libc perform syscalls?