summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorrcitachi <[email protected]>2024-11-01 19:01:27 +0800
committerMeco Man <[email protected]>2024-11-17 11:59:37 -0500
commitd9c16efe8faaff7a179129c2c3143a9def50cf41 (patch)
tree53329ac6eabc3a414ec7b33e7d6d858b39304b27 /components/libc
parent5e8602c6e07bf66ab82402140577eb37c98bc560 (diff)
Modify the position of libc_rent definition
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/compilers/common/include/dirent.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/libc/compilers/common/include/dirent.h b/components/libc/compilers/common/include/dirent.h
index 51451e2d59..b650028e11 100644
--- a/components/libc/compilers/common/include/dirent.h
+++ b/components/libc/compilers/common/include/dirent.h
@@ -65,6 +65,17 @@ struct dirent
};
#endif
+#ifdef RT_USING_MUSLLIBC
+typedef uint64_t ino_t;
+#endif
+struct libc_dirent {
+ ino_t d_ino;
+ off_t d_off;
+ unsigned short d_reclen;
+ unsigned char d_type;
+ char d_name[DIRENT_NAME_MAX];
+};
+
int closedir(DIR *);
DIR *opendir(const char *);
struct dirent *readdir(DIR *);