Merge "Use readdir instead of readdir_r."