int getdents(unsigned int fd, struct dirent *dirp, unsigned int count);
The system call getdents reads several dirent structures from the
directory pointed at by fd into the memory area pointed to by dirp.
The parameter count is the size of the memory area.