Lines Matching refs:ret
160 #define PHP_WIN32_IOUTIL_CHECK_PATH_W(pathw, ret, dealloc) do { \ argument
167 return ret; \
177 wchar_t *mb, *ret; in php_win32_ioutil_conv_any_to_w() local
199 …ret = (wchar_t *) malloc((dir_len + mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW + 1) * sizeof(… in php_win32_ioutil_conv_any_to_w()
200 if (!ret) { in php_win32_ioutil_conv_any_to_w()
206 free(ret); in php_win32_ioutil_conv_any_to_w()
212 wchar_t *tmp = (wchar_t *) realloc(ret, (dir_len + new_mb_len + 1) * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
214 free(ret); in php_win32_ioutil_conv_any_to_w()
218 ret = tmp; in php_win32_ioutil_conv_any_to_w()
223 memmove(ret, mb, mb_len * sizeof(wchar_t)); in php_win32_ioutil_conv_any_to_w()
224 ret[mb_len] = L'\0'; in php_win32_ioutil_conv_any_to_w()
226 wchar_t *src = mb, *dst = ret + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW; in php_win32_ioutil_conv_any_to_w()
227 …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()
232 free(ret); in php_win32_ioutil_conv_any_to_w()
248 ret[mb_len + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW + dir_len] = L'\0'; in php_win32_ioutil_conv_any_to_w()
255 ret = mb; in php_win32_ioutil_conv_any_to_w()
262 return ret; in php_win32_ioutil_conv_any_to_w()
298 int ret, err; in php_win32_ioutil_access()
307 ret = php_win32_ioutil_access_w(pathw, mode); in php_win32_ioutil_access()
308 if (0 > ret) { in php_win32_ioutil_access()
313 if (0 > ret) { in php_win32_ioutil_access()
317 return ret; in php_win32_ioutil_access()
324 int ret = -1; in php_win32_ioutil_open()
342 ret = php_win32_ioutil_open_w(pathw, flags, mode); in php_win32_ioutil_open()
343 if (0 > ret) { in php_win32_ioutil_open()
348 if (0 > ret) { in php_win32_ioutil_open()
352 return ret; in php_win32_ioutil_open()
358 int ret = -1; in php_win32_ioutil_unlink()
366 ret = php_win32_ioutil_unlink_w(pathw); in php_win32_ioutil_unlink()
367 if (0 > ret) { in php_win32_ioutil_unlink()
372 if (0 > ret) { in php_win32_ioutil_unlink()
376 return ret; in php_win32_ioutil_unlink()
382 int ret = 0; in php_win32_ioutil_rmdir()
394 ret = -1; in php_win32_ioutil_rmdir()
399 if (0 > ret) { in php_win32_ioutil_rmdir()
403 return ret; in php_win32_ioutil_rmdir()
408 FILE *ret; in php_win32_ioutil_fopen() local
425 ret = php_win32_ioutil_fopen_w(pathw, modew); in php_win32_ioutil_fopen()
426 if (!ret) { in php_win32_ioutil_fopen()
435 return ret; in php_win32_ioutil_fopen()
442 int ret; in php_win32_ioutil_rename() local
467 ret = php_win32_ioutil_rename_w(oldnamew, newnamew); in php_win32_ioutil_rename()
468 if (0 > ret) { in php_win32_ioutil_rename()
475 if (0 > ret) { in php_win32_ioutil_rename()
479 return ret; in php_win32_ioutil_rename()
484 int ret; in php_win32_ioutil_chdir() local
493 ret = php_win32_ioutil_chdir_w(pathw); in php_win32_ioutil_chdir()
494 if (0 > ret) { in php_win32_ioutil_chdir()
500 if (0 > ret) { in php_win32_ioutil_chdir()
504 return ret; in php_win32_ioutil_chdir()
551 int ret; in php_win32_ioutil_chmod() local
560 ret = _wchmod(pathw, mode); in php_win32_ioutil_chmod()
561 if (0 > ret) { in php_win32_ioutil_chmod()
567 if (0 > ret) { in php_win32_ioutil_chmod()
571 return ret; in php_win32_ioutil_chmod()
576 int ret; in php_win32_ioutil_mkdir() local
585 ret = php_win32_ioutil_mkdir_w(pathw, mode); in php_win32_ioutil_mkdir()
586 if (0 > ret) { in php_win32_ioutil_mkdir()
592 if (0 > ret) { in php_win32_ioutil_mkdir()
596 return ret; in php_win32_ioutil_mkdir()
602 int ret; in php_win32_ioutil_symlink() local
617 ret = php_win32_ioutil_symlink_w(targetw, linkw); in php_win32_ioutil_symlink()
622 return ret; in php_win32_ioutil_symlink()
628 int ret; in php_win32_ioutil_link() local
642 ret = php_win32_ioutil_link_w(targetw, linkw); in php_win32_ioutil_link()
647 return ret; in php_win32_ioutil_link()
765 int ret; in php_win32_ioutil_stat_ex() local
772 ret = php_win32_ioutil_stat_ex_w(pathw, pathw_len, buf, lstat); in php_win32_ioutil_stat_ex()
776 return ret; in php_win32_ioutil_stat_ex()
789 ssize_t ret; in php_win32_ioutil_readlink() local
796 ret = php_win32_ioutil_readlink_w(pathw, retw, sizeof(retw)-1); in php_win32_ioutil_readlink()
797 if (ret < 0) { in php_win32_ioutil_readlink()
801 return ret; in php_win32_ioutil_readlink()
804 ret_buf = php_win32_ioutil_conv_w_to_any(retw, ret, &ret_buf_len); in php_win32_ioutil_readlink()