Re:C library system-call wrappers, or the lack thereof
by akvadrako on Wednesday November 14, 2018 @06:14AM
(#18449052)
Actually the path is:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/syscall.h
and you can clearly see that the file is wrapped with: #ifdef __APPLE_API_PRIVATE
...
#endif /* __APPLE_API_PRIVATE */
Re:C library system-call wrappers, or the lack thereof
by saagarjha on Wednesday November 14, 2018 @11:56PM
(#18456951)
Again, if you have the Command Line Tools installed, it'll be under /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/. Xcode also has a copy, but I think fewer people have that installed.
With that being said, I disagree with your characterization of “some header”–anything that’s in Apple’s headers is public API, whether it has a fancy page on developer.apple.com or not. Apple has a very clear definition of what they consider to be “private”, and anything in /usr/include isn’t it.