3 ms·
Their `libcoreservices` has been useful to me for system-directory discovery on post-macOS-10.9 systems without having to install the whole heavyweight "macOS S
by Lammy 4y ago
Their `libcoreservices` has been useful to me for system-directory discovery on post-macOS-10.9 systems without having to install the whole heavyweight "macOS SDK" behind a Developer login wall: https://github.com/PureDarwin/libcoreservices https://github.com/PureDarwin/libcoreservices
These were available in Apple's open-source Libc until (afaict) Libc versions 9xx.x.x, corresponding to Mac OS X 10.9.x: https://opensource.apple.com/source/Libc/Libc-997.90.3/include/NSSystemDirectories.h.auto.html https://opensource.apple.com/source/Libc/Libc-997.90.3/inclu...
They were also available in the Mac OS X / macOS SDK package from as far back as I could find (10.1.x) through macOS 10.11.
- https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10.1.5.sdk/usr/include/NSSystemDirectories.h https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10...
- https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10.9.sdk/usr/include/NSSystemDirectories.h https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10...
- https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10.11.sdk/usr/include/NSSystemDirectories.h https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10...
macOS 10.12 introduced the new equivalent `sysdir` and deprecated `NSSystemDirectories`.
These were only ever available as part of the SDK, not in Libc.
- https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10.12.sdk/usr/include/NSSystemDirectories.h https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10...
- https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10.12.sdk/usr/include/sysdir.h https://github.com/phracker/MacOSX-SDKs/blob/master/MacOSX10...
- https://keith.github.io/xcode-man-pages/sysdir.3.html https://keith.github.io/xcode-man-pages/sysdir.3.html
- deleted 4y ago[deleted]
- runlevel1 4y agoAh, so that's how/why the directories in `/var/folders` are named the way they are in macOS.[^1] I've wondered that for a while. [1]: https://github.com/PureDarwin/libcoreservices/blob/1b151faa452f02ccc42759703c424800ee733c2f/libcoreservices/dirhelper_client.c#L193-L201 https://github.com/PureDarwin/libcoreservices/blob/1b151faa4...