Next: readdir_r
, Previous: read
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
readdir
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/readdir.html
Gnulib module: readdir
Portability problems fixed by Gnulib:
off_t
is a 32-bit type, this function may not
work correctly on huge directories 2 GiB and larger. Also, on platforms
where ino_t
is a 32-bit type, this function may report inode numbers
incorrectly. This can occur with file systems such as XFS (typically on
large disks) and NFS. See Large File Support.
Portability problems not fixed by Gnulib:
d_ino
values, some
older systems are rumored to return d_ino
values equal to zero
for directory entries that do not really exist. Although Gnulib
formerly attempted to cater to these older systems, this caused
misbehavior on standard systems and so Gnulib does not attempt to
cater to them any more. If you know of any problems caused by this,
please send a bug report.