Lines Matching refs:ret

141 #define PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, ret, dealloc) do { \  argument
147 return ret; \
162 wchar_t *mb, *ret; in php_win32_ioutil_conv_any_to_w() local
174 ret = (wchar_t *) malloc((mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW + 1) * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
175 if (!ret) { in php_win32_ioutil_conv_any_to_w()
181 free(ret); in php_win32_ioutil_conv_any_to_w()
187 wchar_t *tmp = (wchar_t *) realloc(ret, (new_mb_len + 1) * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
189 free(ret); in php_win32_ioutil_conv_any_to_w()
193 ret = tmp; in php_win32_ioutil_conv_any_to_w()
198 memmove(ret, mb, mb_len * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
199 ret[mb_len] = L'\0'; in php_win32_ioutil_conv_any_to_w()
201 …memmove(ret, PHP_WIN32_IOUTIL_LONG_PATH_PREFIXW, PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW * sizeof(w… in php_win32_ioutil_conv_any_to_w()
202 memmove(ret+PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW, mb, mb_len * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
203 ret[mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW] = L'\0'; in php_win32_ioutil_conv_any_to_w()
210 ret = mb; in php_win32_ioutil_conv_any_to_w()
217 return ret; in php_win32_ioutil_conv_any_to_w()
255 int ret, err; in php_win32_ioutil_access()
264 ret = _waccess(pathw, mode); in php_win32_ioutil_access()
265 if (0 > ret) { in php_win32_ioutil_access()
270 if (0 > ret) { in php_win32_ioutil_access()
274 return ret; in php_win32_ioutil_access()
281 int ret = -1; in php_win32_ioutil_open()
299 ret = php_win32_ioutil_open_w(pathw, flags, mode); in php_win32_ioutil_open()
300 if (0 > ret) { in php_win32_ioutil_open()
305 if (0 > ret) { in php_win32_ioutil_open()
309 return ret; in php_win32_ioutil_open()
315 int ret = 0; in php_win32_ioutil_unlink()
327 ret = -1; in php_win32_ioutil_unlink()
331 if (0 > ret) { in php_win32_ioutil_unlink()
335 return ret; in php_win32_ioutil_unlink()
341 int ret = 0; in php_win32_ioutil_rmdir()
353 ret = -1; in php_win32_ioutil_rmdir()
358 if (0 > ret) { in php_win32_ioutil_rmdir()
362 return ret; in php_win32_ioutil_rmdir()
370 FILE *ret; in php_win32_ioutil_fopen() local
390 ret = _wfopen(pathw, modew); in php_win32_ioutil_fopen()
391 if (!ret) { in php_win32_ioutil_fopen()
397 if (!ret) { in php_win32_ioutil_fopen()
400 return ret; in php_win32_ioutil_fopen()
407 int ret; in php_win32_ioutil_rename() local
429 ret = php_win32_ioutil_rename_w(oldnamew, newnamew); in php_win32_ioutil_rename()
430 if (0 > ret) { in php_win32_ioutil_rename()
437 if (0 > ret) { in php_win32_ioutil_rename()
441 return ret; in php_win32_ioutil_rename()
446 int ret; in php_win32_ioutil_chdir() local
455 ret = php_win32_ioutil_chdir_w(pathw); in php_win32_ioutil_chdir()
456 if (0 > ret) { in php_win32_ioutil_chdir()
462 if (0 > ret) { in php_win32_ioutil_chdir()
466 return ret; in php_win32_ioutil_chdir()
514 int ret; in php_win32_ioutil_chmod() local
523 ret = _wchmod(pathw, mode); in php_win32_ioutil_chmod()
524 if (0 > ret) { in php_win32_ioutil_chmod()
530 if (0 > ret) { in php_win32_ioutil_chmod()
534 return ret; in php_win32_ioutil_chmod()