#ifndef GETDENTS_H #define GETDENTS_H #include "syscalls.h" struct dirent { unsigned long d_ino; unsigned long d_off; unsigned short d_reclen; char d_name[]; }; static int getdents(unsigned int fd, char *buf, unsigned int count) { return syscall(GETDENTS, fd, buf, count); } #endif