Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dcore.rs220 let (filename, parent_path) = rsplit_path(path); in do_open()
225 let inode: Arc<dyn IndexNode> = parent_inode.create(filename, FileType::File, 0o777)?; in do_open()
324 let (filename, parent_path) = rsplit_path(path); in do_mkdir()
330 parent_inode.create(filename, FileType::Dir, 0o777)?; in do_mkdir()
357 let (filename, parent_path) = rsplit_path(path); in do_remove_dir()
365 let target_inode: Arc<dyn IndexNode> = parent_inode.find(filename)?; in do_remove_dir()
371 parent_inode.rmdir(filename)?; in do_remove_dir()
397 let (filename, parent_path) = rsplit_path(path); in do_unlink_at()
406 parent_inode.unlink(filename)?; in do_unlink_at()
DVFS.h172 long (*hash)(struct vfs_dir_entry_t *dEntry, char *filename);
/DragonOS-0.1.7/user/apps/shell/
Dcmd.c40 static char *get_target_filepath(const char *filename, int *result_path_len) in get_target_filepath() argument
43 if (filename[0] != '/') in get_target_filepath()
48 *result_path_len = cwd_len + strlen(filename); in get_target_filepath()
61 strcat(file_path, filename); in get_target_filepath()
65 *result_path_len = strlen(filename); in get_target_filepath()
70 strncpy(file_path, filename, *result_path_len); in get_target_filepath()
71 if (filename[(*result_path_len) - 1] != '/') in get_target_filepath()