Lines Matching refs:filespecw
31 wchar_t *filespecw, *resolvedw; in opendir() local
52 filespecw = (wchar_t *)malloc((filespecw_len + 1)*sizeof(wchar_t)); in opendir()
53 if (filespecw == NULL) { in opendir()
59 wcscpy(filespecw, PHP_WIN32_IOUTIL_LONG_PATH_PREFIXW); in opendir()
60 wcscpy(filespecw + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW, resolvedw); in opendir()
63 wcscpy(filespecw, resolvedw); in opendir()
66 if (index >= 0 && filespecw[index] == L'/' || index == 0 && filespecw[index] == L'\\') in opendir()
67 filespecw[index] = L'\0'; in opendir()
68 wcscat(filespecw, L"\\*"); in opendir()
72 free(filespecw); in opendir()
77 …if ((handle = FindFirstFileExW(filespecw, FindExInfoBasic, &(dp->fileinfo), FindExSearchNameMatch,… in opendir()
83 free(filespecw); in opendir()
93 free(filespecw); in opendir()
151 wchar_t *filespecw; in rewinddir() local
171 filespecw = (wchar_t *)malloc((filespecw_len + 1)*sizeof(wchar_t)); in rewinddir()
172 if (filespecw == NULL) { in rewinddir()
177 wcscpy(filespecw, PHP_WIN32_IOUTIL_LONG_PATH_PREFIXW); in rewinddir()
178 wcscpy(filespecw + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW, dp->dirw); in rewinddir()
181 wcscpy(filespecw, dp->dirw); in rewinddir()
185 if (index >= 0 && (filespecw[index] == L'/' || in rewinddir()
186 (filespecw[index] == L'\\' && index == 0))) in rewinddir()
187 filespecw[index] = L'\0'; in rewinddir()
188 wcscat(filespecw, L"\\*"); in rewinddir()
190 …if ((handle = FindFirstFileExW(filespecw, FindExInfoBasic, &(dp->fileinfo), FindExSearchNameMatch,… in rewinddir()
194 free(filespecw); in rewinddir()