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); \
300 if (!pathw) { in php_win32_ioutil_access()
305 PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, -1, 1) in php_win32_ioutil_access()
307 ret = php_win32_ioutil_access_w(pathw, mode); in php_win32_ioutil_access()
327 if (!pathw) { in php_win32_ioutil_open()
332 PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, -1, 1) in php_win32_ioutil_open()
342 ret = php_win32_ioutil_open_w(pathw, flags, mode); in php_win32_ioutil_open()
361 if (!pathw) { in php_win32_ioutil_unlink()
366 ret = php_win32_ioutil_unlink_w(pathw); in php_win32_ioutil_unlink()
385 if (!pathw) { in php_win32_ioutil_rmdir()
390 PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, -1, 1) in php_win32_ioutil_rmdir()
392 if (!RemoveDirectoryW(pathw)) { in php_win32_ioutil_rmdir()
413 if (!pathw) { in php_win32_ioutil_fopen()
418 PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, NULL, 1) in php_win32_ioutil_fopen()
425 ret = php_win32_ioutil_fopen_w(pathw, modew); in php_win32_ioutil_fopen()
485 wchar_t *pathw = php_win32_ioutil_any_to_w(patha); in php_win32_ioutil_chdir() local
488 if (!pathw) { in php_win32_ioutil_chdir()
493 ret = php_win32_ioutil_chdir_w(pathw); in php_win32_ioutil_chdir()
498 free(pathw); in php_win32_ioutil_chdir()
549 wchar_t *pathw = php_win32_ioutil_any_to_w(patha); in php_win32_ioutil_chmod() local
553 if (!pathw) { in php_win32_ioutil_chmod()
558 PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, -1, 1) in php_win32_ioutil_chmod()
560 ret = _wchmod(pathw, mode); in php_win32_ioutil_chmod()
565 free(pathw); in php_win32_ioutil_chmod()
580 if (!pathw) { in php_win32_ioutil_mkdir()
585 ret = php_win32_ioutil_mkdir_w(pathw, mode); in php_win32_ioutil_mkdir()
659 if (!pathw) { in php_win32_ioutil_realpath_ex0()
664 if (NULL == php_win32_ioutil_realpath_w_ex0(pathw, retw, info)) { in php_win32_ioutil_realpath_ex0()
764 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
767 if (!pathw) { in php_win32_ioutil_stat_ex()
772 ret = php_win32_ioutil_stat_ex_w(pathw, pathw_len, buf, lstat); in php_win32_ioutil_stat_ex()
774 free(pathw); in php_win32_ioutil_stat_ex()
786 wchar_t *pathw = php_win32_ioutil_conv_any_to_w(path, PHP_WIN32_CP_IGNORE_LEN, &pathw_len); in php_win32_ioutil_readlink() local
791 if (!pathw) { in php_win32_ioutil_readlink()
796 ret = php_win32_ioutil_readlink_w(pathw, retw, sizeof(retw)-1); in php_win32_ioutil_readlink()
799 free(pathw); in php_win32_ioutil_readlink()
807 free(pathw); in php_win32_ioutil_readlink()
814 free(pathw); in php_win32_ioutil_readlink()