readdir64
readdir64 is a function in the C standard library used to read directory entries from an open directory stream. It is the 64-bit counterpart to readdir, returning entries through a dirent64 structure that uses 64-bit fields for inode numbers and offsets. This enables correct handling of large directories and large-files ecosystems on filesystems that require 64-bit addressing.
The typical prototype is struct dirent64 *readdir64(DIR *dirp); where dirp is a pointer to a directory stream
The dirent64 structure differs from the older dirent structure by using 64-bit fields, such as d_ino (inode
Compatibility and usage considerations vary by system. Some platforms provide readdir64 for 32-bit and 64-bit builds