mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-03 12:57:27 +00:00
NativeStat, SharedMemory, Stdio, DynamicLoader, ModuleInfo and Rtld used Linux-only APIs (st_atim, memfd_create, sys/vfs.h, link.h and dl_iterate_phdr), so libkernel did not compile on macOS. Add macOS paths behind __APPLE__: st_*timespec and a long-path fstatat walk, an unlinked temp file for shared memory, statfs, dlopen/dladdr and Mach-O segment walks for module and rtld queries. The Linux and Windows paths are unchanged. Extracted from feat/macos-port (#8658). Co-authored-by: Himansh Raj <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]>