Home
last modified time | relevance | path

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

/DragonOS-0.1.5/user/apps/shell/
Dcmd.c172 char *new_path = (char *)malloc(dest_len + 2); in shell_cmd_cd() local
173 memset(new_path, 0, dest_len + 2); in shell_cmd_cd()
174 strncpy(new_path, argv[1], dest_len); in shell_cmd_cd()
179 shell_current_path = new_path; in shell_cmd_cd()
206 char *new_path = (char *)malloc(new_len + 2); in shell_cmd_cd() local
207 memset(new_path, 0, sizeof(new_path)); in shell_cmd_cd()
208 strncpy(new_path, shell_current_path, current_dir_len); in shell_cmd_cd()
211 new_path[current_dir_len] = '/'; in shell_cmd_cd()
212 strcat(new_path, argv[1] + dest_offset); in shell_cmd_cd()
213 int x = chdir(new_path); in shell_cmd_cd()
[all …]
/DragonOS-0.1.5/kernel/src/filesystem/vfs/
Dmod.rs420 let new_path = link_path + "/" + &rest_path; in lookup_follow_symlink() localVariable
422 return result.lookup_follow_symlink(&new_path, max_follow_times - 1); in lookup_follow_symlink()