3 ms·
> OP references Illumos, but I also think the only way you get access to syscalls on macOS is through Apple's libc. That's right. In fact this was a source of
by asdfasgasdgasdg 6y ago
> OP references Illumos, but I also think the only way you get access to syscalls on macOS is through Apple's libc.
That's right. In fact this was a source of a time-related bug in Go on Mac OS. https://github.com/golang/go/issues/17490 https://github.com/golang/go/issues/17490 https://github.com/golang/go/issues/16570 https://github.com/golang/go/issues/16570
- carterschonwald 6y agoThere’s even some fun gotchas whereby to correctly bind some of the symbols, you need to make sure the correct header expanding c stub wrapper is used to make sure the sym linker works correctly on OS X. Was helping a friend with some ffi binding for Mac earlier this year and that wound up being key