Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 205) sorted by relevance

123456789

/curl/tests/unit/
H A Dunit1394.c81 const char **p; variable
83 for(p = values; *p; p += 3) {
85 if(p[1]) {
87 if(strcmp(p[1], certname)) {
89 "for -E param '%s'\n", p[1], certname, p[0]);
95 "for -E param '%s'\n", p[1], p[0]);
102 "for -E param '%s'\n", certname, p[0]);
106 if(p[2]) {
108 if(strcmp(p[2], passphrase)) {
110 "for -E param '%s'\n", p[2], passphrase, p[0]);
[all …]
H A Dunit2603.c72 struct h1_req_parser p; in parse_success() local
78 Curl_h1_req_parse_init(&p, 1024); in parse_success()
92 if(!p.done) { in parse_success()
100 fail_if(!p.done, "end not detected"); in parse_success()
101 fail_if(!p.req, "not request created"); in parse_success()
107 if(p.req) { in parse_success()
108 check_eq(p.req->method, t->method, "method"); in parse_success()
109 check_eq(p.req->scheme, t->scheme, "scheme"); in parse_success()
111 check_eq(p.req->path, t->path, "path"); in parse_success()
114 Curl_dynhds_count(&p.req->headers)); in parse_success()
[all …]
H A Dunit1650.c161 unsigned char *p; variable
207 p = &a->ip.v4[0];
208 msnprintf(ptr, len, "%u.%u.%u.%u ", p[0], p[1], p[2], p[3]);
279 p = &a->ip.v4[0];
281 "%u.%u.%u.%u", p[0], p[1], p[2], p[3]);
/curl/lib/
H A Dstrerror.c582 const char *p; in get_winsock_error() local
694 p = "Loop??"; in get_winsock_error()
779 char *p; in get_winapi_error() local
804 if(p) { in get_winapi_error()
805 if(p > buf && *(p-1) == '\r') in get_winapi_error()
808 *p = '\0'; in get_winapi_error()
840 char *p; in Curl_strerror() local
907 if(p && (p - buf) >= 2) in Curl_strerror()
908 *p = '\0'; in Curl_strerror()
910 if(p && (p - buf) >= 1) in Curl_strerror()
[all …]
H A Daltsvc.c407 while(*p && ISBLANK(*p)) in getalnum()
408 p++; in getalnum()
410 while(*p && !ISBLANK(*p) && (*p != ';') && (*p != '=')) in getalnum()
543 p = &p[dstlen-1]; in Curl_altsvc_parse()
546 while(*p && (ISALNUM(*p) || (*p == '.') || (*p == '-'))) in Curl_altsvc_parse()
590 if(!*p || ISNEWLINE(*p)) in Curl_altsvc_parse()
597 while(*p && ISBLANK(*p)) in Curl_altsvc_parse()
602 while(*p && ISBLANK(*p)) in Curl_altsvc_parse()
613 while(*p && *p != '\"') in Curl_altsvc_parse()
619 while(*p && !ISBLANK(*p) && *p!= ';' && *p != ',') in Curl_altsvc_parse()
[all …]
H A Dcurl_fnmatch.c159 *pp = p; in setcharorrange()
173 c = **p; in setcharset()
185 (*p)++; in setcharset()
209 (*p)++; in setcharset()
228 (*p)++; in setcharset()
235 (*p)++; in setcharset()
249 (*p)++; in setcharset()
267 switch(*p) { in loop()
293 p++; in loop()
298 if(p[1]) in loop()
[all …]
H A Dcurl_memrchr.c53 const unsigned char *p = s; in Curl_memrchr() local
56 p += n - 1; in Curl_memrchr()
58 while(p >= q) { in Curl_memrchr()
59 if(*p == (unsigned char)c) in Curl_memrchr()
60 return (void *)p; in Curl_memrchr()
61 p--; in Curl_memrchr()
H A Dprogress.c410 p->timespent = Curl_timediff_us(now, p->start); in progress_calc()
411 p->dl.speed = trspeed(p->dl.cur_size, p->timespent); in progress_calc()
412 p->ul.speed = trspeed(p->ul.cur_size, p->timespent); in progress_calc()
423 p->speeder[ nowindex ] = p->dl.cur_size + p->ul.cur_size; in progress_calc()
430 p->speeder_c++; in progress_calc()
455 amount = p->speeder[nowindex]- p->speeder[checkindex]; in progress_calc()
469 p->current_speed = p->ul.speed + p->dl.speed; in progress_calc()
532 pgrs_estimates(&p->ul, (p->flags & PGRS_UL_SIZE_KNOWN), &ul_estm); in progress_meter()
544 ((p->flags & PGRS_UL_SIZE_KNOWN) ? p->ul.total_size : p->ul.cur_size) + in progress_meter()
545 ((p->flags & PGRS_DL_SIZE_KNOWN) ? p->dl.total_size : p->dl.cur_size); in progress_meter()
[all …]
H A Dnoproxy.c174 while(*p) { in Curl_check_noproxy()
180 while(*p && ISBLANK(*p)) in Curl_check_noproxy()
181 p++; in Curl_check_noproxy()
183 token = p; in Curl_check_noproxy()
185 while(*p && !ISBLANK(*p) && (*p != ',')) { in Curl_check_noproxy()
186 p++; in Curl_check_noproxy()
250 while(ISBLANK(*p)) in Curl_check_noproxy()
251 p++; in Curl_check_noproxy()
253 if(*p != ',') in Curl_check_noproxy()
256 while(*p == ',') in Curl_check_noproxy()
[all …]
H A Dhsts.c160 while(*p && ISBLANK(*p)) in Curl_hsts_parse()
161 p++; in Curl_hsts_parse()
171 while(*p && ISBLANK(*p)) in Curl_hsts_parse()
172 p++; in Curl_hsts_parse()
175 while(*p && ISBLANK(*p)) in Curl_hsts_parse()
176 p++; in Curl_hsts_parse()
205 while(*p && (*p != ';')) in Curl_hsts_parse()
209 while(*p && ISBLANK(*p)) in Curl_hsts_parse()
210 p++; in Curl_hsts_parse()
212 p++; in Curl_hsts_parse()
[all …]
H A Dsocketpair.h51 #define wakeup_create(p,nb) Curl_eventfd(p,nb) argument
61 #define wakeup_create(p,nb) Curl_pipe(p,nb) argument
86 #define wakeup_create(p,nb)\ argument
87 Curl_socketpair(SOCKETPAIR_FAMILY, SOCKETPAIR_TYPE, 0, p, nb)
H A Dparsedate.c315 const char *p; in match_time() local
317 hh = oneortwodigit(date, &p); in match_time()
318 if((hh < 24) && (*p == ':') && ISDIGIT(p[1])) { in match_time()
319 mm = oneortwodigit(&p[1], &p); in match_time()
321 if((*p == ':') && ISDIGIT(p[1])) { in match_time()
322 ss = oneortwodigit(&p[1], &p); in match_time()
339 *endp = (char *)p; in match_time()
380 const char *p = date; in parsedate() local
382 p++; in parsedate()
585 int rc = parsedate(p, &parsed); in curl_getdate()
[all …]
H A Ddynhds.c44 char *p; in entry_new() local
68 char *p; in entry_append() local
79 p += e->valuelen; in entry_append()
80 p[0] = ' '; in entry_append()
220 const char *p; in Curl_dynhds_h1_add_line() local
251 if(!p) in Curl_dynhds_h1_add_line()
254 namelen = p - line; in Curl_dynhds_h1_add_line()
257 if(!ISBLANK(*p)) in Curl_dynhds_h1_add_line()
260 value = p; in Curl_dynhds_h1_add_line()
264 if(!p) in Curl_dynhds_h1_add_line()
[all …]
H A Doptiontable.pl82 my @p=split(/, */, $fl);
83 add($p[0], $p[1], $p[2]);
H A Dldap.c856 char *p; in _ldap_url_parse2() local
887 if(*p) { in _ldap_url_parse2()
919 p = q; in _ldap_url_parse2()
920 if(!p) in _ldap_url_parse2()
928 if(*p) { in _ldap_url_parse2()
994 p = q; in _ldap_url_parse2()
995 if(!p) in _ldap_url_parse2()
1013 p = q; in _ldap_url_parse2()
1014 if(!p) in _ldap_url_parse2()
1054 p = q; in _ldap_url_parse2()
[all …]
/curl/src/
H A Dtool_doswin.c148 p = target; in sanitize_file_name()
151 for(; *p; ++p) { in sanitize_file_name()
154 if((1 <= *p && *p <= 31) || in sanitize_file_name()
157 *p = '_'; in sanitize_file_name()
175 --p; in sanitize_file_name()
176 if(*p != ' ' && *p != '.') in sanitize_file_name()
192 target = p; in sanitize_file_name()
267 --p; in truncate_dryrun()
270 } while(p != path && *p != '\\' && *p != '/'); in truncate_dryrun()
481 for(p = fname; p; p = (p == fname && fname != base ? base : NULL)) { in rename_if_reserved_dos()
[all …]
H A Dtool_libinfo.c151 const struct proto_name_tokenp *p; in get_libcurl_info() local
157 for(p = possibly_built_in; p->proto_name; p++) in get_libcurl_info()
159 *p->proto_tokenp = *builtin; in get_libcurl_info()
169 const struct feature_name_presentp *p; in get_libcurl_info() local
172 for(p = maybe_feature; p->feature_name; p++) in get_libcurl_info()
173 if(curlinfo->features & p->feature_bitmask) in get_libcurl_info()
174 *cpp++ = p->feature_name; in get_libcurl_info()
180 const struct feature_name_presentp *p; in get_libcurl_info() local
182 for(p = maybe_feature; p->feature_name; p++) in get_libcurl_info()
184 if(p->feature_presentp) in get_libcurl_info()
[all …]
H A Dtool_formparse.c486 p++; in get_param_part()
487 tp = p; in get_param_part()
493 sep = *p; in get_param_part()
496 while(p++ && ISSPACE(*p)) in get_param_part()
500 for(p += 5; ISSPACE(*p); p++) in get_param_part()
514 for(endct = p; *p && *p != ';' && *p != endchar; p++) in get_param_part()
524 for(p += 9; ISSPACE(*p); p++) in get_param_part()
541 if(*p == '@' || *p == '<') { in get_param_part()
596 for(p += 8; ISSPACE(*p); p++) in get_param_part()
609 for(endct = p; *p && *p != ';' && *p != endchar; p++) in get_param_part()
[all …]
H A Dtool_cb_hdr.c196 while((p < end) && *p && !ISALPHA(*p)) in tool_header_cb()
203 while((p < end) && *p && (*p != ';')) in tool_header_cb()
205 if((p < end) && *p) in tool_header_cb()
325 char *p; in parse_filename() local
336 p = copy; in parse_filename()
337 if(*p == '\'' || *p == '"') { in parse_filename()
339 stop = *p; in parse_filename()
340 p++; in parse_filename()
354 if(!*p) { in parse_filename()
366 if(!*p) { in parse_filename()
[all …]
H A Dvar.c47 char *p = malloc(len + 1); in Memdup() local
48 if(!p) in Memdup()
51 memcpy(p, data, len); in Memdup()
52 p[len] = 0; in Memdup()
53 return p; in Memdup()
354 struct tool_var *p; in addvariable() local
361 if(p) { in addvariable()
365 if(p->content) { in addvariable()
366 p->clen = clen; in addvariable()
369 global->variables = p; in addvariable()
[all …]
/curl/tests/libtest/
H A Dlib1156.c94 if(p->flags & F_HTTP416) in onetest()
105 if(res != p->result) { in onetest()
108 (p->flags & F_RESUME) ? "yes": "no", in onetest()
109 (p->flags & F_FAIL) ? "yes": "no", in onetest()
110 (p->flags & F_HTTP416) ? "yes": "no", in onetest()
111 (p->flags & F_CONTENTRANGE) ? "yes": "no", in onetest()
112 p->result); in onetest()
115 if(hasbody && (p->flags & F_IGNOREBODY)) { in onetest()
118 (p->flags & F_RESUME) ? "yes": "no", in onetest()
119 (p->flags & F_FAIL) ? "yes": "no", in onetest()
[all …]
/curl/docs/examples/
H A Dhref_extractor.c42 size_t realsize = size * nmemb, p; in write_callback() local
43 for(p = 0; p < realsize; p++) { in write_callback()
44 html_parser_char_parse(hsp, ((char *)buffer)[p]); in write_callback()
/curl/lib/vauth/
H A Dvauth.c135 char *p = strpbrk(user, "\\/@"); in Curl_auth_user_contains_domain() local
137 valid = (p != NULL && p > user && p < user + strlen(user) - 1); in Curl_auth_user_contains_domain()
/curl/.github/scripts/
H A Dbadwords.pl48 my $p = $1;
49 my $c = length($p)+1;
52 printf STDERR " | %*s^%s\n", length($p), " ",
/curl/tests/data/
H A Dtest32021 <p>Session ID: <i>003030000100000001000000000000000030330001000000B062410001000000</i></p>
23 <p>Connected as user 'jsmith'.</p>
30 <TR><TD>Ciphersuite</TD><TD>SRP_SHA_AES_NNN_CBC_SHA1</TD></TR></p></TABLE>
71 s/^<p>Connected as user 'jsmith'.*/FINE/

Completed in 39 milliseconds

123456789