#include <unistd.h> #include <linux/dirent.h> #include <linux/unistd.h> long getdents( int dd_fd, char *dd_buf, int dd_len );
A successful call to getdents returns th the number of bytes read.
On end of directory, 0 is returned. When an error occurs, -1 is returned,
and errno is set appropriately.
fd.
getdents reads several dirent structures from the directory
pointed by fd into the memory area pointed to by dirp. The
parameter count is the size of the memory area.
NONE
Copyright © 1988-2004 OAR Corporation