Lines Matching refs:state_cwd_length
1042 size_t state_cwd_length = state->cwd_length; in virtual_file_ex() local
1048 state_cwd_length = 2; in virtual_file_ex()
1051 state_cwd_length = 2; in virtual_file_ex()
1052 while (IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1053 state_cwd_length++; in virtual_file_ex()
1055 while (state->cwd[state_cwd_length] && in virtual_file_ex()
1056 !IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1057 state_cwd_length++; in virtual_file_ex()
1059 while (IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1060 state_cwd_length++; in virtual_file_ex()
1062 while (state->cwd[state_cwd_length] && in virtual_file_ex()
1063 !IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1064 state_cwd_length++; in virtual_file_ex()
1069 if (path_length + state_cwd_length + 1 >= MAXPATHLEN-1) { in virtual_file_ex()
1077 memcpy(resolved_path, state->cwd, state_cwd_length); in virtual_file_ex()
1078 if (resolved_path[state_cwd_length-1] == DEFAULT_SLASH) { in virtual_file_ex()
1079 memcpy(resolved_path + state_cwd_length, path, path_length + 1); in virtual_file_ex()
1080 path_length += state_cwd_length; in virtual_file_ex()
1082 resolved_path[state_cwd_length] = DEFAULT_SLASH; in virtual_file_ex()
1083 memcpy(resolved_path + state_cwd_length + 1, path, path_length + 1); in virtual_file_ex()
1084 path_length += state_cwd_length + 1; in virtual_file_ex()