Replace some deprecated usages of readdir_r with readdir

readdir_r is deprecated and using it with recent compilers cause some
warning that may be treated as build errors. readdir is recommended
instead, see http://man7.org/linux/man-pages/man3/readdir_r.3.html

This CL replaces some usages of readdir_r with readdir in order to fix
build errors with use_ozone=1.

R=jln@chromium.org,gavinp@chromium.org,dcheng@chromium.org
BUG=457759

Review-Url: https://codereview.chromium.org/2411833004
Cr-Commit-Position: refs/heads/master@{#428867}
3 files changed