summaryrefslogtreecommitdiff
path: root/lib/libc/include/__dirent.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
commitfc00c656c96528112d05cf0edf8631bd5eaea446 (patch)
treea6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /lib/libc/include/__dirent.h
Add build system scaffolding and libc headers
Diffstat (limited to 'lib/libc/include/__dirent.h')
-rw-r--r--lib/libc/include/__dirent.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/libc/include/__dirent.h b/lib/libc/include/__dirent.h
new file mode 100644
index 00000000..9b23c9d2
--- /dev/null
+++ b/lib/libc/include/__dirent.h
@@ -0,0 +1,25 @@
+#ifndef __LIBC_DIRENT_H
+#define __LIBC_DIRENT_H
+
+#include <libc.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <stdint.h>
+
+struct linux_dirent64 {
+ uint64_t d_ino;
+ int64_t d_off;
+ unsigned short d_reclen;
+ unsigned char d_type;
+ char d_name[];
+};
+
+struct __DIR {
+ int fildes;
+ int cached;
+ off_t tell;
+ off_t offset;
+ char buffer[BUFSIZ] __attribute__((__aligned__(8)));
+};
+
+#endif