Modify the position of libc_rent definition

This commit is contained in:
rcitachi authored and GuEe-GUI committed 2024-11-20 16:37:34 +08:00
1 parent 4f8bf21adf
commit 78c5cbb73b
2 files changed
+11 -12

No files matched your search

@@ -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 *);
-12
View File
@@ -4527,18 +4527,6 @@ sysret_t sys_rmdir(const char *path)
#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];
};
sysret_t sys_getdents(int fd, struct libc_dirent *dirp, size_t nbytes)
{
int ret = -1;