ls dir with readdir_r()