Home
last modified time | relevance | path

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

/DragonOS-0.1.7/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.7/docs/userland/libc/apis/api-list/
Ddirent.md1 # dirent.h
17 ``struct dirent`` :
43 ``dirent readdir(DIR *dir)``
45 传入文件夹结构体,读入文件夹里的内容,并打包为dirent结构体返回
/DragonOS-0.1.7/user/libs/libc/src/include/export/
Ddirent.h75 struct dirent struct
113 struct dirent* readdir(struct DIR* dir);
/DragonOS-0.1.7/kernel/src/common/
Ddirent.h4 struct dirent struct
/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dfile.rs227 pub fn readdir(&mut self, dirent: &mut Dirent) -> Result<u64, SystemError> { in readdir()
253 dirent.d_ino = sub_inode.metadata().unwrap().inode_id as u64; in readdir()
254 dirent.d_off = 0; in readdir()
255 dirent.d_reclen = 0; in readdir()
256 dirent.d_type = sub_inode.metadata().unwrap().file_type.get_file_type_num() as u8; in readdir()
259 let ptr = &mut dirent.d_name as *mut u8; in readdir()
267 - ::core::mem::size_of_val(&dirent.d_name)) as u64); in readdir()
Dsyscall.rs230 let dirent = match unsafe { (regs.r9 as usize as *mut Dirent).as_mut() } { in sys_getdents() localVariable
234 Some(dirent) => dirent, in sys_getdents()
254 return match file.readdir(dirent) { in sys_getdents()
DVFS.h192 long (*readdir)(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler); // 读取文件夹
/DragonOS-0.1.7/docs/userland/libc/apis/
Dindex.rst8 api-list/dirent
/DragonOS-0.1.7/user/apps/shell/
Dcmd.c251 struct dirent *buf = NULL; in shell_cmd_ls()