Lines Matching refs:pathw
130 #define PHP_WIN32_IOUTIL_IS_LONG_PATHW(pathw, path_lenw) (path_lenw >= PHP_WIN32_IOUTIL_LONG_PATH_P… argument
131 …&& 0 == wcsncmp((pathw), PHP_WIN32_IOUTIL_LONG_PATH_PREFIXW, PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LEN…
132 #define PHP_WIN32_IOUTIL_IS_UNC_PATHW(pathw, path_lenw) (path_lenw >= PHP_WIN32_IOUTIL_UNC_PATH_PRE… argument
133 && 0 == wcsncmp((pathw), PHP_WIN32_IOUTIL_UNC_PATH_PREFIXW, PHP_WIN32_IOUTIL_UNC_PATH_PREFIX_LENW))
134 #define PHP_WIN32_IOUTIL_IS_JUNCTION_PATHW(pathw, path_lenw) (path_lenw >= PHP_WIN32_IOUTIL_JUNCTIO… argument
135 && 0 == wcsncmp((pathw), PHP_WIN32_IOUTIL_JUNCTION_PREFIXW, PHP_WIN32_IOUTIL_JUNCTION_PREFIX_LENW))
136 #define PHP_WIN32_IOUTIL_IS_ABSOLUTEW(pathw, path_lenw) (PHP_WIN32_IOUTIL_IS_LONG_PATHW(pathw, path… argument
137 …th_lenw >= 3 && PHP_WIN32_IOUTIL_IS_LETTERW(pathw[0]) && L':' == pathw[1] && PHP_WIN32_IOUTIL_IS_S…
138 …P_WIN32_IOUTIL_IS_UNC(pathw, path_lenw) (path_lenw >= 2 && PHP_WIN32_IOUTIL_IS_SLASHW(pathw[0]) &&… argument
139 …|| path_lenw >= PHP_WIN32_IOUTIL_UNC_PATH_PREFIX_LENW && 0 == wcsncmp((pathw), PHP_WIN32_IOUTIL_UN…
144 wchar_t *pathw = php_win32_ioutil_any_to_w(path); \
147 free(pathw); \
148 pathw = NULL; \
153 pathw = php_win32_ioutil_any_to_w(path); \
156 #define PHP_WIN32_IOUTIL_PATH_IS_OK_W(pathw, len) \ argument
157 (!((len) >= 1 && L' ' == pathw[(len)-1] || \
158 …(len) > 1 && !PHP_WIN32_IOUTIL_IS_SLASHW(pathw[(len)-2]) && L'.' != pathw[(len)-2] && L'.' == path…
160 #define PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, ret, dealloc) do { \ argument
161 size_t _len = wcslen(pathw); \
162 if (!PHP_WIN32_IOUTIL_PATH_IS_OK_W(pathw, _len)) { \
164 free((void *)pathw); \
283 if (!pathw) { in php_win32_ioutil_access()
288 PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, -1, 1) in php_win32_ioutil_access()
290 ret = php_win32_ioutil_access_w(pathw, mode); in php_win32_ioutil_access()
310 if (!pathw) { in php_win32_ioutil_open()
315 PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, -1, 1) in php_win32_ioutil_open()
325 ret = php_win32_ioutil_open_w(pathw, flags, mode); in php_win32_ioutil_open()
344 if (!pathw) { in php_win32_ioutil_unlink()
349 ret = php_win32_ioutil_unlink_w(pathw); in php_win32_ioutil_unlink()
368 if (!pathw) { in php_win32_ioutil_rmdir()
373 PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, -1, 1) in php_win32_ioutil_rmdir()
375 if (!RemoveDirectoryW(pathw)) { in php_win32_ioutil_rmdir()
396 if (!pathw) { in php_win32_ioutil_fopen()
401 PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, NULL, 1) in php_win32_ioutil_fopen()
408 ret = php_win32_ioutil_fopen_w(pathw, modew); in php_win32_ioutil_fopen()
468 wchar_t *pathw = php_win32_ioutil_any_to_w(patha); in php_win32_ioutil_chdir() local
471 if (!pathw) { in php_win32_ioutil_chdir()
476 ret = php_win32_ioutil_chdir_w(pathw); in php_win32_ioutil_chdir()
481 free(pathw); in php_win32_ioutil_chdir()
532 wchar_t *pathw = php_win32_ioutil_any_to_w(patha); in php_win32_ioutil_chmod() local
536 if (!pathw) { in php_win32_ioutil_chmod()
541 PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, -1, 1) in php_win32_ioutil_chmod()
543 ret = _wchmod(pathw, mode); in php_win32_ioutil_chmod()
548 free(pathw); in php_win32_ioutil_chmod()
563 if (!pathw) { in php_win32_ioutil_mkdir()
568 ret = php_win32_ioutil_mkdir_w(pathw, mode); in php_win32_ioutil_mkdir()
642 if (!pathw) { in php_win32_ioutil_realpath_ex0()
647 if (NULL == php_win32_ioutil_realpath_w_ex0(pathw, retw, info)) { in php_win32_ioutil_realpath_ex0()
747 wchar_t *pathw = php_win32_ioutil_conv_any_to_w(path, PHP_WIN32_CP_IGNORE_LEN, &pathw_len); in php_win32_ioutil_stat_ex() local
750 if (!pathw) { in php_win32_ioutil_stat_ex()
755 ret = php_win32_ioutil_stat_ex_w(pathw, pathw_len, buf, lstat); in php_win32_ioutil_stat_ex()
757 free(pathw); in php_win32_ioutil_stat_ex()
769 wchar_t *pathw = php_win32_ioutil_conv_any_to_w(path, PHP_WIN32_CP_IGNORE_LEN, &pathw_len); in php_win32_ioutil_readlink() local
774 if (!pathw) { in php_win32_ioutil_readlink()
779 ret = php_win32_ioutil_readlink_w(pathw, retw, sizeof(retw)-1); in php_win32_ioutil_readlink()
782 free(pathw); in php_win32_ioutil_readlink()
790 free(pathw); in php_win32_ioutil_readlink()
797 free(pathw); in php_win32_ioutil_readlink()