Lines Matching refs:resolved_path
1199 char resolved_path[MAXPATHLEN]; in virtual_file_ex() local
1227 memcpy(resolved_path , path, path_length + 1); in virtual_file_ex()
1259 memcpy(resolved_path, state->cwd, state_cwd_length); in virtual_file_ex()
1260 if (resolved_path[state_cwd_length-1] == DEFAULT_SLASH) { in virtual_file_ex()
1261 memcpy(resolved_path + state_cwd_length, path, path_length + 1); in virtual_file_ex()
1264 resolved_path[state_cwd_length] = DEFAULT_SLASH; in virtual_file_ex()
1265 memcpy(resolved_path + state_cwd_length + 1, path, path_length + 1); in virtual_file_ex()
1272 resolved_path[0] = path[0]; in virtual_file_ex()
1273 resolved_path[1] = ':'; in virtual_file_ex()
1274 resolved_path[2] = DEFAULT_SLASH; in virtual_file_ex()
1275 memcpy(resolved_path + 3, path + 2, path_length - 1); in virtual_file_ex()
1279 memcpy(resolved_path, path, path_length + 1); in virtual_file_ex()
1283 if (memchr(resolved_path, '*', path_length) || in virtual_file_ex()
1284 memchr(resolved_path, '?', path_length)) { in virtual_file_ex()
1290 if (IS_UNC_PATH(resolved_path, path_length)) { in virtual_file_ex()
1292 resolved_path[0] = DEFAULT_SLASH; in virtual_file_ex()
1293 resolved_path[1] = DEFAULT_SLASH; in virtual_file_ex()
1295 while (!IS_SLASH(resolved_path[start])) { in virtual_file_ex()
1296 if (resolved_path[start] == 0) { in virtual_file_ex()
1299 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex()
1302 resolved_path[start++] = DEFAULT_SLASH; in virtual_file_ex()
1303 while (!IS_SLASH(resolved_path[start])) { in virtual_file_ex()
1304 if (resolved_path[start] == 0) { in virtual_file_ex()
1307 resolved_path[start] = toupper(resolved_path[start]); in virtual_file_ex()
1310 resolved_path[start++] = DEFAULT_SLASH; in virtual_file_ex()
1311 } else if (IS_ABSOLUTE_PATH(resolved_path, path_length)) { in virtual_file_ex()
1313 resolved_path[0] = toupper(resolved_path[0]); in virtual_file_ex()
1314 resolved_path[2] = DEFAULT_SLASH; in virtual_file_ex()
1318 if (IS_ABSOLUTE_PATH(resolved_path, path_length)) { in virtual_file_ex()
1322 if (resolved_path[start] == 0) return -1; in virtual_file_ex()
1326 if (!IS_SLASH(resolved_path[start])) return -1; in virtual_file_ex()
1327 resolved_path[start++] = DEFAULT_SLASH; in virtual_file_ex()
1331 …add_slash = (use_realpath != CWD_REALPATH) && path_length > 0 && IS_SLASH(resolved_path[path_lengt… in virtual_file_ex()
1333 path_length = tsrm_realpath_r(resolved_path, start, path_length, &ll, &t, use_realpath, 0, NULL); in virtual_file_ex()
1341 resolved_path[path_length++] = '.'; in virtual_file_ex()
1343 if (add_slash && path_length && !IS_SLASH(resolved_path[path_length-1])) { in virtual_file_ex()
1347 resolved_path[path_length++] = DEFAULT_SLASH; in virtual_file_ex()
1349 resolved_path[path_length] = 0; in virtual_file_ex()
1369 memcpy(state->cwd, resolved_path, state->cwd_length+1); in virtual_file_ex()
1389 memcpy(state->cwd, resolved_path, state->cwd_length+1); in virtual_file_ex()