Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 37) sorted by relevance

12

/curl/lib/
H A Dstrtoofft.c73 static int get_char(char c, int base);
111 if(base == 16 || base == 0) { in strtooff()
113 base = 16; in strtooff()
117 if(base == 8 || base == 0) { in strtooff()
119 base = 8; in strtooff()
126 if(base == 0) { in strtooff()
127 base = 10; in strtooff()
131 for(i = get_char(end[0], base); in strtooff()
139 value = base * value + i; in strtooff()
173 static int get_char(char c, int base) in get_char() argument
[all …]
H A Dinet_ntop.c99 int base; in inet_ntop6() member
113 best.base = -1; in inet_ntop6()
114 cur.base = -1; in inet_ntop6()
120 if(cur.base == -1) { in inet_ntop6()
126 else if(cur.base != -1) { in inet_ntop6()
129 cur.base = -1; in inet_ntop6()
132 if((cur.base != -1) && (best.base == -1 || cur.len > best.len)) in inet_ntop6()
135 best.base = -1; in inet_ntop6()
140 if(best.base != -1 && i >= best.base && i < (best.base + best.len)) { in inet_ntop6()
141 if(i == best.base) in inet_ntop6()
[all …]
H A Damigaos.c81 struct Library *base = OpenLibrary("bsdsocket.library", 4); in Curl_amiga_init() local
83 if(base) { in Curl_amiga_init()
84 ISocket = (struct SocketIFace *)GetInterface(base, "main", 1, NULL); in Curl_amiga_init()
102 CloseLibrary(base); in Curl_amiga_init()
111 struct Library *base = __CurlISocket->Data.LibBase; in Curl_amiga_cleanup() local
113 CloseLibrary(base); in Curl_amiga_cleanup()
155 struct Library *base = OpenLibrary("bsdsocket.library", 4); in Curl_ipv4_resolve_r() local
156 if(base) { in Curl_ipv4_resolve_r()
157 ISocket = (struct SocketIFace *)GetInterface(base, "main", 1, NULL); in Curl_ipv4_resolve_r()
165 CloseLibrary(base); in Curl_ipv4_resolve_r()
H A Dstrtoofft.h51 CURLofft curlx_strtoofft(const char *str, char **endp, int base,
H A Dmprintf.c759 base = 8; in formatf()
765 base = 16; in formatf()
770 base = 10; in formatf()
775 base = 10; in formatf()
793 switch(base) { in formatf()
802 *w-- = digits[num % base]; in formatf()
803 num /= base; in formatf()
810 if(is_alt && base == 8 && prec <= 0) { in formatf()
821 if(is_alt && base == 16) in formatf()
838 if(is_alt && base == 16) { in formatf()
[all …]
H A Dmime.c360 char *base; in strippath() local
365 base = strdup(basename(filename)); in strippath()
369 return base; /* returns an allocated string or NULL ! */ in strippath()
1413 char *base; in curl_mime_filedata() local
1437 base = strippath(filename); in curl_mime_filedata()
1438 if(!base) in curl_mime_filedata()
1441 result = curl_mime_filename(part, base); in curl_mime_filedata()
1442 free(base); in curl_mime_filedata()
/curl/docs/examples/
H A Dmulti-event.c35 struct event_base *base; variable
54 context->event = event_new(base, sockfd, 0, curl_perform, context); in create_curl_context()
191 event_assign(curl_context->event, base, curl_context->sockfd, events, in handle_socket()
220 base = event_base_new(); in main()
221 timeout = evtimer_new(base, on_timeout, NULL); in main()
231 event_base_dispatch(base); in main()
235 event_base_free(base); in main()
/curl/packages/vms/
H A Dpcsi_product_gnv_curl.com117 $ base = f$element(1, "-", kit_name)
137 $! Move to the base directories
157 $ base = ""
158 $ if arch_name .eqs. "ALPHA" then base = "AXPVMS"
159 $ if arch_name .eqs. "IA64" then base = "I64VMS"
160 $ if arch_name .eqs. "VAX" then base = "VAXVMS"
162 $ if base .eqs. "" then exit 44
172 /base='base' -
191 /version='version'/base='base'
H A Dmake_pcsi_curl_kit_name.com176 $! Write out a logical name for the resulting base kit name.
H A Dbackup_gnv_curl_src.com96 $! Move to the base directories
H A Dbuild_libcurl_pc.com38 $ base = f$element(1, "-", kit_name)
H A Dbuild_gnv_curl_pcsi_text.com54 $ base = f$element(1, "-", kit_name)
H A Dclean_gnv_curl.com38 $! Move to where the base directory is.
/curl/src/
H A Dtool_doswin.c467 char *p, *base; in rename_if_reserved_dos_device_name() local
501 base = basename(fname); in rename_if_reserved_dos_device_name()
508 for(p = fname; p; p = (p == fname && fname != base ? base : NULL)) { in rename_if_reserved_dos_device_name()
557 base = basename(fname); in rename_if_reserved_dos_device_name()
567 if(base && ((stat(base, &st_buf)) == 0) && (S_ISCHR(st_buf.st_mode))) { in rename_if_reserved_dos_device_name()
569 size_t blen = strlen(base); in rename_if_reserved_dos_device_name()
573 if(!(flags & SANITIZE_ALLOW_TRUNCATE) || truncate_dryrun(base, blen)) in rename_if_reserved_dos_device_name()
575 base[blen] = '\0'; in rename_if_reserved_dos_device_name()
577 memmove(base + 1, base, blen + 1); in rename_if_reserved_dos_device_name()
578 base[0] = '_'; in rename_if_reserved_dos_device_name()
H A Dtool_paramhlp.c169 static ParameterError getnum(long *val, const char *str, int base) in getnum() argument
177 num = strtol(str, &endptr, base); in getnum()
/curl/tests/data/
H A Dtest117637 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o '%LOGDIR/base-#0'
51 <file name="%LOGDIR/base-#0">
/curl/tests/libtest/
H A Dlib570.c28 static char *suburl(const char *base, int i) in suburl() argument
30 return curl_maprintf("%s%.4d", base, i); in suburl()
H A Dlib569.c28 static char *suburl(const char *base, int i) in suburl() argument
30 return curl_maprintf("%s%.4d", base, i); in suburl()
H A Dlib568.c36 static char *suburl(const char *base, int i) in suburl() argument
38 return curl_maprintf("%s%.4d", base, i); in suburl()
H A Dlib572.c36 static char *suburl(const char *base, int i) in suburl() argument
38 return curl_maprintf("%s%.4d", base, i); in suburl()
H A Dlib571.c98 static char *suburl(const char *base, int i) in suburl() argument
100 return curl_maprintf("%s%.4d", base, i); in suburl()
H A Dlib506.c168 static char *suburl(const char *base, int i) in suburl() argument
170 return curl_maprintf("%s%.4d", base, i); in suburl()
/curl/packages/OS400/
H A Dos400sys.c580 Curl_ldap_search_s_a(void *ld, char *base, int scope, char *filter, in Curl_ldap_search_s_a() argument
595 if(base) { in Curl_ldap_search_s_a()
596 i = strlen(base); in Curl_ldap_search_s_a()
602 QadrtConvertA2E(ebase, base, i, i); in Curl_ldap_search_s_a()
/curl/docs/libcurl/
H A Dcurl_mime_filedata.md43 As a side effect, the part's remote filename is set to the base name of the
/curl/lib/vquic/
H A Dcurl_osslq.c780 (const char *)h3val.base, h3val.len); in cb_h3_recv_header()
794 stream_id, (int)h3name.len, h3name.base, in cb_h3_recv_header()
795 (int)h3val.len, h3val.base); in cb_h3_recv_header()
796 result = write_resp_raw(cf, data, h3name.base, h3name.len, FALSE); in cb_h3_recv_header()
804 result = write_resp_raw(cf, data, h3val.base, h3val.len, FALSE); in cb_h3_recv_header()
922 (const unsigned char **)&vec[nvecs].base, in cb_h3_read_req_body()
1449 ok = !s->ssl || SSL_write_ex2(s->ssl, vec[i].base, vec[i].len, flags, in h3_send_streams()
1455 ok = !s->ssl || SSL_write_ex(s->ssl, vec[i].base, vec[i].len, in h3_send_streams()

Completed in 143 milliseconds

12