Lines Matching refs:result

196     int result = 0;  in sockopt_callback()  local
200 result = setsockopt(curlfd, SOL_IP, IP_TOS, (void *)&tos, sizeof(tos)); in sockopt_callback()
205 result = setsockopt(curlfd, IPPROTO_IPV6, IPV6_TCLASS, in sockopt_callback()
210 if(result < 0) { in sockopt_callback()
356 CURLcode result = CURLE_OK; in pre_transfer() local
430 return result; in pre_transfer()
454 CURLcode result, in post_per_transfer() argument
467 return result; in post_per_transfer()
483 if(!config->synthetic_error && result && in post_per_transfer()
486 fprintf(tool_stderr, "curl: (%d) %s\n", result, in post_per_transfer()
487 (msg && msg[0]) ? msg : curl_easy_strerror(result)); in post_per_transfer()
488 if(result == CURLE_PEER_FAILED_VERIFICATION) in post_per_transfer()
500 result = CURLE_HTTP_RETURNED_ERROR; in post_per_transfer()
504 if(!result && config->xattr && outs->fopened && outs->stream) { in post_per_transfer()
511 if(!result && !outs->stream && !outs->bytes) { in post_per_transfer()
520 result = CURLE_WRITE_ERROR; in post_per_transfer()
526 if(!result && rc) { in post_per_transfer()
528 result = CURLE_WRITE_ERROR; in post_per_transfer()
555 if((CURLE_OPERATION_TIMEDOUT == result) || in post_per_transfer()
556 (CURLE_COULDNT_RESOLVE_HOST == result) || in post_per_transfer()
557 (CURLE_COULDNT_RESOLVE_PROXY == result) || in post_per_transfer()
558 (CURLE_FTP_ACCEPT_TIMEOUT == result)) in post_per_transfer()
562 (CURLE_COULDNT_CONNECT == result)) { in post_per_transfer()
568 else if((CURLE_OK == result) || in post_per_transfer()
570 (CURLE_HTTP_RETURNED_ERROR == result))) { in post_per_transfer()
603 else if(result) { in post_per_transfer()
619 if(result && !retry && config->retry_all_errors) in post_per_transfer()
719 if(!result && rc) { in post_per_transfer()
721 result = CURLE_WRITE_ERROR; in post_per_transfer()
722 errorf(config->global, "curl: (%d) Failed writing body", result); in post_per_transfer()
724 if(result && config->rm_partial) { in post_per_transfer()
740 if(!result && config->remote_time && outs->s_isreg && outs->filename) { in post_per_transfer()
749 ourWriteOut(config, per, result); in post_per_transfer()
774 return result; in post_per_transfer()
785 CURLcode result = CURLE_OK; in url_proto_and_rewrite() local
802 result = ipfs_url_rewrite(uh, schemep, url, config); in url_proto_and_rewrite()
808 if(result) in url_proto_and_rewrite()
820 result = CURLE_OUT_OF_MEMORY; in url_proto_and_rewrite()
823 return result; in url_proto_and_rewrite()
888 CURLcode result = url_proto_and_rewrite(&per->url, config, &use_proto); in config2setopts() local
891 if(!result) in config2setopts()
892 result = curl_easy_setopt(curl, CURLOPT_SHARE, share); in config2setopts()
893 if(result) in config2setopts()
894 return result; in config2setopts()
902 result = curl_easy_setopt(curl, CURLOPT_QUICK_EXIT, 1L); in config2setopts()
903 if(result) in config2setopts()
904 return result; in config2setopts()
969 if(config->proxy && result) { in config2setopts()
1038 result = CURLE_FAILED_INIT; in config2setopts()
1053 result = CURLE_FAILED_INIT; in config2setopts()
1056 result = tool2curlmime(curl, config->mimeroot, &config->mimepost); in config2setopts()
1057 if(!result) in config2setopts()
1064 if(result) in config2setopts()
1065 return result; in config2setopts()
1126 if(result) { in config2setopts()
1128 return result; in config2setopts()
1176 result = res_setopt_str(curl, CURLOPT_SSH_KNOWNHOSTS, known); in config2setopts()
1178 if(result == CURLE_UNKNOWN_OPTION) in config2setopts()
1180 result = CURLE_OK; in config2setopts()
1181 if(result) in config2setopts()
1182 return result; in config2setopts()
1195 result = res_setopt_str(curl, CURLOPT_CAPATH, config->capath); in config2setopts()
1196 if(result == CURLE_NOT_BUILT_IN) { in config2setopts()
1202 else if(result) in config2setopts()
1203 return result; in config2setopts()
1208 result = res_setopt_str(curl, CURLOPT_PROXY_CAPATH, in config2setopts()
1212 if((result == CURLE_NOT_BUILT_IN) || in config2setopts()
1213 (result == CURLE_UNKNOWN_OPTION)) { in config2setopts()
1220 else if(result) in config2setopts()
1221 return result; in config2setopts()
1233 result = curl_easy_setopt(curl, CURLOPT_CAINFO_BLOB, &blob); in config2setopts()
1234 if(result == CURLE_NOT_BUILT_IN) { in config2setopts()
1247 result = curl_easy_setopt(curl, CURLOPT_PROXY_CAINFO_BLOB, &blob); in config2setopts()
1248 if(result == CURLE_NOT_BUILT_IN) { in config2setopts()
1263 result = res_setopt_str(curl, CURLOPT_PINNEDPUBLICKEY, in config2setopts()
1265 if(result == CURLE_NOT_BUILT_IN) in config2setopts()
1270 result = res_setopt_str(curl, CURLOPT_PROXY_PINNEDPUBLICKEY, in config2setopts()
1272 if(result == CURLE_NOT_BUILT_IN) in config2setopts()
1381 result = curlx_dyn_addf(&cookies, "%s", cl->data); in config2setopts()
1383 result = curlx_dyn_addf(&cookies, ";%s", cl->data); in config2setopts()
1385 if(result) { in config2setopts()
1389 return result; in config2setopts()
1460 result = res_setopt_str(curl, CURLOPT_SSL_CIPHER_LIST, in config2setopts()
1462 if(result == CURLE_NOT_BUILT_IN) in config2setopts()
1467 result = res_setopt_str(curl, CURLOPT_PROXY_SSL_CIPHER_LIST, in config2setopts()
1469 if(result == CURLE_NOT_BUILT_IN) in config2setopts()
1474 result = res_setopt_str(curl, CURLOPT_TLS13_CIPHERS, in config2setopts()
1476 if(result == CURLE_NOT_BUILT_IN) in config2setopts()
1481 result = res_setopt_str(curl, CURLOPT_PROXY_TLS13_CIPHERS, in config2setopts()
1483 if(result == CURLE_NOT_BUILT_IN) in config2setopts()
1506 result = res_setopt_str(curl, CURLOPT_SSLENGINE, config->engine); in config2setopts()
1507 if(result) in config2setopts()
1508 return result; in config2setopts()
1755 result = CURLE_NOT_BUILT_IN; in config2setopts()
1760 result = CURLE_NOT_BUILT_IN; in config2setopts()
1764 return result; in config2setopts()
1772 CURLcode result = CURLE_OK; in append2query() local
1779 result = urlerr_cvt(uerr); in append2query()
1781 "failed to set query", result); in append2query()
1791 result = urlerr_cvt(uerr); in append2query()
1799 return result; in append2query()
1810 CURLcode result = CURLE_OK; in single_transfer() local
1827 result = CURLE_FAILED_INIT; in single_transfer()
1833 result = CURLE_FAILED_INIT; in single_transfer()
1835 if(result) in single_transfer()
1844 result = set_cert_types(config); in single_transfer()
1845 if(result) in single_transfer()
1872 result = CURLE_OUT_OF_MEMORY; in single_transfer()
1879 result = glob_url(&state->inglob, urlnode->infile, &state->infilenum, in single_transfer()
1882 if(result) in single_transfer()
1890 result = glob_next_url(&state->uploadfile, state->inglob); in single_transfer()
1891 if(result == CURLE_OUT_OF_MEMORY) in single_transfer()
1900 if(result) in single_transfer()
1908 result = glob_url(&state->urls, urlnode->url, &state->urlnum, in single_transfer()
1911 if(result) in single_transfer()
1946 result = CURLE_READ_ERROR; in single_transfer()
1963 result = CURLE_OUT_OF_MEMORY; in single_transfer()
1974 result = CURLE_OUT_OF_MEMORY; in single_transfer()
2005 result = add_per_transfer(&per); in single_transfer()
2007 result = CURLE_OUT_OF_MEMORY; in single_transfer()
2008 if(result) { in single_transfer()
2019 result = CURLE_OUT_OF_MEMORY; in single_transfer()
2025 result = CURLE_FAILED_INIT; in single_transfer()
2059 result = create_dir_hierarchy(config->headerfile, global); in single_transfer()
2061 if(result) in single_transfer()
2073 result = CURLE_WRITE_ERROR; in single_transfer()
2101 result = glob_next_url(&per->url, state->urls); in single_transfer()
2102 if(result) in single_transfer()
2108 result = CURLE_OUT_OF_MEMORY; in single_transfer()
2120 result = CURLE_OUT_OF_MEMORY; in single_transfer()
2135 result = get_url_file_name(global, &per->outfile, per->url); in single_transfer()
2136 if(result) { in single_transfer()
2145 result = glob_match_url(&per->outfile, storefile, state->urls); in single_transfer()
2147 if(result) { in single_transfer()
2154 result = CURLE_WRITE_ERROR; in single_transfer()
2163 result = CURLE_WRITE_ERROR; in single_transfer()
2173 result = create_dir_hierarchy(per->outfile, global); in single_transfer()
2175 if(result) in single_transfer()
2220 result = CURLE_WRITE_ERROR; in single_transfer()
2238 result = add_file_name_to_url(per->curl, &per->url, in single_transfer()
2240 if(result) in single_transfer()
2296 result = append2query(global, config, per, in single_transfer()
2298 if(result) in single_transfer()
2324 result = config2setopts(global, config, per, capath_from_env, in single_transfer()
2326 if(result) in single_transfer()
2364 if(!*added || result) { in single_transfer()
2368 return result; in single_transfer()
2385 CURLcode result = CURLE_OK; in add_parallel_transfers() local
2394 result = create_transfer(global, share, addedp, &skipped); in add_parallel_transfers()
2395 if(result) in add_parallel_transfers()
2396 return result; in add_parallel_transfers()
2411 result = pre_transfer(global, per); in add_parallel_transfers()
2412 if(result) in add_parallel_transfers()
2413 return result; in add_parallel_transfers()
2435 result = CURLE_OUT_OF_MEMORY; in add_parallel_transfers()
2438 if(!result) { in add_parallel_transfers()
2442 result = create_transfer(global, share, &getadded, &skipped); in add_parallel_transfers()
2443 if(result) in add_parallel_transfers()
2447 if(result) { in add_parallel_transfers()
2449 return result; in add_parallel_transfers()
2467 CURLcode result; member
2500 CURLcode result; in check_multi_info() local
2502 result = check_finished(uv->s); in check_multi_info()
2503 if(result && !uv->s->result) in check_multi_info()
2504 uv->s->result = result; in check_multi_info()
2507 result = add_parallel_transfers(uv->s->global, uv->s->multi, in check_multi_info()
2511 if(result && !uv->s->result) in check_multi_info()
2512 uv->s->result = result; in check_multi_info()
2513 if(result) in check_multi_info()
2638 CURLcode result = CURLE_OK; in parallel_event() local
2641 s->result = CURLE_OK; in parallel_event()
2667 result = check_finished(s); in parallel_event()
2668 if(result && !s->result) in parallel_event()
2669 s->result = result; in parallel_event()
2685 result = add_parallel_transfers(s->global, s->multi, s->share, in parallel_event()
2687 if(result && !s->result) in parallel_event()
2688 s->result = result; in parallel_event()
2695 s->result, s->mcode, uv.s->still_running, s->more_transfers); in parallel_event()
2697 return s->result; in parallel_event()
2704 CURLcode result = CURLE_OK; in check_finished() local
2717 CURLcode tres = msg->data.result; in check_finished()
2739 if(tres && (!ended->abort || !result)) in check_finished()
2740 result = tres; in check_finished()
2741 if(is_fatal_error(result) || (result && global->fail_early)) in check_finished()
2761 result = tres; in check_finished()
2766 if(is_fatal_error(result) || (result && global->fail_early)) in check_finished()
2769 return result; in check_finished()
2775 CURLcode result; in parallel_transfers() local
2780 s->result = CURLE_OK; in parallel_transfers()
2791 result = add_parallel_transfers(global, s->multi, s->share, in parallel_transfers()
2793 if(result) { in parallel_transfers()
2795 return result; in parallel_transfers()
2801 result = parallel_event(s); in parallel_transfers()
2830 result = check_finished(s); in parallel_transfers()
2838 result = (s->mcode == CURLM_OUT_OF_MEMORY) ? CURLE_OUT_OF_MEMORY : in parallel_transfers()
2846 return result; in parallel_transfers()
2853 CURLcode result = CURLE_OK; in serial_transfers() local
2858 result = create_transfer(global, share, &added, &skipped); in serial_transfers()
2859 if(result) in serial_transfers()
2860 return result; in serial_transfers()
2873 result = pre_transfer(global, per); in serial_transfers()
2874 if(result) in serial_transfers()
2878 result = easysrc_perform(); in serial_transfers()
2879 if(result) in serial_transfers()
2892 result = CURLE_OUT_OF_MEMORY; in serial_transfers()
2899 result = curl_easy_perform_ev(per->curl); in serial_transfers()
2902 result = curl_easy_perform(per->curl); in serial_transfers()
2905 returncode = post_per_transfer(global, per, result, &retry, &delay_ms); in serial_transfers()
2917 result = create_transfer(global, share, &added, &skipped); in serial_transfers()
2918 if(result) { in serial_transfers()
2919 returncode = result; in serial_transfers()
2945 result = returncode; in serial_transfers()
2947 if(result) in serial_transfers()
2950 return result; in serial_transfers()
2955 CURLcode result = CURLE_OK; in is_using_schannel() local
2965 result = CURLE_OUT_OF_MEMORY; in is_using_schannel()
2967 result = curl_easy_getinfo(curltls, CURLINFO_TLS_SSL_PTR, in is_using_schannel()
2969 if(!result) in is_using_schannel()
2974 if(result) in is_using_schannel()
2975 return result; in is_using_schannel()
2978 return result; in is_using_schannel()
2992 CURLcode result = CURLE_OUT_OF_MEMORY; in cacertpaths() local
3027 result = FindWin32CACert(config, TEXT("curl-ca-bundle.crt")); in cacertpaths()
3028 if(result) in cacertpaths()
3036 return result; in cacertpaths()
3046 CURLcode result = CURLE_OK; in transfer_per_config() local
3072 result = is_using_schannel(&using_schannel); in transfer_per_config()
3078 if(!result && !using_schannel) in transfer_per_config()
3079 result = cacertpaths(config); in transfer_per_config()
3082 if(!result) in transfer_per_config()
3083 result = single_transfer(global, config, share, capath_from_env, added, in transfer_per_config()
3086 return result; in transfer_per_config()
3098 CURLcode result = CURLE_OK; in create_transfer() local
3101 result = transfer_per_config(global, global->current, share, added, in create_transfer()
3103 if(!result && !*added) { in create_transfer()
3110 return result; in create_transfer()
3115 CURLcode result) in run_all_transfers() argument
3123 if(!result) { in run_all_transfers()
3125 result = parallel_transfers(global, share); in run_all_transfers()
3127 result = serial_transfers(global, share); in run_all_transfers()
3134 CURLcode result2 = post_per_transfer(global, per, result, &retry, &delay); in run_all_transfers()
3135 if(!result) in run_all_transfers()
3137 result = result2; in run_all_transfers()
3150 return result; in run_all_transfers()
3155 CURLcode result = CURLE_OK; in operate() local
3173 result = CURLE_FAILED_INIT; in operate()
3179 if(!result) { in operate()
3183 result = CURLE_OK; in operate()
3204 result = CURLE_UNSUPPORTED_PROTOCOL; in operate()
3206 result = CURLE_READ_ERROR; in operate()
3208 result = CURLE_FAILED_INIT; in operate()
3213 result = easysrc_init(); in operate()
3217 if(!result) { in operate()
3226 result = CURLE_OUT_OF_MEMORY; in operate()
3229 if(!result) { in operate()
3240 result = get_args(operation, count++); in operate()
3243 } while(!result && operation); in operate()
3249 result = run_all_transfers(global, share, result); in operate()
3268 return result; in operate()