Lines Matching refs:ret

157 #define PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, ret, dealloc) do { \  argument
164 return ret; \
179 wchar_t *mb, *ret; in php_win32_ioutil_conv_any_to_w() local
191 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()
192 if (!ret) { in php_win32_ioutil_conv_any_to_w()
198 free(ret); in php_win32_ioutil_conv_any_to_w()
204 wchar_t *tmp = (wchar_t *) realloc(ret, (new_mb_len + 1) * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
206 free(ret); in php_win32_ioutil_conv_any_to_w()
210 ret = tmp; in php_win32_ioutil_conv_any_to_w()
215 memmove(ret, mb, mb_len * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
216 ret[mb_len] = L'\0'; in php_win32_ioutil_conv_any_to_w()
218 wchar_t *src = mb, *dst = ret + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW; in php_win32_ioutil_conv_any_to_w()
219 …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()
228 ret[mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW] = L'\0'; in php_win32_ioutil_conv_any_to_w()
235 ret = mb; in php_win32_ioutil_conv_any_to_w()
242 return ret; in php_win32_ioutil_conv_any_to_w()
276 int ret, err; in php_win32_ioutil_access()
285 ret = php_win32_ioutil_access_w(pathw, mode); in php_win32_ioutil_access()
286 if (0 > ret) { in php_win32_ioutil_access()
291 if (0 > ret) { in php_win32_ioutil_access()
295 return ret; in php_win32_ioutil_access()
302 int ret = -1; in php_win32_ioutil_open()
320 ret = php_win32_ioutil_open_w(pathw, flags, mode); in php_win32_ioutil_open()
321 if (0 > ret) { in php_win32_ioutil_open()
326 if (0 > ret) { in php_win32_ioutil_open()
330 return ret; in php_win32_ioutil_open()
336 int ret = -1; in php_win32_ioutil_unlink()
344 ret = php_win32_ioutil_unlink_w(pathw); in php_win32_ioutil_unlink()
345 if (0 > ret) { in php_win32_ioutil_unlink()
350 if (0 > ret) { in php_win32_ioutil_unlink()
354 return ret; in php_win32_ioutil_unlink()
360 int ret = 0; in php_win32_ioutil_rmdir()
372 ret = -1; in php_win32_ioutil_rmdir()
377 if (0 > ret) { in php_win32_ioutil_rmdir()
381 return ret; in php_win32_ioutil_rmdir()
386 FILE *ret; in php_win32_ioutil_fopen() local
403 ret = php_win32_ioutil_fopen_w(pathw, modew); in php_win32_ioutil_fopen()
404 if (!ret) { in php_win32_ioutil_fopen()
413 return ret; in php_win32_ioutil_fopen()
420 int ret; in php_win32_ioutil_rename() local
445 ret = php_win32_ioutil_rename_w(oldnamew, newnamew); in php_win32_ioutil_rename()
446 if (0 > ret) { in php_win32_ioutil_rename()
453 if (0 > ret) { in php_win32_ioutil_rename()
457 return ret; in php_win32_ioutil_rename()
462 int ret; in php_win32_ioutil_chdir() local
471 ret = php_win32_ioutil_chdir_w(pathw); in php_win32_ioutil_chdir()
472 if (0 > ret) { in php_win32_ioutil_chdir()
478 if (0 > ret) { in php_win32_ioutil_chdir()
482 return ret; in php_win32_ioutil_chdir()
529 int ret; in php_win32_ioutil_chmod() local
538 ret = _wchmod(pathw, mode); in php_win32_ioutil_chmod()
539 if (0 > ret) { in php_win32_ioutil_chmod()
545 if (0 > ret) { in php_win32_ioutil_chmod()
549 return ret; in php_win32_ioutil_chmod()
554 int ret; in php_win32_ioutil_mkdir() local
563 ret = php_win32_ioutil_mkdir_w(pathw, mode); in php_win32_ioutil_mkdir()
564 if (0 > ret) { in php_win32_ioutil_mkdir()
570 if (0 > ret) { in php_win32_ioutil_mkdir()
574 return ret; in php_win32_ioutil_mkdir()