Mercurial > gnulib
changeset 18244:976d848c1f8d
readdir_r: now obsolescent
* doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
* lib/mountlist.c (read_file_system_list): Add a FIXME.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 08 Feb 2016 18:45:55 -0800 |
parents | 09d76a7c887d |
children | 80651652771e |
files | ChangeLog doc/posix-functions/readdir_r.texi lib/mountlist.c |
diffstat | 3 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Feb 08 18:39:23 2016 -0800 +++ b/ChangeLog Mon Feb 08 18:45:55 2016 -0800 @@ -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
--- a/doc/posix-functions/readdir_r.texi Mon Feb 08 18:39:23 2016 -0800 +++ b/doc/posix-functions/readdir_r.texi Mon Feb 08 18:45:55 2016 -0800 @@ -9,6 +9,9 @@ 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
--- a/lib/mountlist.c Mon Feb 08 18:39:23 2016 -0800 +++ b/lib/mountlist.c Mon Feb 08 18:45:55 2016 -0800 @@ -1068,6 +1068,8 @@ 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;