Lines Matching refs:pathw
257 wchar_t *pathw = php_win32_ioutil_conv_any_to_w(path, PHP_WIN32_CP_IGNORE_LEN, &pathw_len); in php_sys_stat_ex()
259 if (!pathw) { in php_sys_stat_ex()
263 if (!GetFileAttributesExW(pathw, GetFileExInfoStandard, &data)) { in php_sys_stat_ex()
266 ret = _wstat64(pathw, buf); in php_sys_stat_ex()
268 ret = _wstat(pathw, (struct _stat32 *)buf); in php_sys_stat_ex()
270 free(pathw); in php_sys_stat_ex()
275 if (pathw_len >= 1 && pathw[1] == L':') { in php_sys_stat_ex()
276 if (pathw[0] >= L'A' && pathw[0] <= L'Z') { in php_sys_stat_ex()
277 buf->st_dev = buf->st_rdev = pathw[0] - L'A'; in php_sys_stat_ex()
279 buf->st_dev = buf->st_rdev = pathw[0] - L'a'; in php_sys_stat_ex()
281 } else if (PHP_WIN32_IOUTIL_IS_UNC(pathw, pathw_len)) { in php_sys_stat_ex()
288 if (pathw[0] >= L'A' && pathw[0] <= L'Z') { in php_sys_stat_ex()
289 buf->st_dev = buf->st_rdev = pathw[0] - L'A'; in php_sys_stat_ex()
291 buf->st_dev = buf->st_rdev = pathw[0] - L'a'; in php_sys_stat_ex()
309 …hLink = CreateFileW(pathw, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_FLAG_OPEN_REPARSE_POINT|FILE… in php_sys_stat_ex()
311 free(pathw); in php_sys_stat_ex()
319 free(pathw); in php_sys_stat_ex()
342 if (pathw_len >= 4 && pathw[pathw_len-4] == L'.') { in php_sys_stat_ex()
343 if (_wcsnicmp(pathw+pathw_len-3, L"exe", 3) == 0 || in php_sys_stat_ex()
344 _wcsnicmp(pathw+pathw_len-3, L"com", 3) == 0 || in php_sys_stat_ex()
345 _wcsnicmp(pathw+pathw_len-3, L"bat", 3) == 0 || in php_sys_stat_ex()
346 _wcsnicmp(pathw+pathw_len-3, L"cmd", 3) == 0) { in php_sys_stat_ex()
362 free(pathw); in php_sys_stat_ex()
742 wchar_t *pathw = NULL; in tsrm_realpath_r()
744 do { free(pathw); } while(0); in tsrm_realpath_r()
839 pathw = php_win32_ioutil_any_to_w(path); in tsrm_realpath_r()
840 if (!pathw) { in tsrm_realpath_r()
843 hFind = FindFirstFileExW(pathw, FindExInfoBasic, &dataw, FindExSearchNameMatch, NULL, 0); in tsrm_realpath_r()
886 …hLink = CreateFileW(pathw, 0, 0, NULL, OPEN_EXISTING, FILE_FLAG_OPEN_REPARSE_POINT|FILE_FLAG_BACKU… in tsrm_realpath_r()