Home
last modified time | relevance | path

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

/DragonOS-0.1.2/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()
/DragonOS-0.1.2/kernel/src/filesystem/VFS/
DVFS.c376 uint64_t do_open(const char *filename, int flags, bool from_user) in do_open() argument
380 path_len = strnlen_user(filename, PAGE_4K_SIZE) + 1; in do_open()
382 path_len = strnlen(filename, PAGE_4K_SIZE) + 1; in do_open()
395 strncpy_from_user(path, filename, path_len); in do_open()
397 strncpy(path, filename, path_len); in do_open()
537 char *filename = (char *)(regs->r8); in sys_open() local
539 return do_open(filename, flags, true); in sys_open()
DVFS.h173 long (*hash)(struct vfs_dir_entry_t *dEntry, char *filename);
252 uint64_t do_open(const char *filename, int flags, bool from_user);
/DragonOS-0.1.2/kernel/src/filesystem/rootfs/
Drootfs.c83 static long rootfs_hash(struct vfs_dir_entry_t *dEntry, char *filename) { return 0; } in rootfs_hash() argument
/DragonOS-0.1.2/kernel/src/filesystem/devfs/
Ddevfs.c60 static long devfs_hash(struct vfs_dir_entry_t *dEntry, char *filename) { return 0; } in devfs_hash() argument
/DragonOS-0.1.2/kernel/src/filesystem/procfs/
Dprocfs.c74 static long procfs_hash(struct vfs_dir_entry_t *dEntry, char *filename) in procfs_hash() argument
/DragonOS-0.1.2/kernel/src/filesystem/fat32/
Dfat32.c526 long fat32_hash(struct vfs_dir_entry_t *dEntry, char *filename) in fat32_hash() argument