Hacker News new | ask | show | jobs
by pcwalton 19 days ago
Windows apps don't use syscalls directly; they call into kernel32.dll, which is convenient for Wine. (Microsoft enforces this by scrambling the syscall numbers on OS updates [1].)

[1]: https://j00ru.vexillium.org/syscalls/nt/64/

1 comments

Huh, now I know. I suppose macos is the same way these days even if you can technically bypass it.
Yes. Linux is the only major operating system where there is even a convention to directly access system calls. For macOS, everything goes through libSystem.