Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 214) sorted by relevance

123456789

/curl/lib/
H A Dbufref.c43 br->len = 0; in Curl_bufref_init()
59 DEBUGASSERT(br->ptr || !br->len); in Curl_bufref_free()
66 br->len = 0; in Curl_bufref_free()
76 DEBUGASSERT(ptr || !len); in Curl_bufref_set()
81 br->len = len; in Curl_bufref_set()
92 DEBUGASSERT(br->ptr || !br->len); in Curl_bufref_ptr()
104 DEBUGASSERT(br->ptr || !br->len); in Curl_bufref_len()
106 return br->len; in Curl_bufref_len()
115 DEBUGASSERT(br->ptr || !br->len); in Curl_bufref_memdup()
116 DEBUGASSERT(ptr || !len); in Curl_bufref_memdup()
[all …]
H A Dinet_ntop.c64 size_t len; in inet_ntop4() local
75 len = strlen(tmp); in inet_ntop4()
76 if(len == 0 || len >= size) { in inet_ntop4()
100 int len; in inet_ntop6() member
115 best.len = 0; in inet_ntop6()
116 cur.len = 0; in inet_ntop6()
121 cur.base = i; cur.len = 1; in inet_ntop6()
124 cur.len++; in inet_ntop6()
127 if(best.base == -1 || cur.len > best.len) in inet_ntop6()
132 if((cur.base != -1) && (best.base == -1 || cur.len > best.len)) in inet_ntop6()
[all …]
H A Dcurl_trc.c93 int len; in Curl_failf() local
103 error[len] = '\0'; in Curl_failf()
120 int len = 0; in trc_infof() local
124 len += mvsnprintf(buffer + len, MAXINFO - len, fmt, ap); in trc_infof()
125 buffer[len++] = '\n'; in trc_infof()
126 buffer[len] = '\0'; in trc_infof()
147 int len = 0; in Curl_trc_cf_infof() local
150 len += msnprintf(buffer + len, MAXINFO - len, "[%s] ", in Curl_trc_cf_infof()
153 len += msnprintf(buffer + len, MAXINFO - len, "[%s-%d] ", in Curl_trc_cf_infof()
156 len += msnprintf(buffer + len, MAXINFO - len, "[%s] ", cf->cft->name); in Curl_trc_cf_infof()
[all …]
H A Dcurl_gssapi.c96 char *buf, size_t len) { in display_gss_error() argument
110 if(GSS_LOG_BUFFER_LEN > len + status_string.length + 3) { in display_gss_error()
111 len += msnprintf(buf + len, GSS_LOG_BUFFER_LEN - len, in display_gss_error()
119 return len; in display_gss_error()
138 size_t len = 0; in Curl_gss_log_error() local
141 len = display_gss_error(major, GSS_C_GSS_CODE, buf, len); in Curl_gss_log_error()
143 display_gss_error(minor, GSS_C_MECH_CODE, buf, len); in Curl_gss_log_error()
H A Dkrb5.c156 return len; in krb5_decode()
166 int len; in krb5_encode() local
189 return len; in krb5_encode()
518 int len; in read_data() local
522 result = socket_read(data, sockindex, &len, sizeof(len)); in read_data()
526 if(len) { in read_data()
527 len = ntohl(len); in read_data()
546 } while(len); in read_data()
566 return len; in buffer_read()
673 if(len <= 0) in sec_write()
[all …]
H A Dparsedate.c215 if(len > 3) in checkday()
217 else if(len == 3) in checkday()
223 if((ilen == len) && in checkday()
235 if(len != 3) in checkmonth()
258 if((ilen == len) && in checktz()
379 size_t len = 0; in parsedate() local
383 len++; in parsedate()
386 if(len != NAME_LEN) { in parsedate()
388 wdaynum = checkday(date, len); in parsedate()
400 tzoff = checktz(date, len); in parsedate()
[all …]
H A Dhttp_aws_sigv4.c326 size_t len; in parse_content_sha_hdr() local
343 while(len > 0 && ISBLANK(value[len-1])) in parse_content_sha_hdr()
344 --len; in parse_content_sha_hdr()
346 *value_len = len; in parse_content_sha_hdr()
409 size_t len; member
417 if(aa->len == 0) in compare_func()
419 if(bb->len == 0) in compare_func()
421 return strncmp(aa->p, bb->p, aa->len < bb->len ? aa->len : bb->len); in compare_func()
437 for(; len && !result; q++, len--) { in canon_string()
535 if(!ap->len) in canon_query()
[all …]
H A Dsocks.c588 size_t len = 0; in do_SOCKS5() local
735 len = 0; in do_SOCKS5()
746 len += proxy_user_len; in do_SOCKS5()
759 sx->outstanding = len; in do_SOCKS5()
858 len = 0; in do_SOCKS5()
883 socksreq[len++] = in do_SOCKS5()
902 len = 0; in do_SOCKS5()
954 sx->outstanding = len; in do_SOCKS5()
1037 len = 4 + 16 + 2; in do_SOCKS5()
1040 len = 4 + 4 + 2; in do_SOCKS5()
[all …]
H A Dbufq.c66 n = CURLMIN(n, len); in chunk_append()
82 else if(n <= len) { in chunk_read()
88 memcpy(buf, p, len); in chunk_read()
90 return len; in chunk_read()
265 size_t len = 0; in Curl_bufq_len() local
270 return len; in Curl_bufq_len()
396 while(len) { in Curl_bufq_write()
410 len -= n; in Curl_bufq_write()
443 len -= n; in Curl_bufq_read()
553 while(len) { in Curl_bufq_write_pass()
[all …]
H A Dbufq.h178 const unsigned char *buf, size_t len,
182 const char *buf, size_t len,
191 ssize_t Curl_bufq_read(struct bufq *q, unsigned char *buf, size_t len,
194 CURLcode Curl_bufq_cread(struct bufq *q, char *buf, size_t len,
220 const unsigned char *buf, size_t len,
235 unsigned char *buf, size_t len,
268 const unsigned char *buf, size_t len,
/curl/src/
H A Dtool_strdup.c29 size_t len; in strdup() local
35 len = strlen(str) + 1; in strdup()
37 newstr = malloc(len); in strdup()
41 memcpy(newstr, str, len); in strdup()
H A Dtool_doswin.c117 size_t len; in sanitize_file_name() local
144 len = strlen(file_name); in sanitize_file_name()
153 target = malloc(len + 1); in sanitize_file_name()
158 target[len] = '\0'; in sanitize_file_name()
191 p = &target[len]; in sanitize_file_name()
201 len = clip - target; in sanitize_file_name()
211 len = strlen(target); in sanitize_file_name()
225 len = strlen(target); in sanitize_file_name()
265 size_t len; in truncate_dryrun() local
270 len = strlen(path); in truncate_dryrun()
[all …]
H A Dtool_msgs.c54 size_t len; in voutf() local
61 len = strlen(print_buffer); in voutf()
64 while(len > 0) { in voutf()
67 if(len > width) { in voutf()
81 len -= cut + 1; in voutf()
86 len = 0; in voutf()
/curl/tests/libtest/
H A Dlib677.c81 size_t len = 0; in test() local
85 ec = curl_easy_send(curl, cmd + pos, sizeof(cmd) - 1 - pos, &len); in test()
92 if(len > 0) in test()
93 pos += len; in test()
103 ec = curl_easy_recv(curl, buf + pos, sizeof(buf) - pos, &len); in test()
110 if(len > 0) in test()
111 pos += len; in test()
113 if(len <= 0) in test()
H A Dlib668.c38 size_t len = strlen(pooh->readptr); in read_callback() local
42 if(len > nmemb) in read_callback()
43 len = nmemb; in read_callback()
44 if(len) { in read_callback()
45 memcpy(ptr, pooh->readptr, len); in read_callback()
46 pooh->readptr += len; in read_callback()
48 return len; in read_callback()
H A Dlib1948.c30 size_t len; member
37 size_t tocopy = (putdata->len < totalsize) ? putdata->len : totalsize; in put_callback()
39 putdata->len -= tocopy; in put_callback()
60 pbuf.len = strlen(testput); in test()
H A Dlib1485.c43 size_t len = size * nmemb; in header_callback() local
48 if(len == 2 && hd[0] == '\r' && hd[1] == '\n') { in header_callback()
77 return len; in header_callback()
83 size_t len = size * nmemb; in write_callback() local
85 st->out_len += (curl_off_t)len; in write_callback()
86 return len; in write_callback()
/curl/docs/examples/
H A Dimap-append.c75 size_t len = strlen(data); in payload_source() local
76 if(room < len) in payload_source()
77 len = room; in payload_source()
78 memcpy(ptr, data, len); in payload_source()
79 upload_ctx->bytes_read += len; in payload_source()
81 return len; in payload_source()
H A Dsmtp-mail.c80 size_t len = strlen(data); in payload_source() local
81 if(room < len) in payload_source()
82 len = room; in payload_source()
83 memcpy(ptr, data, len); in payload_source()
84 upload_ctx->bytes_read += len; in payload_source()
86 return len; in payload_source()
H A Dsmtp-tls.c77 size_t len = strlen(data); in payload_source() local
78 if(room < len) in payload_source()
79 len = room; in payload_source()
80 memcpy(ptr, data, len); in payload_source()
81 upload_ctx->bytes_read += len; in payload_source()
83 return len; in payload_source()
H A Dsmtp-authzid.c83 size_t len = strlen(data); in payload_source() local
84 if(room < len) in payload_source()
85 len = room; in payload_source()
86 memcpy(ptr, data, len); in payload_source()
87 upload_ctx->bytes_read += len; in payload_source()
89 return len; in payload_source()
H A Dsmtp-multi.c73 size_t len = strlen(data); in payload_source() local
74 if(room < len) in payload_source()
75 len = room; in payload_source()
76 memcpy(ptr, data, len); in payload_source()
77 upload_ctx->bytes_read += len; in payload_source()
79 return len; in payload_source()
H A Dsmtp-ssl.c77 size_t len = strlen(data); in payload_source() local
78 if(room < len) in payload_source()
79 len = room; in payload_source()
80 memcpy(ptr, data, len); in payload_source()
81 upload_ctx->bytes_read += len; in payload_source()
83 return len; in payload_source()
/curl/tests/server/
H A Dgetpart.c256 if(!*len) in decodedata()
278 *len = src_len; in decodedata()
323 } len; in getpart() local
374 len.sig = end - ptr; in getpart()
375 if(len.sig > MAX_TAG_LEN) { in getpart()
379 memcpy(ptag, ptr, len.uns); in getpart()
380 ptag[len.uns] = '\0'; in getpart()
440 len.sig = end - ptr; in getpart()
446 ptag[len.uns] = '\0'; in getpart()
460 len.sig = end - ptr; in getpart()
[all …]
/curl/tests/unit/
H A Dcurlcheck.h45 #define verify_memory(dynamic, check, len) \ argument
47 if(dynamic && memcmp(dynamic, check, len)) { \
49 "'%s' is not\n", __FILE__, __LINE__, len, \
50 hexdump((const unsigned char *)check, len)); \
52 hexdump((const unsigned char *)dynamic, len)); \

Completed in 61 milliseconds

123456789