Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 81) sorted by relevance

1234

/curl/src/
H A Dtool_getparam.c621 if(err) in data_urlencode()
626 if(err) in data_urlencode()
671 return err; in data_urlencode()
833 if(!err) { in url_query()
847 return err; in url_query()
862 if(err) in set_data()
895 if(err) in set_data()
908 if(err) in set_data()
928 return err; in set_data()
954 if(err) in set_rate()
[all …]
H A Dtool_xattr.c87 int err = 0; in xattr() local
96 err = fsetxattr(fd, attr, value, strlen(value), 0, 0); in xattr()
98 err = fsetxattr(fd, attr, value, strlen(value), 0); in xattr()
105 err = (rc < 0 ? -1 : 0); in xattr()
109 return err; in xattr()
117 int err = xattr(fd, "user.creator", "curl"); in fwrite_xattr() local
120 while(!err && mappings[i].attr) { in fwrite_xattr()
124 err = xattr(fd, mappings[i].attr, value); in fwrite_xattr()
127 if(!err) { in fwrite_xattr()
131 err = xattr(fd, "user.xdg.origin.url", nurl); in fwrite_xattr()
[all …]
H A Dvar.c107 while(*f && !err) { in varfunc()
158 if(err) in varfunc()
178 if(err) in varfunc()
195 err = PARAM_NO_MEM; in varfunc()
202 if(err) in varfunc()
204 return err; in varfunc()
302 if(err) in varexpand()
446 if(err) in setvariable()
447 return err; in setvariable()
460 if(err) { in setvariable()
[all …]
/curl/.github/scripts/
H A Dspacecheck.pl101 my @err = ();
105 push @err, "content: has tab";
112 push @err, "content: has mixed EOL types";
117 push @err, "content: must use CRLF EOL for this file type";
123 push @err, "content: must use LF EOL for this file type";
128 push @err, "content: has line-ending whitespace";
134 push @err, "content: has no EOL at EOF";
139 push @err, "content: has multiple EOL at EOF";
142 if (@err) {
144 foreach my $err (@err) {
[all …]
/curl/lib/
H A Dcurl_gethostname.c54 int err; in Curl_gethostname()
66 err = 0; in Curl_gethostname()
70 err = gethostname(name, namelen); in Curl_gethostname()
76 err = gethostname(name, namelen); in Curl_gethostname()
82 if(err) in Curl_gethostname()
83 return err; in Curl_gethostname()
H A Dstrerror.c592 (void)err; in get_winsock_error()
595 switch(err) { in get_winsock_error()
846 DEBUGASSERT(err >= 0); in Curl_strerror()
854 if(err >= 0 && err < sys_nerr) in Curl_strerror()
864 msnprintf(buf, buflen, "Unknown error %d (%#x)", err, err); in Curl_strerror()
895 const char *msg = strerror(err); in Curl_strerror()
943 msnprintf(buf, buflen, "Unknown error %lu (0x%08lX)", err, err); in Curl_winapi_strerror()
985 switch(err) { in Curl_sspi_strerror()
1078 if(err == SEC_E_ILLEGAL_MESSAGE) { in Curl_sspi_strerror()
1083 err); in Curl_sspi_strerror()
[all …]
H A Dhttp1.c93 *err = CURLE_AGAIN; in detect_line()
98 *err = CURLE_OK; in detect_line()
119 if(*err) in next_line()
125 if(*err) in next_line()
128 else if(*err == CURLE_AGAIN) { in next_line()
268 *err = CURLE_OK; in Curl_h1_req_parse_read()
272 if(*err != CURLE_AGAIN) { in Curl_h1_req_parse_read()
275 *err = CURLE_OK; in Curl_h1_req_parse_read()
291 if(*err) { in Curl_h1_req_parse_read()
299 *err = CURLE_URL_MALFORMAT; in Curl_h1_req_parse_read()
[all …]
H A Dbufq.c121 *err = CURLE_AGAIN; in chunk_slurpn()
473 *err = CURLE_AGAIN; in Curl_bufq_write()
476 *err = CURLE_OK; in Curl_bufq_write()
506 *err = CURLE_OK; in Curl_bufq_read()
517 *err = CURLE_AGAIN; in Curl_bufq_read()
621 *err = CURLE_OK; in Curl_bufq_write_pass()
661 *err = CURLE_OK; in Curl_bufq_write_pass()
672 *err = CURLE_AGAIN; in Curl_bufq_sipn()
690 *err = CURLE_OK; in Curl_bufq_sipn()
710 *err = CURLE_AGAIN; in bufq_slurpn()
[all …]
H A Dbufq.h179 CURLcode *err);
198 CURLcode *err);
227 CURLcode *err); typedef
238 void *writer_ctx, CURLcode *err);
242 CURLcode *err); typedef
254 void *reader_ctx, CURLcode *err);
264 CURLcode *err);
276 CURLcode *err);
H A Dstrerror.h31 const char *Curl_strerror(int err, char *buf, size_t buflen);
33 const char *Curl_winapi_strerror(DWORD err, char *buf, size_t buflen);
36 const char *Curl_sspi_strerror(int err, char *buf, size_t buflen);
H A Didn.c100 UErrorCode err = U_ZERO_ERROR; in mac_idn_to_ascii() local
102 UIDNA_CHECK_BIDI|UIDNA_NONTRANSITIONAL_TO_ASCII, &err); in mac_idn_to_ascii()
103 if(!U_FAILURE(err)) { in mac_idn_to_ascii()
107 buffer, sizeof(buffer) - 1, &info, &err); in mac_idn_to_ascii()
109 if(!U_FAILURE(err) && !info.errors) { in mac_idn_to_ascii()
128 UErrorCode err = U_ZERO_ERROR; in mac_ascii_to_idn() local
130 UIDNA_CHECK_BIDI|UIDNA_NONTRANSITIONAL_TO_UNICODE, &err); in mac_ascii_to_idn()
131 if(!U_FAILURE(err)) { in mac_ascii_to_idn()
135 sizeof(buffer) - 1, &info, &err); in mac_ascii_to_idn()
137 if(!U_FAILURE(err)) { in mac_ascii_to_idn()
H A Dhttp2.c1814 *err = CURLE_OK; in http2_handle_stream_close()
1824 if(*err) in http2_handle_stream_close()
1830 if(*err) in http2_handle_stream_close()
1834 if(*err) in http2_handle_stream_close()
1839 *err = CURLE_OK; in http2_handle_stream_close()
1935 *err = CURLE_AGAIN; in stream_recv()
2053 if(*err) in cf_h2_recv()
2093 *err = result; in cf_h2_recv()
2176 if(*err) { in h2_submit()
2191 if(*err) { in h2_submit()
[all …]
H A Dcf-h2-proxy.c1301 *err = CURLE_RECV_ERROR; in h2_handle_tunnel_close()
1305 *err = CURLE_OK; in h2_handle_tunnel_close()
1318 *err = CURLE_AGAIN; in tunnel_recv()
1340 *err = CURLE_AGAIN; in tunnel_recv()
1360 *err = CURLE_RECV_ERROR; in cf_h2_proxy_recv()
1367 if(*err) in cf_h2_proxy_recv()
1381 *err = result; in cf_h2_proxy_recv()
1411 *err = CURLE_SEND_ERROR; in cf_h2_proxy_send()
1439 *err = result; in cf_h2_proxy_send()
1448 *err = result; in cf_h2_proxy_send()
[all …]
H A Dcurl_threads.c69 goto err; in Curl_thread_create()
75 goto err; in Curl_thread_create()
79 err: in Curl_thread_create()
/curl/docs/examples/
H A Dhtmltidy.c85 int err; in main() local
101 err = curl_easy_perform(curl); in main()
102 if(!err) { in main()
103 err = tidyParseBuffer(tdoc, &docbuf); /* parse the input */ in main()
104 if(err >= 0) { in main()
105 err = tidyCleanAndRepair(tdoc); /* fix any problems */ in main()
106 if(err >= 0) { in main()
107 err = tidyRunDiagnostics(tdoc); /* load tidy error buffer */ in main()
108 if(err >= 0) { in main()
123 return err; in main()
/curl/tests/
H A Drunner.pm633 my $err;
1299 return $err;
1337 my $err;
1339 if((!defined $err && ! $!{EINTR}) || (defined $err && $err == 0)) {
1359 my $err;
1362 if((!defined $err && ! $!{EINTR}) || (defined $err && $err == 0)) {
1371 if((!defined $err && ! $!{EINTR}) || (defined $err && $err == 0)) {
1447 my $err;
1450 if((!defined $err && ! $!{EINTR}) || (defined $err && $err == 0)) {
1461 if((!defined $err && ! $!{EINTR}) || (defined $err && $err == 0)) {
[all …]
/curl/lib/vtls/
H A Dsectransp.c727 OSStatus err; in sectransp_set_ssl_version_min_max() local
911 OSStatus err; in sectransp_set_default_ciphers() local
956 OSStatus err; in sectransp_set_selected_ciphers() local
1293 err);
1434 if(err) {
1804 OSStatus err; local
1818 switch(err) {
2182 OSStatus err; local
2536 OSStatus err; local
2603 OSStatus err; local
[all …]
H A Drustls.c152 *err = CURLE_AGAIN; in tls_recv_more()
159 *err = CURLE_RECV_ERROR; in tls_recv_more()
170 *err = map_error(rresult); in tls_recv_more()
175 *err = CURLE_OK; in tls_recv_more()
256 *err = CURLE_OK; in cr_recv()
260 *err = CURLE_OK; in cr_recv()
264 *err = CURLE_AGAIN; in cr_recv()
350 if(*err) in cr_send()
379 if(*err) { in cr_send()
380 if(CURLE_AGAIN == *err) { in cr_send()
[all …]
H A Dbearssl.c70 CURLcode err; member
140 ca.err = CURLE_OK; in load_cafile()
159 if(ca.err) in load_cafile()
251 ca.err = CURLE_READ_ERROR; in load_cafile()
258 if(ca.err == CURLE_OK) { in load_cafile()
268 return ca.err; in load_cafile()
691 int err; in bearssl_run_until() local
700 switch(err) { in bearssl_run_until()
724 if(err >= 32 && err < 64) in bearssl_run_until()
868 if(*err) in bearssl_send()
[all …]
/curl/scripts/
H A Dsingleuse.pl201 my $err;
213 $err++;
224 $err++;
238 $err++;
244 exit $err;
/curl/lib/vquic/
H A Dcurl_quiche.c428 *err = CURLE_OK; in stream_resp_read()
719 *err = CURLE_OK; in read_pkt_to_send()
836 *err = CURLE_OK; in recv_closed_stream()
906 *err = result; in cf_quiche_recv()
987 if(*err) { in h3_open_stream()
1007 if(*err) { in h3_open_stream()
1055 *err = CURLE_OK; in h3_open_stream()
1105 if(*err) { in cf_quiche_send()
1145 *err = result; in cf_quiche_send()
1486 int err; in cf_quiche_shutdown() local
[all …]
H A Dcurl_msh3.c522 *err = CURLE_RECV_ERROR; in recv_closed_stream()
528 *err = CURLE_PARTIAL_FILE; in recv_closed_stream()
535 *err = CURLE_HTTP3; in recv_closed_stream()
542 *err = CURLE_OK; in recv_closed_stream()
576 *err = CURLE_RECV_ERROR; in cf_msh3_recv()
585 *err = stream->recv_error; in cf_msh3_recv()
589 *err = CURLE_OK; in cf_msh3_recv()
607 *err = CURLE_AGAIN; in cf_msh3_recv()
650 if(*err) { in cf_msh3_send()
681 *err = CURLE_OK; in cf_msh3_send()
[all …]
H A Dcurl_osslq.c106 switch(err) { in osslq_SSL_ERROR_to_str()
372 switch(err) { in cf_osslq_shutdown()
1269 *err = CURLE_OK; in h3_quic_recv()
1671 int err; in cf_osslq_connect() local
1715 if(err == 1) { in cf_osslq_connect()
1806 if(*err) in h3_stream_open()
1825 if(*err) { in h3_stream_open()
1852 if(*err) { in h3_stream_open()
1932 *err = CURLE_OK; in cf_osslq_send()
1936 *err = result; in cf_osslq_send()
[all …]
/curl/tests/unit/
H A Dunit1614.c55 int err = 0; variable
140 err++;
150 err++;
160 err++;
163 fail_if(err, "errors");
H A Dunit1395.c82 int err = dedotdotify(pairs[i].input, strlen(pairs[i].input), &out); variable
83 abort_unless(err == 0, "returned error");
84 abort_if(err && out, "returned error with output");

Completed in 86 milliseconds

1234