From 90dad97fc07f049383903a166631e2c257f9b8c1 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 16 Dec 2025 17:02:05 +0100 Subject: Add support for TLS in the libc --- lib/libc/internal/include/__dirent.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lib/libc/internal/include/__dirent.h (limited to 'lib/libc/internal/include/__dirent.h') 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 +#include +#include + +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 -- cgit v1.2.3