Lines Matching refs:result_path_len
51 static char *get_target_filepath(const char *filename, int *result_path_len) in get_target_filepath() argument
59 *result_path_len = cwd_len + strlen(filename); in get_target_filepath()
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()
76 *result_path_len = strlen(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()
82 if (filename[(*result_path_len) - 1] != '/') in get_target_filepath()
83 file_path[*result_path_len] = '/'; in get_target_filepath()
405 int result_path_len = -1; in shell_cmd_mkdir() local
412 full_path = get_target_filepath(argv[1], &result_path_len); in shell_cmd_mkdir()
435 int result_path_len = -1; in shell_cmd_rmdir() local
442 full_path = get_target_filepath(argv[1], &result_path_len); in shell_cmd_rmdir()
466 int result_path_len = -1; in shell_cmd_rm() local
474 full_path = get_target_filepath(argv[1], &result_path_len); in shell_cmd_rm()