Home
last modified time | relevance | path

Searched refs:new_path (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/user/apps/shell/
Dcmd.c183 char *new_path = (char *)malloc(dest_len + 2); in shell_cmd_cd() local
184 memset(new_path, 0, dest_len + 2); in shell_cmd_cd()
185 strncpy(new_path, argv[1], dest_len); in shell_cmd_cd()
190 shell_current_path = new_path; in shell_cmd_cd()
217 char *new_path = (char *)malloc(new_len + 2); in shell_cmd_cd() local
218 memset(new_path, 0, sizeof(new_path)); in shell_cmd_cd()
219 strncpy(new_path, shell_current_path, current_dir_len); in shell_cmd_cd()
222 new_path[current_dir_len] = '/'; in shell_cmd_cd()
223 strcat(new_path, argv[1] + dest_offset); in shell_cmd_cd()
224 int x = chdir(new_path); in shell_cmd_cd()
[all …]
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dmod.rs433 let new_path = link_path + "/" + &rest_path; in lookup_follow_symlink() localVariable
435 return result.lookup_follow_symlink(&new_path, max_follow_times - 1); in lookup_follow_symlink()