scandir
¶POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/scandir.html
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. See Large File Support.
Portability problems not fixed by Gnulib:
int (*) (const void *, const void *)
on some platforms:
glibc 2.3.6, macOS 10.7, FreeBSD 6.0, NetBSD 7.1, OpenBSD 7.5.
int (*) (void *, void *)
on some platforms:
AIX 5.1.