Searched refs:shell_current_path (Results 1 – 2 of 2) sorted by relevance
18 char *shell_current_path = NULL; variable45 int cwd_len = strlen(shell_current_path); in get_target_filepath()54 strncpy(file_path, shell_current_path, cwd_len); in get_target_filepath()124 int current_dir_len = strlen(shell_current_path); in shell_cmd_cd()139 if (!strcmp("/", shell_current_path)) in shell_cmd_cd()146 if (shell_current_path[index] == '/') in shell_cmd_cd()149 shell_current_path[index] = '\0'; in shell_cmd_cd()177 free(shell_current_path); in shell_cmd_cd()179 shell_current_path = new_path; in shell_cmd_cd()181 shell_current_path[dest_len] = '\0'; in shell_cmd_cd()[all …]
24 extern char *shell_current_path;44 shell_current_path = (char *)malloc(3); in main_loop()46 memset(shell_current_path, 0, 3); in main_loop()47 shell_current_path[0] = '/'; in main_loop()48 shell_current_path[1] = '\0'; in main_loop()55 printf("[DragonOS] %s # ", shell_current_path); in main_loop()