Lines Matching refs:path_length
1009 size_t path_length = strlen(path); in virtual_file_ex() local
1018 if (!path_length || path_length >= MAXPATHLEN-1) { in virtual_file_ex()
1034 if (!IS_ABSOLUTE_PATH(path, path_length)) { in virtual_file_ex()
1038 memcpy(resolved_path , path, path_length + 1); in virtual_file_ex()
1067 if (path_length + state_cwd_length + 1 >= MAXPATHLEN-1) { in virtual_file_ex()
1077 memcpy(resolved_path + state_cwd_length, path, path_length + 1); in virtual_file_ex()
1078 path_length += state_cwd_length; in virtual_file_ex()
1081 memcpy(resolved_path + state_cwd_length + 1, path, path_length + 1); in virtual_file_ex()
1082 path_length += state_cwd_length + 1; in virtual_file_ex()
1087 if (path_length > 2 && path[1] == ':' && !IS_SLASH(path[2])) { in virtual_file_ex()
1091 memcpy(resolved_path + 3, path + 2, path_length - 1); in virtual_file_ex()
1092 path_length++; in virtual_file_ex()
1095 memcpy(resolved_path, path, path_length + 1); in virtual_file_ex()
1099 if (memchr(resolved_path, '*', path_length) || in virtual_file_ex()
1100 memchr(resolved_path, '?', path_length)) { in virtual_file_ex()
1107 if (IS_UNC_PATH(resolved_path, path_length)) { in virtual_file_ex()
1128 } else if (IS_ABSOLUTE_PATH(resolved_path, path_length)) { in virtual_file_ex()
1132 if (path_length == 2) { in virtual_file_ex()
1139 …add_slash = (use_realpath != CWD_REALPATH) && path_length > 0 && IS_SLASH(resolved_path[path_lengt… in virtual_file_ex()
1141 path_length = tsrm_realpath_r(resolved_path, start, path_length, &ll, &t, use_realpath, 0, NULL); in virtual_file_ex()
1143 if (path_length == (size_t)-1) { in virtual_file_ex()
1154 if (!start && !path_length) { in virtual_file_ex()
1155 resolved_path[path_length++] = '.'; in virtual_file_ex()
1158 if (add_slash && path_length && !IS_SLASH(resolved_path[path_length-1])) { in virtual_file_ex()
1159 if (path_length >= MAXPATHLEN-1) { in virtual_file_ex()
1162 resolved_path[path_length++] = DEFAULT_SLASH; in virtual_file_ex()
1164 resolved_path[path_length] = 0; in virtual_file_ex()
1173 state->cwd_length = path_length; in virtual_file_ex()
1188 state->cwd_length = path_length; in virtual_file_ex()