mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-25 16:00:12 +01:00
Arm64 doesn't have the classic getdents syscall, only getdents64. Old glibc versions (like 2.17) don't support getdents64 This fixes 64-bit ls with a centos 7 rootfs. Likely also fixes some other very old applications. Packing differences between 32-bit and 64-bit getdents means we need to template this between the two types, otherwise it's quite similar. No known applications rely on the 32-bit getdents but worked with test applications.