From 642b5fb0007b64c77d186fcb018d571152ee1d47 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 14 Aug 2023 18:51:07 +0200 Subject: reorganization: first steps --- src/libc/include/dirent.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/libc/include/dirent.h (limited to 'src/libc/include/dirent.h') diff --git a/src/libc/include/dirent.h b/src/libc/include/dirent.h new file mode 100644 index 0000000..7c419d7 --- /dev/null +++ b/src/libc/include/dirent.h @@ -0,0 +1,16 @@ +#pragma once +#include + +struct dirent { + ino_t d_ino; + char d_name[256]; /* NAME_MAX + 1 */ +}; + +typedef struct { + FILE *fp; + struct dirent dent; +} DIR; + +DIR *opendir(const char *name); +int closedir(DIR *dir); +struct dirent *readdir(DIR *dir); -- cgit v1.2.3