Home
last modified time | relevance | path

Searched refs:dirent (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.8/user/libs/libc/src/
Ddirent.c57 int64_t getdents(int fd, struct dirent *dirent, long count) in getdents() argument
59 return syscall_invoke(SYS_GET_DENTS, fd, (uint64_t)dirent, count, 0, 0, 0, 0, 0); in getdents()
67 struct dirent *readdir(struct DIR *dir) in readdir()
72 int len = getdents(dir->fd, (struct dirent *)dir->buf, DIR_BUF_SIZE); in readdir()
75 return (struct dirent *)dir->buf; in readdir()
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/
Ddirent.md1 # dirent.h
17 ``struct dirent`` :
43 ``dirent readdir(DIR *dir)``
45 传入文件夹结构体,读入文件夹里的内容,并打包为dirent结构体返回
/DragonOS-0.1.8/user/libs/libc/src/include/export/
Ddirent.h75 struct dirent struct
113 struct dirent* readdir(struct DIR* dir);
/DragonOS-0.1.8/kernel/src/common/
Ddirent.h4 struct dirent struct
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dfile.rs245 pub fn readdir(&mut self, dirent: &mut Dirent) -> Result<u64, SystemError> { in readdir()
271 dirent.d_ino = sub_inode.metadata().unwrap().inode_id as u64; in readdir()
272 dirent.d_off = 0; in readdir()
273 dirent.d_reclen = 0; in readdir()
274 dirent.d_type = sub_inode.metadata().unwrap().file_type.get_file_type_num() as u8; in readdir()
277 let ptr = &mut dirent.d_name as *mut u8; in readdir()
285 - ::core::mem::size_of_val(&dirent.d_name)) as u64); in readdir()
DVFS.h192 long (*readdir)(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler); // 读取文件夹
Dsyscall.rs309 let dirent = in getdents() localVariable
325 return file.readdir(dirent).map(|x| x as usize); in getdents()
/DragonOS-0.1.8/docs/userland/libc/apis/
Dindex.rst8 api-list/dirent
/DragonOS-0.1.8/user/apps/shell/
Dcmd.c262 struct dirent *buf = NULL; in shell_cmd_ls()