Lines Matching refs:cwd
101 char cwd[MAXPATHLEN]; in php_do_open_temporary_file() local
123 if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { in php_do_open_temporary_file()
124 cwd[0] = '\0'; in php_do_open_temporary_file()
127 new_state.cwd = strdup(cwd); in php_do_open_temporary_file()
128 new_state.cwd_length = strlen(cwd); in php_do_open_temporary_file()
131 free(new_state.cwd); in php_do_open_temporary_file()
135 if (IS_SLASH(new_state.cwd[new_state.cwd_length - 1])) { in php_do_open_temporary_file()
141 if (spprintf(&opened_path, 0, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) { in php_do_open_temporary_file()
143 free(new_state.cwd); in php_do_open_temporary_file()
149 if (GetTempFileName(new_state.cwd, pfx, 0, opened_path)) { in php_do_open_temporary_file()
154 free(new_state.cwd); in php_do_open_temporary_file()
173 free(new_state.cwd); in php_do_open_temporary_file()