aboutsummaryrefslogtreecommitdiff
path: root/sys/linux/src/direntry.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux/src/direntry.c')
-rw-r--r--sys/linux/src/direntry.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/linux/src/direntry.c b/sys/linux/src/direntry.c
new file mode 100644
index 0000000..cd737ae
--- /dev/null
+++ b/sys/linux/src/direntry.c
@@ -0,0 +1,8 @@
+#include "internal.h"
+
+int
+sys·direntry(int fd, void *buffer, uintptr len, uintptr *size)
+{
+ intptr ret = *size = syscall(·GetDents, fd, buffer, len);
+ return error(ret);
+}