Merge "Clean up the implementation of the <dirent.h> functions."