summaryrefslogtreecommitdiff
path: root/doc/posix-functions/readdir_r.texi
blob: 5a7391bfd655192fde93540cf1e85921865c0285 (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
30
@node readdir_r
@section @code{readdir_r}
@findex readdir_r

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

Gnulib module: extensions

Portability problems fixed by Gnulib:
@itemize
@item
This function is planned to be removed from POSIX and to be deprecated
in glibc.  Portable applications should use @code{readdir}.
@item
This function has an incompatible declaration on some platforms:
Solaris 11.4 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined).
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Minix 3.1.8, 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.  This can occur with file systems such as XFS (typically on
large disks) and NFS@.  The fix is to use the @code{AC_SYS_LARGEFILE} macro.
@end itemize