readdir and fdopendir replaced with readdir_c and fdopendir_c