diff options
Diffstat (limited to 'src/libc/include/dirent.h')
-rw-r--r-- | src/libc/include/dirent.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 <stdio.h> + +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); |