Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 50) sorted by relevance

12

/curl/lib/
H A Dstrerror.c782 if(!buflen) in get_winapi_error()
842 if(!buflen) in Curl_strerror()
863 !get_winapi_error(err, buf, buflen)) in Curl_strerror()
874 if(0 != strerror_r(err, buf, buflen)) { in Curl_strerror()
888 msnprintf(buf, buflen, "%s", msg); in Curl_strerror()
897 msnprintf(buf, buflen, "%s", msg); in Curl_strerror()
936 if(!buflen) in Curl_winapi_strerror()
948 if(strlen(txt) < buflen) in Curl_winapi_strerror()
978 if(!buflen) in Curl_sspi_strerror()
1079 msnprintf(buf, buflen, in Curl_sspi_strerror()
[all …]
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 Dws.c653 len = buflen; in ws_enc_write_payload()
857 size_t buflen; member
898 nwritten = CURLMIN(buflen, ctx->buflen - ctx->bufidx); in ws_client_collect()
962 ctx.buflen = buflen; in curl_ws_recv()
1060 while(buflen) { in ws_send_raw_blocking()
1066 buflen -= nwritten; in ws_send_raw_blocking()
1067 if(buflen) { in ws_send_raw_blocking()
1104 if(!buflen) in ws_send_raw()
1225 if(buflen) { in curl_ws_send()
1368 (void)buflen; in curl_ws_recv()
[all …]
H A Dhttp1.c85 const char *buf, const size_t buflen, in detect_line() argument
91 line_end = memchr(buf, '\n', buflen); in detect_line()
103 const char *buf, const size_t buflen, int options, in next_line() argument
114 nread = detect_line(parser, buf, buflen, err); in next_line()
130 *err = Curl_dyn_addn(&parser->scratch, (const unsigned char *)buf, buflen); in next_line()
131 nread = (*err) ? -1 : (ssize_t)buflen; in next_line()
262 const char *buf, size_t buflen, in Curl_h1_req_parse_read() argument
270 n = next_line(parser, buf, buflen, options, err); in Curl_h1_req_parse_read()
282 buflen -= (size_t)n; in Curl_h1_req_parse_read()
286 if(!buflen) in Curl_h1_req_parse_read()
H A Dc-hyper.h47 uint8_t *buf, size_t buflen);
49 const uint8_t *buf, size_t buflen);
H A Deasyif.h31 size_t buflen, size_t *n);
H A Durlapi-int.h28 size_t Curl_is_absolute_url(const char *url, char *buf, size_t buflen,
H A Dsetup-os400.h133 extern int Curl_os400_sendto(int sd, char *buffer, int buflen, int flags,
135 extern int Curl_os400_recvfrom(int sd, char *buffer, int buflen, int flags,
H A Dhmac.c149 const unsigned char *buf, const size_t buflen, in Curl_hmacit() argument
159 Curl_HMAC_update(ctxt, buf, curlx_uztoui(buflen)); in Curl_hmacit()
H A Dhttp1.h52 const char *buf, size_t buflen,
H A Dc-hyper.c79 uint8_t *buf, size_t buflen) in Curl_hyper_recv() argument
89 DEBUGF(infof(data, "Curl_hyper_recv(%zu)", buflen)); in Curl_hyper_recv()
91 (char *)buf, buflen, &nread); in Curl_hyper_recv()
94 DEBUGF(infof(data, "Curl_hyper_recv(%zu) -> EAGAIN", buflen)); in Curl_hyper_recv()
108 DEBUGF(infof(data, "Curl_hyper_recv(%zu) -> %zd", buflen, nread)); in Curl_hyper_recv()
113 const uint8_t *buf, size_t buflen) in Curl_hyper_send() argument
120 DEBUGF(infof(data, "Curl_hyper_send(%zu)", buflen)); in Curl_hyper_send()
122 (void *)buf, buflen, FALSE, &nwrote); in Curl_hyper_send()
124 DEBUGF(infof(data, "Curl_hyper_send(%zu) -> EAGAIN", buflen)); in Curl_hyper_send()
139 DEBUGF(infof(data, "Curl_hyper_send(%zu) -> %zd", buflen, nwrote)); in Curl_hyper_send()
/curl/src/
H A Dtool_getpass.c62 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
84 &iosb, 0, 0, buffer, buflen, 0, 0, in getpass_r()
99 char *getpass_r(const char *prompt, char *buffer, size_t buflen) in getpass_r() argument
104 for(i = 0; i < buflen; i++) { in getpass_r()
119 if(i == buflen) in getpass_r()
120 buffer[buflen-1] = '\0'; in getpass_r()
177 size_t buflen) /* size of buffer to store password in */ in getpass_r() argument
188 nread = read(fd, password, buflen); in getpass_r()
H A Dtool_getpass.h35 char *getpass_r(const char *prompt, char *buffer, size_t buflen);
H A Dtool_urlglob.c535 size_t buflen = glob->urllen + 1; in glob_next_url() local
589 msnprintf(buf, buflen, "%s", in glob_next_url()
593 buflen -= len; in glob_next_url()
597 if(buflen) { in glob_next_url()
600 buflen--; in glob_next_url()
604 msnprintf(buf, buflen, "%0*" CURL_FORMAT_CURL_OFF_T, in glob_next_url()
609 buflen -= len; in glob_next_url()
/curl/tests/unit/
H A Dunit2603.c74 size_t buflen, i, in_len, in_consumed; in parse_success() local
82 buflen = strlen(buf); in parse_success()
83 in_len += buflen; in parse_success()
84 nread = Curl_h1_req_parse_read(&p, buf, buflen, t->default_scheme, in parse_success()
91 if((size_t)nread != buflen) { in parse_success()
94 nread, buflen, buf); in parse_success()
H A Dunit1655.c144 const size_t buflen = sizeof(buffer); variable
154 DOHcode ret = doh_req_encode(sunshine1, dnstype, buffer, buflen, &olen1);
161 ret2 = doh_req_encode(dotshine1, dnstype, buffer, buflen, &olen2);
168 ret2 = doh_req_encode(sunshine2, dnstype, buffer, buflen, &olen2);
/curl/include/curl/
H A Dwebsockets.h55 CURL_EXTERN CURLcode curl_ws_recv(CURL *curl, void *buffer, size_t buflen,
71 size_t buflen, size_t *sent,
H A Deasy.h97 CURL_EXTERN CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen,
109 size_t buflen, size_t *n);
/curl/packages/vms/
H A Dcurl_crtl_init.c72 unsigned short int buflen; member
117 itlst[0].buflen = value_len; in sys_trnlnm()
122 itlst[1].buflen = 0; in sys_trnlnm()
162 item_list[0].buflen = strlen(value); in sys_crelnm()
167 item_list[1].buflen = 0; in sys_crelnm()
/curl/tests/http/clients/
H A Dws-data.c96 static CURLcode send_binary(CURL *curl, char *buf, size_t buflen) in send_binary() argument
100 curl_ws_send(curl, buf, buflen, &nwritten, 0, CURLWS_BINARY); in send_binary()
102 (long)buflen, result, (long)nwritten); in send_binary()
H A Dhx-upload.c177 static size_t my_write_cb(char *buf, size_t nitems, size_t buflen, in my_write_cb() argument
181 size_t blen = (nitems * buflen); in my_write_cb()
194 nwritten = fwrite(buf, nitems, buflen, t->out); in my_write_cb()
203 static size_t my_read_cb(char *buf, size_t nitems, size_t buflen, in my_read_cb() argument
207 size_t blen = (nitems * buflen); in my_read_cb()
/curl/docs/libcurl/
H A Dcurl_ws_recv.md27 CURLcode curl_ws_recv(CURL *curl, void *buffer, size_t buflen,
36 **buffer**, but not more than **buflen** bytes. *recv* is set to the
H A Dcurl_easy_send.md27 size_t buflen, size_t *n);
38 **buffer** is a pointer to the data of length **buflen** that you want
H A Dcurl_easy_recv.md26 CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen, size_t *n);
38 received data. **buflen** is the maximum amount of data you can get in that
H A Dcurl_ws_send.md27 CURLcode curl_ws_send(CURL *curl, const void *buffer, size_t buflen,
37 connection. The *buffer* holds the data to send and it is *buflen*

Completed in 50 milliseconds

12