Searched refs:dirent (Results 1 – 9 of 9) sorted by relevance
/DragonOS-0.1.8/user/libs/libc/src/ |
D | dirent.c | 57 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/ |
D | dirent.md | 1 # dirent.h 17 ``struct dirent`` : 43 ``dirent readdir(DIR *dir)`` 45 传入文件夹结构体,读入文件夹里的内容,并打包为dirent结构体返回
|
/DragonOS-0.1.8/user/libs/libc/src/include/export/ |
D | dirent.h | 75 struct dirent struct 113 struct dirent* readdir(struct DIR* dir);
|
/DragonOS-0.1.8/kernel/src/common/ |
D | dirent.h | 4 struct dirent struct
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | file.rs | 245 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()
|
D | VFS.h | 192 long (*readdir)(struct vfs_file_t *file_ptr, void *dirent, vfs_filldir_t filler); // 读取文件夹
|
D | syscall.rs | 309 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/ |
D | index.rst | 8 api-list/dirent
|
/DragonOS-0.1.8/user/apps/shell/ |
D | cmd.c | 262 struct dirent *buf = NULL; in shell_cmd_ls()
|