Luna/libs/libc/src/luna/dirent.cpp
apio 78d72c2f0c Kernel, libc: Add a getdents() system call
This is meant to be a low-level interface to implement dirent.h on top of.
2022-10-23 14:03:46 +02:00

11 lines
219 B
C++

#include <luna/dirent.h>
#include <sys/syscall.h>
#include <unistd.h>
extern "C"
{
ssize_t getdents(int fd, struct luna_dirent* buf, size_t count)
{
return syscall(SYS_getdents, fd, buf, count);
}
}