Comment by direwolf20
12 hours ago
This is a (3) man page which means it's not a syscall. Have you checked it doesn't call lstat on each file?
12 hours ago
This is a (3) man page which means it's not a syscall. Have you checked it doesn't call lstat on each file?
Fair, https://www.man7.org/linux/man-pages/man2/getdents64.2.html is a better link. You'd have to call lstat when d_type is DT_UNKNOWN