710f77ccc235f5c648b6d4074601688943a9f65c
[gnulib.git] / doc / posix-functions / scandir.texi
1 @node scandir
2 @section @code{scandir}
3 @findex scandir
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/scandir.html}
6
7 Gnulib module: scandir
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 Solaris 9, mingw, BeOS.
14 @item
15 On platforms where @code{off_t} is a 32-bit type, this function may not
16 work correctly on huge directories larger than 2 GB.  Also, on platforms
17 where @code{ino_t} is a 32-bit type, this function may report inode numbers
18 incorrectly.  (Cf. @code{AC_SYS_LARGEFILE}.)
19 @end itemize
20
21 Portability problems not fixed by Gnulib:
22 @itemize
23 @item
24 The fourth parameter of this function is declared as @code{int (*) (const void *, const void *)} on some platforms:
25 glibc 2.3.6, MacOS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Interix 3.5.
26 @item
27 The fourth parameter of this function is declared as @code{int (*) (void *, void *)} on some platforms:
28 AIX 5.1.
29 @end itemize