Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 7 of 7) sorted by relevance

/DragonOS-0.1.8/user/libs/libc/src/
Ddirent.c67 struct dirent *readdir(struct DIR *dir) in readdir() argument
70 memset((dir->buf), 0, DIR_BUF_SIZE); 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/user/
DMakefile55 …ARCH= dadk --config-dir dadk/config --cache-dir $(DADK_CACHE_DIR) --dragonos-dir $(ROOT_PATH)/bin/…
56 …ARCH= dadk --config-dir dadk/config --cache-dir $(DADK_CACHE_DIR) --dragonos-dir $(ROOT_PATH)/bin/…
60 …dadk --config-dir dadk/config --cache-dir $(DADK_CACHE_DIR) --dragonos-dir $(ROOT_PATH)/bin/sysroo…
61 …dadk --config-dir dadk/config --cache-dir $(DADK_CACHE_DIR) --dragonos-dir $(ROOT_PATH)/bin/sysroo…
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/
Ddirent.md23 ``off_t d_off`` : dir偏移量(不推荐修改)
43 ``dirent readdir(DIR *dir)``
/DragonOS-0.1.8/user/libs/libc/src/include/export/
Ddirent.h113 struct dirent* readdir(struct DIR* dir);
/DragonOS-0.1.8/user/apps/shell/
Dcmd.c257 struct DIR *dir = opendir(shell_current_path); in shell_cmd_ls() local
259 if (dir == NULL) in shell_cmd_ls()
267 buf = readdir(dir); in shell_cmd_ls()
285 closedir(dir); in shell_cmd_ls()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs1227 let mut dir = FATDir::default(); in to_dir_entry() localVariable
1228 dir.dir_name = self.name_to_string(); in to_dir_entry()
1229 dir.first_cluster = first_cluster; in to_dir_entry()
1230 dir.root_offset = None; in to_dir_entry()
1231 dir.short_dir_entry = Some(self.clone()); in to_dir_entry()
1232 dir.loc = Some((loc, loc)); in to_dir_entry()
1234 return FATDirEntry::Dir(dir); in to_dir_entry()
1267 let mut dir = FATDir::default(); in to_dir_entry_with_long_name() localVariable
1269 dir.first_cluster = first_cluster; in to_dir_entry_with_long_name()
1270 dir.dir_name = name; in to_dir_entry_with_long_name()
[all …]
Dfs.rs1513 FATDirEntry::Dir(dir) => { in list()
1516 let dir_iter: FATDirIter = dir.to_iter(guard.fs.upgrade().unwrap()); in list()
1571 let dir = match &guard.inode_type { in unlink() localVariable
1582 dir.check_existence(name, Some(false), guard.fs.upgrade().unwrap())?; in unlink()
1585 let r = dir.remove(guard.fs.upgrade().unwrap().clone(), name, true); in unlink()
1598 let dir = match &guard.inode_type { in rmdir() localVariable
1609 dir.check_existence(name, Some(true), guard.fs.upgrade().unwrap())?; in rmdir()
1613 dir.remove(guard.fs.upgrade().unwrap().clone(), name, true); in rmdir()