Searched refs:full_path (Results 1 – 3 of 3) sorted by relevance
/components/finsh/ |
A D | msh_file.c | 326 char *full_path; in directory_delete_for_msh() local 331 full_path = (char *)rt_malloc(DFS_PATH_MAX); in directory_delete_for_msh() 332 if (full_path == RT_NULL) in directory_delete_for_msh() 342 rt_free(full_path); in directory_delete_for_msh() 362 if (unlink(full_path) != 0) in directory_delete_for_msh() 379 rt_free(full_path); in directory_delete_for_msh() 850 char *full_path; in directory_setattr() local 855 full_path = (char *)rt_malloc(DFS_PATH_MAX); in directory_setattr() 856 if (full_path == RT_NULL) in directory_setattr() 866 rt_free(full_path); in directory_setattr() [all …]
|
A D | msh.c | 633 char *full_path, *ptr, *index; in msh_auto_complete_path() local 638 full_path = (char *)rt_malloc(256); in msh_auto_complete_path() 643 getcwd(full_path, 256); in msh_auto_complete_path() 644 if (full_path[rt_strlen(full_path) - 1] != '/') in msh_auto_complete_path() 645 strcat(full_path, "/"); in msh_auto_complete_path() 647 else *full_path = '\0'; in msh_auto_complete_path() 665 ptr = full_path; in msh_auto_complete_path() 672 dir = opendir(full_path); in msh_auto_complete_path() 675 rt_free(full_path); in msh_auto_complete_path() 743 rt_memcpy(index, full_path, min_length); in msh_auto_complete_path() [all …]
|
/components/dfs/dfs_v2/src/ |
A D | dfs_file.c | 75 char *full_path = rt_strdup(fullpath); in _get_parent_path() local 76 if (full_path == NULL) in _get_parent_path() 82 str = strrchr(full_path, '/'); in _get_parent_path() 88 str = strrchr(full_path, '/'); in _get_parent_path() 93 len = str - full_path; in _get_parent_path() 96 rt_memcpy(path, full_path, len); in _get_parent_path() 107 rt_free(full_path); in _get_parent_path()
|
Completed in 34 milliseconds