Searched refs:file_path (Results 1 – 2 of 2) sorted by relevance
/DragonOS-0.1.8/user/apps/shell/ |
D | cmd.c | 53 char *file_path = NULL; in get_target_filepath() local 61 file_path = (char *)malloc(*result_path_len + 2); in get_target_filepath() 63 memset(file_path, 0, *result_path_len + 2); in get_target_filepath() 65 strncpy(file_path, shell_current_path, cwd_len); in get_target_filepath() 69 file_path[cwd_len] = '/'; in get_target_filepath() 72 strcat(file_path, filename); in get_target_filepath() 77 file_path = (char *)malloc(*result_path_len + 2); in get_target_filepath() 79 memset(file_path, 0, *result_path_len + 2); in get_target_filepath() 81 strncpy(file_path, filename, *result_path_len); in get_target_filepath() 83 file_path[*result_path_len] = '/'; in get_target_filepath() [all …]
|
/DragonOS-0.1.8/kernel/src/process/ |
D | exec.rs | 97 file_path: &'a str, field 116 pub fn new(file_path: &'a str, vm: Arc<AddressSpace>, flags: ExecParamFlags) -> Self { in new() 118 file_path, in new() 126 pub fn file_path(&self) -> &'a str { in file_path() method 127 self.file_path in file_path() 162 let inode = ROOT_INODE().lookup(param.file_path)?; in load_binary_file()
|