summaryrefslogtreecommitdiff
path: root/doc/posix-functions/scandir.texi
blob: 4d792842b71f5ee04fb372a74ddf4f466f3c3a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@node scandir
@section @code{scandir}
@findex scandir

POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/scandir.html}

Gnulib module: scandir

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Minix 3.1.8, Solaris 9, mingw, MSVC 14.
@item
On platforms where @code{off_t} is a 32-bit type, this function may not
work correctly on huge directories larger than 2 GB@.  Also, on platforms
where @code{ino_t} is a 32-bit type, this function may report inode numbers
incorrectly.  (Cf. @code{AC_SYS_LARGEFILE}.)
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
The fourth parameter of this function is declared as @code{int (*) (const void *, const void *)} on some platforms:
glibc 2.3.6, Mac OS X 10.13, FreeBSD 6.0, NetBSD 7.1, OpenBSD 3.8.
@item
The fourth parameter of this function is declared as @code{int (*) (void *, void *)} on some platforms:
AIX 5.1.
@end itemize