3 ms·
I'm not 100% sure this is right, but if there's anything that can be called a Unix API it's POSIX, and libc is part of the specification. So I think the answer
by camgunz 6y ago
I'm not 100% sure this is right, but if there's anything that can be called a Unix API it's POSIX, and libc is part of the specification. So I think the answer is yes.
OP references Illumos, but I also think the only way you get access to syscalls on macOS is through Apple's libc.
- 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