summaryrefslogtreecommitdiff
path: root/lib/libc/internal/include/__dirent.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-16 17:02:05 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-16 17:02:05 +0100
commit90dad97fc07f049383903a166631e2c257f9b8c1 (patch)
tree096cd247ecfda9e46598215a4f32aecedeedda90 /lib/libc/internal/include/__dirent.h
parent0e832a9329cc4d4647e1ce529846073f21e66991 (diff)
Add support for TLS in the libc
Diffstat (limited to 'lib/libc/internal/include/__dirent.h')
-rw-r--r--lib/libc/internal/include/__dirent.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/libc/internal/include/__dirent.h b/lib/libc/internal/include/__dirent.h
new file mode 100644
index 00000000..4f9ead80
--- /dev/null
+++ b/lib/libc/internal/include/__dirent.h
@@ -0,0 +1,24 @@
+#ifndef __LIBC_DIRENT_H
+#define __LIBC_DIRENT_H
+
+#include <stdint.h>
+#include <stdio.h>
+#include <sys/types.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