implement posix_getdents adopted for next issue of POSIX