Lines Matching refs:state_cwd_length
1040 size_t state_cwd_length = state->cwd_length; in virtual_file_ex() local
1046 state_cwd_length = 2; in virtual_file_ex()
1049 state_cwd_length = 2; in virtual_file_ex()
1050 while (IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1051 state_cwd_length++; in virtual_file_ex()
1053 while (state->cwd[state_cwd_length] && in virtual_file_ex()
1054 !IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1055 state_cwd_length++; in virtual_file_ex()
1057 while (IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1058 state_cwd_length++; in virtual_file_ex()
1060 while (state->cwd[state_cwd_length] && in virtual_file_ex()
1061 !IS_SLASH(state->cwd[state_cwd_length])) { in virtual_file_ex()
1062 state_cwd_length++; in virtual_file_ex()
1067 if (path_length + state_cwd_length + 1 >= MAXPATHLEN-1) { in virtual_file_ex()
1075 memcpy(resolved_path, state->cwd, state_cwd_length); in virtual_file_ex()
1076 if (resolved_path[state_cwd_length-1] == DEFAULT_SLASH) { 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()
1080 resolved_path[state_cwd_length] = DEFAULT_SLASH; 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()