* doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
* lib/mountlist.c (read_file_system_list): Add a FIXME.
+2016-02-08 Paul Eggert <eggert@cs.ucla.edu>
+
+ readdir_r: now obsolescent
+ * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
+ * lib/mountlist.c (read_file_system_list): Add a FIXME.
+
2016-02-06 Paul Eggert <eggert@cs.ucla.edu>
misc: port better to gcc -fsanitize=address
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 2011-11 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined).
@end itemize
struct dirent entry;
struct dirent *result;
+ /* FIXME: readdir_r is planned to be withdrawn from POSIX and
+ marked obsolescent in glibc. Use readdir instead. */
if (readdir_r (dirp, &entry, &result) || result == NULL)
break;