Home
last modified time | relevance | path

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

/DragonOS-0.1.2/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()
Ddirent.h66 struct dirent* readdir(struct DIR* dir);
/DragonOS-0.1.2/docs/userland/libc/apis/api-list/
Ddirent.md23 ``off_t d_off`` : dir偏移量(不推荐修改)
43 ``dirent readdir(DIR *dir)``
/DragonOS-0.1.2/kernel/src/filesystem/fat32/
Dfat_ent.h99 int fat32_remove_entries(struct vfs_index_node_t *dir, struct fat32_slot_info *sinfo);
Dfat32.c20 static int vfat_find(struct vfs_index_node_t *dir, const char *name, struct fat32_slot_info *slot_i…
1121 int64_t fat32_unlink(struct vfs_index_node_t *dir, struct vfs_dir_entry_t *dentry) in fat32_unlink() argument
1124 struct vfs_superblock_t *sb = dir->sb; in fat32_unlink()
1130 retval = vfat_find(dir, dentry->name, &sinfo); in fat32_unlink()
1136 retval = fat32_remove_entries(dir, &sinfo); in fat32_unlink()
1377 static int fat_search_long(struct vfs_index_node_t *dir, const char *name, int len, struct fat32_sl… in fat_search_long() argument
1380 retval = __fat32_search_long_short(dir, name, len, slot_info); in fat_search_long()
1391 static int vfat_find(struct vfs_index_node_t *dir, const char *name, struct fat32_slot_info *slot_i… in vfat_find() argument
1398 return fat_search_long(dir, name, len, slot_info); in vfat_find()
Dfat_ent.c433 int fat32_remove_entries(struct vfs_index_node_t *dir, struct fat32_slot_info *sinfo) in fat32_remove_entries() argument
436 struct vfs_superblock_t *sb = dir->sb; in fat32_remove_entries()
/DragonOS-0.1.2/user/apps/shell/
Dcmd.c246 struct DIR *dir = opendir(shell_current_path); in shell_cmd_ls() local
248 if (dir == NULL) in shell_cmd_ls()
256 buf = readdir(dir); in shell_cmd_ls()
274 closedir(dir); in shell_cmd_ls()
/DragonOS-0.1.2/kernel/src/driver/usb/xhci/
Dxhci.h269 unsigned dir : 1; // 0 -> out packet member
289 unsigned dir : 1; // 0 -> out packet member
Dxhci.c1116 trb.dir = direction; in xhci_data_stage()
1168 trb.dir = direction; in xhci_status_stage()