Home
last modified time | relevance | path

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

/external/rootdev/
Drootdev.c96 char *working_path = NULL; in match_sysfs_device() local
125 working_path = malloc(working_path_size); in match_sysfs_device()
126 if (!working_path) { in match_sysfs_device()
136 free(working_path); in match_sysfs_device()
161 path_len = snprintf(working_path, working_path_size, "%s/%s/dev", in match_sysfs_device()
167 found_devt = devt_from_file(working_path); in match_sysfs_device()
182 sprintf(working_path, "%s/%s", basedir, entry->d_name); in match_sysfs_device()
183 found = match_sysfs_device(name, name_len, working_path, dev, depth + 1); in match_sysfs_device()
189 free(working_path); in match_sysfs_device()
/external/curl/lib/
Dssh.c409 char *working_path; in ssh_getworkingpath() local
412 working_path = curl_easy_unescape(data, data->state.path, 0, in ssh_getworkingpath()
414 if(!working_path) in ssh_getworkingpath()
421 free(working_path); in ssh_getworkingpath()
424 if((working_path_len > 3) && (!memcmp(working_path, "/~/", 3))) in ssh_getworkingpath()
426 memcpy(real_path, working_path+3, 4 + working_path_len-3); in ssh_getworkingpath()
428 memcpy(real_path, working_path, 1 + working_path_len); in ssh_getworkingpath()
431 if((working_path_len > 1) && (working_path[1] == '~')) { in ssh_getworkingpath()
435 free(working_path); in ssh_getworkingpath()
444 memcpy(real_path+homelen+1, working_path + 3, in ssh_getworkingpath()
[all …]