getdents (2) Linux Manual Page
NAME getdents, getdents64 – get directory entries SYNOPSIS long getdents(unsigned int fd, struct linux_dirent *dirp, unsigned int count); #define _GNU_SOURCE /* See feature_test_macros(7) */ #include <dirent.h> ssize_t getdents64(int fd, void *dirp, size_t count); Note: There is no glibc wrapper for getdents(); see NOTES. DESCRIPTION These are not the interfaces you are interested in. Look at…
