Next: scanf, Previous: scalbnl, Up: Function Substitutes [Contents][Index]

`scandir`

POSIX specification:

http://www.opengroup.org/onlinepubs/9699919799/functions/scandir.html

Gnulib module: scandir

Portability problems fixed by Gnulib:

- This function is missing on some platforms: Minix 3.1.8, Solaris 9, mingw, MSVC 9, BeOS.
- On platforms where
`off_t`

is a 32-bit type, this function may not work correctly on huge directories larger than 2 GB. Also, on platforms where`ino_t`

is a 32-bit type, this function may report inode numbers incorrectly. (Cf.`AC_SYS_LARGEFILE`

.)

Portability problems not fixed by Gnulib:

- The fourth parameter of this function is declared as
`int (*) (const void *, const void *)`

on some platforms: glibc 2.3.6, Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Interix 3.5. - The fourth parameter of this function is declared as
`int (*) (void *, void *)`

on some platforms: AIX 5.1.