diff options
Diffstat (limited to 'lib/libc/include/__dirent.h')
| -rw-r--r-- | lib/libc/include/__dirent.h | 25 |
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 |
