1 2 3 4 5 6 7 8 9
#include <dirent.h> #include "syscall.h" int getdents(int fd, struct dirent *buf, size_t len) { return syscall(SYS_getdents, fd, buf, len); } LFS64(getdents);