add missing return value in readdir_r