2 ms·
Note that even Go only does syscalls itself on Linux. On macOS and Windows it calls into libSystem and kernel32.dll respectively, as the syscall interface is no
by pcwalton 7y ago
Note that even Go only does syscalls itself on Linux. On macOS and Windows it calls into libSystem and kernel32.dll respectively, as the syscall interface is not stable on those platforms.
- earenndil 7y agontdll is pretty close to stable. Technically not stable, but high-profile projects like chrome depend on it, so it's not likely to change at this point.
- masklinn 7y ago> Note that even Go only does syscalls itself on Linux. AFAIK Go does syscalls itself on any platform but Windows and macOS, this includes all BSDs. And even for macOS despite that having never been officially supported it took multiple breakages a few years back. The first thread here mentions the issues that causes for openbsd.
- loeg 7y agoGo does (or did) bare syscalls on the BSDs as well, despite the syscall interface not being stable there.