Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 46) sorted by relevance

12

/curl/docs/examples/
H A Dchkspeed.c179 curl_off_t val; in main() local
183 if((CURLE_OK == res) && (val > 0)) in main()
184 printf("Data downloaded: %lu bytes.\n", (unsigned long)val); in main()
188 if((CURLE_OK == res) && (val > 0)) in main()
190 (unsigned long)(val / 1000000), (unsigned long)(val % 1000000)); in main()
194 if((CURLE_OK == res) && (val > 0)) in main()
196 (unsigned long)(val / 1024)); in main()
201 if((CURLE_OK == res) && (val > 0)) in main()
203 (unsigned long)(val / 1000000), (unsigned long)(val % 1000000)); in main()
207 if((CURLE_OK == res) && (val > 0)) in main()
[all …]
H A Dhref_extractor.c57 char tag[1], attr[4], val[128]; in main() local
74 html_parser_set_val_buffer(hsp, val, sizeof(val)-1); in main()
/curl/src/
H A Dtool_paramhlp.h41 ParameterError str2num(long *val, const char *str);
42 ParameterError str2unum(long *val, const char *str);
43 ParameterError oct2nummax(long *val, const char *str, long max);
44 ParameterError str2unummax(long *val, const char *str, long max);
45 ParameterError secs2ms(long *val, const char *str);
48 const char * const *val, char **obuf,
53 ParameterError str2offset(curl_off_t *val, const char *str);
65 ParameterError str2tls_max(long *val, const char *str);
H A Dtool_paramhlp.c177 *val = num; in getnum()
186 return getnum(val, str, 10); in str2num()
194 else if(*val > max) in oct2nummax()
196 else if(*val < 0) in oct2nummax()
216 if(*val < 0) in str2unum()
237 if(*val > max) in str2unummax()
270 *val = num; in str2double()
391 for(; *val; val++) { in proto2num()
392 const char *p = proto_token(*val); in proto2num()
520 *val = strtol(str, &endptr, 0); in str2offset()
[all …]
/curl/lib/
H A Dinet_pton.c115 unsigned int val = (unsigned int)(*tp * 10) + in inet_pton4() local
120 if(val > 255) in inet_pton4()
122 *tp = (unsigned char)val; in inet_pton4()
165 size_t val; in inet_pton6() local
176 val = 0; in inet_pton6()
185 val <<= 4; in inet_pton6()
186 val |= (pch - xdigits); in inet_pton6()
202 *tp++ = (unsigned char) (val & 0xff); in inet_pton6()
204 val = 0; in inet_pton6()
218 *tp++ = (unsigned char) ((val >> 8) & 0xff); in inet_pton6()
[all …]
H A Dsha256.c283 #define WPA_PUT_BE64(a, val) \ argument
285 (a)[0] = (unsigned char)(((unsigned long long)(val)) >> 56); \
295 #define WPA_PUT_BE64(a, val) \ argument
297 (a)[0] = (unsigned char)(((unsigned __int64)(val)) >> 56); \
298 (a)[1] = (unsigned char)(((unsigned __int64)(val)) >> 48); \
299 (a)[2] = (unsigned char)(((unsigned __int64)(val)) >> 40); \
300 (a)[3] = (unsigned char)(((unsigned __int64)(val)) >> 32); \
301 (a)[4] = (unsigned char)(((unsigned __int64)(val)) >> 24); \
302 (a)[5] = (unsigned char)(((unsigned __int64)(val)) >> 16); \
303 (a)[6] = (unsigned char)(((unsigned __int64)(val)) >> 8); \
[all …]
H A Dbase64.c133 unsigned char val; in Curl_base64_decode() local
138 val = lookup[(unsigned char)*src++]; in Curl_base64_decode()
139 if(val == 0xff) /* bad symbol */ in Curl_base64_decode()
141 x = (x << 6) | val; in Curl_base64_decode()
150 unsigned char val; in Curl_base64_decode() local
163 val = lookup[(unsigned char)*src++]; in Curl_base64_decode()
164 if(val == 0xff) /* bad symbol */ in Curl_base64_decode()
166 x = (x << 6) | val; in Curl_base64_decode()
H A Dparsedate.c412 int val; in parsedate() local
439 val = curlx_sltosi(lval); in parsedate()
443 (val <= 1400) && in parsedate()
455 tzoff = (val/100 * 60 + val%100)*60; in parsedate()
468 yearnum = val/10000; in parsedate()
469 monnum = (val%10000)/100-1; /* month is 0 - 11 */ in parsedate()
470 mdaynum = val%100; in parsedate()
474 if((val > 0) && (val < 32)) { in parsedate()
475 mdaynum = val; in parsedate()
482 yearnum = val; in parsedate()
H A Dmprintf.c144 } val; member
601 iptr->val.str = va_arg(arglist, char *); in parsefmt()
606 iptr->val.ptr = va_arg(arglist, void *); in parsefmt()
759 num = iptr->val.numu; in formatf()
878 str = (char *)iptr->val.str; in formatf()
921 if(iptr->val.ptr) { in formatf()
926 num = (size_t) iptr->val.ptr; in formatf()
982 double val = iptr->val.dnum; in formatf() local
985 while(val >= 10.0) { in formatf()
986 val /= 10; in formatf()
[all …]
H A Dcurl_sha512_256.c317 #define MHDX_PUT_64BIT_BE(ptr,val) do { \ argument
318 ((unsigned char*)(ptr))[7]=(unsigned char)((curl_uint64_t)(val)); \
319 ((unsigned char*)(ptr))[6]=(unsigned char)(((curl_uint64_t)(val)) >> 8); \
320 ((unsigned char*)(ptr))[5]=(unsigned char)(((curl_uint64_t)(val)) >> 16); \
321 ((unsigned char*)(ptr))[4]=(unsigned char)(((curl_uint64_t)(val)) >> 24); \
322 ((unsigned char*)(ptr))[3]=(unsigned char)(((curl_uint64_t)(val)) >> 32); \
323 ((unsigned char*)(ptr))[2]=(unsigned char)(((curl_uint64_t)(val)) >> 40); \
324 ((unsigned char*)(ptr))[1]=(unsigned char)(((curl_uint64_t)(val)) >> 48); \
325 ((unsigned char*)(ptr))[0]=(unsigned char)(((curl_uint64_t)(val)) >> 56); \
H A Dgetinfo.c207 unsigned long val = strtoul(timestr, NULL, 10); in getinfo_long() local
210 *param_longp = (long)val; in getinfo_long()
219 unsigned long val = strtoul(timestr, NULL, 10); in getinfo_long() local
223 *param_longp = (long)val; in getinfo_long()
372 unsigned long val = strtoul(timestr, NULL, 10); in getinfo_offt() local
384 *param_offt = (curl_off_t)val; in getinfo_offt()
468 unsigned long val = strtoul(timestr, NULL, 10); in getinfo_double() local
479 *param_doublep = (double)val; in getinfo_double()
/curl/.github/scripts/
H A Dcmp-pkg-config.sh22 val="$(printf '%s' "${BASH_REMATCH[3]}" | tr ',' '\n' | sort | tr '\n' ' ')"
24 val="$(printf '%s' "${BASH_REMATCH[3]}" | tr ' ' '\n' | sort -u | tr '\n' ' ')"
26 l="${BASH_REMATCH[1]}${BASH_REMATCH[2]}: ${val}"
30 l="${BASH_REMATCH[1]}${val}${BASH_REMATCH[3]}"
/curl/tests/
H A Dvalgrind.pm44 open(my $val, "<", "$file") ||
46 @o = <$val>;
47 close($val);
/curl/tests/http/testenv/mod_curltest/
H A Dmod_curltest.c211 val = s + 1; in curltest_echo_handler()
357 val = s + 1; in curltest_tweak_handler()
359 http_status = (int)apr_atoi64(val); in curltest_tweak_handler()
365 chunks = (int)apr_atoi64(val); in curltest_tweak_handler()
371 chunk_size = (int)apr_atoi64(val); in curltest_tweak_handler()
384 request_id = val; in curltest_tweak_handler()
388 if(status_from_str(val, &error)) { in curltest_tweak_handler()
559 val = s + 1; in curltest_put_handler()
562 request_id = val; in curltest_put_handler()
762 val = s + 1; in curltest_sslinfo_handler()
[all …]
/curl/tests/http/
H A Dtest_04_stuttered.py136 val = float(s[key])
137 stotals += val
138 if val > s_max:
139 s_max = val
141 if val < s_min:
142 s_min = val
H A Dscorecard.py491 def fmt_size(self, val): argument
492 if val >= (1024*1024*1024):
494 elif val >= (1024 * 1024):
496 elif val >= 1024:
501 def fmt_mbs(self, val): argument
504 def fmt_reqs(self, val): argument
546 for val in size_score.values():
547 if 'errors' in val:
589 for val in size_score.values():
590 if 'errors' in val:
[all …]
/curl/tests/libtest/
H A Dlib1541.c39 static int geterr(const char *name, CURLcode val, int lineno) in geterr() argument
42 name, val, curl_easy_strerror(val), lineno); in geterr()
43 return (int)val; in geterr()
H A Dlib518.c102 static void rlim2str(char *buf, size_t len, rlim_t val) in rlim2str() argument
105 if(val == RLIM_INFINITY) { in rlim2str()
112 msnprintf(buf, len, "%llu", (unsigned long long)val); in rlim2str()
117 msnprintf(buf, len, "%u", (unsigned int)val); in rlim2str()
119 msnprintf(buf, len, "%lu", (unsigned long)val); in rlim2str()
H A Dlib537.c100 static void rlim2str(char *buf, size_t len, rlim_t val) in rlim2str() argument
103 if(val == RLIM_INFINITY) { in rlim2str()
110 msnprintf(buf, len, "%llu", (unsigned long long)val); in rlim2str()
115 msnprintf(buf, len, "%u", (unsigned int)val); in rlim2str()
117 msnprintf(buf, len, "%lu", (unsigned long)val); in rlim2str()
H A Dmk-lib1521.pl416 my ($name, $type, $val)=($1, $2, $3);
561 print $fh "$c &val);\n$check";
/curl/docs/libcurl/opts/
H A DCURLOPT_SOCKOPTDATA.md44 int val = *(int *)clientp;
46 (const char *)&val, sizeof(val));
H A DCURLOPT_TIMEVALUE.md24 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TIMEVALUE, long val);
29 Pass a long *val* as parameter. This should be the time counted as seconds
H A DCURLOPT_TIMEVALUE_LARGE.md26 curl_off_t val);
31 Pass a curl_off_t *val* as parameter. This should be the time counted as
/curl/docs/cmdline-opts/
H A Dtelnet-option.md6 Arg: <opt=val>
27 ## `NEW_ENV=<var,val>`
H A Durl-query.md15 - --url-query name=val $URL

Completed in 38 milliseconds

12