Lines Matching refs:ret_len
524 size_t ret_len, len_adjust = 0, pathw_len; in php_win32_ioutil_dirname() local
586 ret_len = (endw + 1 - startw); in php_win32_ioutil_dirname()
587 if (PHP_WIN32_IOUTIL_IS_LONG_PATHW(startw, ret_len)) { in php_win32_ioutil_dirname()
588 …artw + PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW, ret_len - PHP_WIN32_IOUTIL_LONG_PATH_PREFIX_LENW, &… in php_win32_ioutil_dirname()
590 ret = php_win32_ioutil_conv_w_to_any(startw, ret_len, &ret_len); in php_win32_ioutil_dirname()
592 memmove(start, ret, ret_len+1); in php_win32_ioutil_dirname()
593 assert(start[ret_len] == '\0'); in php_win32_ioutil_dirname()
597 return ret_len; in php_win32_ioutil_dirname()
604 size_t ret_len = len; in php_win32_ioutil_normalize_path_w() local
627 ret_len = wcslen(canonicalw); in php_win32_ioutil_normalize_path_w()
628 if (ret_len != len) { in php_win32_ioutil_normalize_path_w()
629 if (ret_len > len) { in php_win32_ioutil_normalize_path_w()
630 wchar_t *tmp = realloc(*buf, (ret_len + 1) * sizeof(wchar_t)); in php_win32_ioutil_normalize_path_w()
639 memmove(*buf, canonicalw, (ret_len + 1) * sizeof(wchar_t)); in php_win32_ioutil_normalize_path_w()
641 *new_len = ret_len; in php_win32_ioutil_normalize_path_w()
734 DWORD ret_len, ret_real_len; in php_win32_ioutil_realpath_h() local
736 …ret_len = GetFinalPathNameByHandleW(h, ret, PHP_WIN32_IOUTIL_MAXPATHLEN-1, FILE_NAME_NORMALIZED | … in php_win32_ioutil_realpath_h()
737 if (0 == ret_len) { in php_win32_ioutil_realpath_h()
741 } else if (ret_len > PHP_WIN32_IOUTIL_MAXPATHLEN) { in php_win32_ioutil_realpath_h()
748 *resolved = (wchar_t *) malloc((ret_len + 1)*sizeof(wchar_t)); in php_win32_ioutil_realpath_h()
756 ret_real_len = ret_len; in php_win32_ioutil_realpath_h()
761 } else if (PHP_WIN32_IOUTIL_IS_LONG_PATHW(ret, ret_len)) { in php_win32_ioutil_realpath_h()
778 size_t ret_len; in php_win32_ioutil_realpath_w_ex0() local
795 ret_len = php_win32_ioutil_realpath_h(h, &resolved); in php_win32_ioutil_realpath_w_ex0()
796 if ((size_t)-1 == ret_len) { in php_win32_ioutil_realpath_w_ex0()