]> Savannah Git Hosting - gnulib.git/commitdiff
readdir_r: now obsolescent
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Feb 2016 02:45:55 +0000 (18:45 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Feb 2016 02:46:18 +0000 (18:46 -0800)
* doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
* lib/mountlist.c (read_file_system_list): Add a FIXME.

ChangeLog
doc/posix-functions/readdir_r.texi
lib/mountlist.c

index 5e473847d8b730818a491dc0fc124ce492931d3c..40bdd23684e2efafe5af21b92af37c11795e3df6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
index 0eac1c32d60036e699a517f4a7c9b31b8fd95012..d3512c32fabcbac53e22c1344a969c8b4afdb3e8 100644 (file)
@@ -9,6 +9,9 @@ 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 2011-11 (when @code{_POSIX_PTHREAD_SEMANTICS} is not defined).
 @end itemize
index 1e592d2457dc30bc888d4a4a03e4a567c48e72e8..829b31d0d864e17c4adf3058ab9bd91ce5a2f3d1 100644 (file)
@@ -1068,6 +1068,8 @@ read_file_system_list (bool need_fs_type)
         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;