From 112eafe13c3628cad6e692179c064dbbc3be2d8b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 9 Jun 2023 17:22:31 +0200 Subject: ports/dash: stub out everything needed for dash to compile --- src/user/lib/include/dirent.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/user/lib/include/dirent.h (limited to 'src/user/lib/include/dirent.h') diff --git a/src/user/lib/include/dirent.h b/src/user/lib/include/dirent.h new file mode 100644 index 0000000..35ba1e9 --- /dev/null +++ b/src/user/lib/include/dirent.h @@ -0,0 +1,20 @@ +#pragma once +#include + +typedef struct DIR DIR; +struct dirent { + ino_t d_ino; + char d_name[256]; /* NAME_MAX + 1 */ +}; + +static inline DIR *opendir(const char *name) { + __libc_panic("unimplemented"); +} + +static inline int closedir(DIR *dir) { + __libc_panic("unimplemented"); +} + +static inline struct dirent *readdir(DIR *dir) { + __libc_panic("unimplemented"); +} -- cgit v1.2.3