/curl/lib/ |
H A D | inet_pton.c | 75 Curl_inet_pton(int af, const char *src, void *dst) in Curl_inet_pton() argument 79 return (inet_pton4(src, (unsigned char *)dst)); in Curl_inet_pton() 81 return (inet_pton6(src, (unsigned char *)dst)); in Curl_inet_pton() 100 inet_pton4(const char *src, unsigned char *dst) in inet_pton4() argument 110 while((ch = *src++) != '\0') { in inet_pton4() 158 inet_pton6(const char *src, unsigned char *dst) in inet_pton6() argument 171 if(*src == ':') in inet_pton6() 172 if(*++src != ':') in inet_pton6() 174 curtok = src; in inet_pton6() 177 while((ch = *src++) != '\0') { in inet_pton6() [all …]
|
H A D | strdup.c | 70 wchar_t *Curl_wcsdup(const wchar_t *src) in Curl_wcsdup() argument 72 size_t length = wcslen(src); in Curl_wcsdup() 77 return (wchar_t *)Curl_memdup(src, (length + 1) * sizeof(wchar_t)); in Curl_wcsdup() 91 void *Curl_memdup(const void *src, size_t length) in Curl_memdup() argument 97 memcpy(buffer, src, length); in Curl_memdup() 112 void *Curl_memdup0(const char *src, size_t length) in Curl_memdup0() argument 117 memcpy(buf, src, length); in Curl_memdup0()
|
H A D | inet_ntop.c | 61 static char *inet_ntop4 (const unsigned char *src, char *dst, size_t size) in inet_ntop4() argument 70 ((int)((unsigned char)src[0])) & 0xff, in inet_ntop4() 71 ((int)((unsigned char)src[1])) & 0xff, in inet_ntop4() 72 ((int)((unsigned char)src[2])) & 0xff, in inet_ntop4() 73 ((int)((unsigned char)src[3])) & 0xff); in inet_ntop4() 87 static char *inet_ntop6 (const unsigned char *src, char *dst, size_t size) in inet_ntop6() argument 111 words[i/2] |= ((unsigned int)src[i] << ((1 - (i % 2)) << 3)); in inet_ntop6() 155 if(!inet_ntop4(src + 12, tp, sizeof(tmp) - (tp - tmp))) { in inet_ntop6() 193 char *Curl_inet_ntop(int af, const void *src, char *buf, size_t size) in Curl_inet_ntop() argument 197 return inet_ntop4((const unsigned char *)src, buf, size); in Curl_inet_ntop() [all …]
|
H A D | strcase.c | 149 void Curl_strntoupper(char *dest, const char *src, size_t n) in Curl_strntoupper() argument 155 *dest++ = Curl_raw_toupper(*src); in Curl_strntoupper() 156 } while(*src++ && --n); in Curl_strntoupper() 164 void Curl_strntolower(char *dest, const char *src, size_t n) in Curl_strntolower() argument 170 *dest++ = Curl_raw_tolower(*src); in Curl_strntolower() 171 } while(*src++ && --n); in Curl_strntolower()
|
H A D | strdup.h | 32 wchar_t* Curl_wcsdup(const wchar_t* src); 34 void *Curl_memdup(const void *src, size_t buffer_length); 36 void *Curl_memdup0(const char *src, size_t length);
|
H A D | version.c | 186 src[i++] = ssl_version; in curl_version() 190 src[i++] = z_version; in curl_version() 194 src[i++] = br_version; in curl_version() 198 src[i++] = zst_version; in curl_version() 208 src[i++] = idn_version; in curl_version() 232 src[i++] = ssh_version; in curl_version() 236 src[i++] = h2_version; in curl_version() 240 src[i++] = h3_version; in curl_version() 244 src[i++] = rtmp_version; in curl_version() 248 src[i++] = hyper_buf; in curl_version() [all …]
|
H A D | escape.c | 216 void Curl_hexencode(const unsigned char *src, size_t len, /* input length */ in Curl_hexencode() argument 220 DEBUGASSERT(src && len && (olen >= 3)); in Curl_hexencode() 221 if(src && len && (olen >= 3)) { in Curl_hexencode() 225 *out++ = hex[(*src & 0xF0)>>4]; in Curl_hexencode() 226 *out++ = hex[*src & 0x0F]; in Curl_hexencode() 227 ++src; in Curl_hexencode()
|
H A D | base64.c | 76 CURLcode Curl_base64_decode(const char *src, in Curl_base64_decode() argument 91 srclen = strlen(src); in Curl_base64_decode() 98 while(src[srclen - 1 - padding] == '=') { in Curl_base64_decode() 138 val = lookup[(unsigned char)*src++]; in Curl_base64_decode() 155 if(*src == '=') { in Curl_base64_decode() 157 src++; in Curl_base64_decode() 163 val = lookup[(unsigned char)*src++]; in Curl_base64_decode()
|
H A D | strcase.h | 48 void Curl_strntoupper(char *dest, const char *src, size_t n); 49 void Curl_strntolower(char *dest, const char *src, size_t n);
|
H A D | altsvc.c | 88 free(as->src.host); in altsvc_free() 128 as->src.host = Curl_memdup0(srchost, hlen); in altsvc_createid() 129 if(!as->src.host) in altsvc_createid() 136 as->src.alpnid = srcalpnid; in altsvc_createid() 138 as->src.port = curlx_ultous(srcport); in altsvc_createid() 274 Curl_alpnid2str(as->src.alpnid), in altsvc_out() 276 as->src.port, in altsvc_out() 448 if((srcalpnid == as->src.alpnid) && in altsvc_flush() 449 (srcport == as->src.port) && in altsvc_flush() 696 if((as->src.alpnid == srcalpnid) && in Curl_altsvc_lookup() [all …]
|
/curl/ |
H A D | Dockerfile | 13 # docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/usr/src -w /usr/src curl/curl autoreconf -fi 14 # docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/usr/src -w /usr/src curl/curl ./configure -… 15 # docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/usr/src -w /usr/src curl/curl make 16 # docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/usr/src -w /usr/src curl/curl ./maketgz 8.7… 20 # docker run --rm -it -u $(id -u):$(id -g) -v (pwd):/usr/src -w /usr/src curl/curl bash
|
H A D | buildconf.bat | 105 echo * %CD%\src\tool_hugehelp.c 143 echo * %CD%\src\tool_hugehelp.c 144 if exist src\tool_hugehelp.c ( 145 del src\tool_hugehelp.c 2>NUL 146 if exist src\tool_hugehelp.c ( 166 if exist src\tool_hugehelp.c.cvs ( 167 copy /Y src\tool_hugehelp.c.cvs src\tool_hugehelp.c 1>NUL 2>&1 171 echo.>> src\tool_hugehelp.c 173 echo {>> src\tool_hugehelp.c 176 echo #endif>> src\tool_hugehelp.c [all …]
|
H A D | Makefile.am | 74 plan9/src/mkfile.inc \ 75 plan9/src/mkfile 89 SUBDIRS = lib docs src scripts 97 include src/Makefile.inc 172 mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm . 223 (cd src && $(MAKE) checksrc) 230 (cd src && $(MAKE) tidy)
|
H A D | Makefile.dist | 43 $(MAKE) -C src -f Makefile.mk CFG=$@ CROSSPREFIX=i586-pc-msdosdjgpp- 55 $(MAKE) -C src -f Makefile.mk CFG=$@ CROSSPREFIX=m68k-amigaos-
|
/curl/.github/workflows/ |
H A D | codespell.yml | 14 - 'src/**' 20 - 'src/**' 39 … run: codespell --skip src/tool_hugehelp.c -I .github/scripts/codespell-ignore.txt include src lib
|
/curl/packages/vms/ |
H A D | gnv_link_curl.com | 398 $ link'ldebug'/exe=[.src]curl.exe/dsf=[.src]curl.dsf - 399 [.src]curl-tool_main.o, [.src]curl-tool_binmode.o, - 400 [.src]curl-tool_bname.o, [.src]curl-tool_cb_dbg.o, - 401 [.src]curl-tool_cb_hdr.o, [.src]curl-tool_cb_prg.o, - 402 [.src]curl-tool_cb_rea.o, [.src]curl-tool_cb_see.o, - 407 [.src]curl-tool_getpass.o, [.src]curl-tool_help.o, - 411 [.src]curl-tool_msgs.o, [.src]curl-tool_operate.o, - 414 [.src]curl-tool_setopt.o, [.src]curl-tool_sleep.o, - 415 [.src]curl-tool_urlglob.o, [.src]curl-tool_util.o, - 416 [.src]curl-tool_vms.o, [.src]curl-tool_writeenv.o, - [all …]
|
H A D | clean_gnv_curl.com | 76 $ file = "lcl_root:[.src]*.lis" 79 $ file = "lcl_root:[.src]cc_temp*." 82 $ file = "lcl_root:[.src]*.dsf" 85 $ file = "lcl_root:[.src]*.o" 164 $ file = "lcl_root:[.src]config.h" 167 $ file = "lcl_root:[.src]curl." 230 $ file = "lcl_root:[.src]curl.exe"
|
/curl/projects/Windows/ |
H A D | .gitignore | 5 VC*/src/*curl.vcproj.dist 7 VC*/src/*curl.vcxproj.dist
|
/curl/tests/data/ |
H A D | test1478 | 18 src/tool_listhelp.c is in sync with docs/cmdline-opts 28 %include %SRCDIR/../src/tool_listhelp.c%
|
/curl/tests/unit/ |
H A D | Makefile.am | 38 -I$(top_srcdir)/src \ 48 LDADD = $(top_builddir)/src/libcurltool.la \
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_PUT.md | 45 FILE *src = userdata; 48 size_t retcode = fread(ptr, size, nmemb, src); 57 FILE *src = fopen("local-file", "r"); 70 curl_easy_setopt(curl, CURLOPT_READDATA, src);
|
H A D | CURLOPT_UPLOAD.md | 53 FILE *src = userdata; 56 size_t retcode = fread(ptr, size, nmemb, src); 65 FILE *src = fopen("local-file", "r"); 78 curl_easy_setopt(curl, CURLOPT_READDATA, src);
|
/curl/projects/ |
H A D | generate.bat | 93 call :generate vcxproj Windows\VC10\src\curl.tmpl Windows\VC10\src\curl.vcxproj 97 call :clean Windows\VC10\src\curl.vcxproj 108 call :generate vcxproj Windows\VC11\src\curl.tmpl Windows\VC11\src\curl.vcxproj 112 call :clean Windows\VC11\src\curl.vcxproj 123 call :generate vcxproj Windows\VC12\src\curl.tmpl Windows\VC12\src\curl.vcxproj 127 call :clean Windows\VC12\src\curl.vcxproj 157 for /f "delims=" %%c in ('dir /b ..\src\*.c') do call :element %1 src "%%c" %3 159 for /f "delims=" %%h in ('dir /b ..\src\*.h') do call :element %1 src "%%h" %3 161 for /f "delims=" %%r in ('dir /b ..\src\*.rc') do call :element %1 src "%%r" %3 217 rem %2 - Directory (src, lib, lib\vauth, lib\vquic, lib\vssh, lib\vtls)
|
/curl/scripts/ |
H A D | Makefile.am | 50 $(PERL) $(srcdir)/completion.pl --curl $(top_builddir)/src/curl$(EXEEXT) --shell zsh > $@ ; fi 60 $(PERL) $(srcdir)/completion.pl --curl $(top_builddir)/src/curl$(EXEEXT) --shell fish > $@ ; fi
|
/curl/src/ |
H A D | Makefile.am | 42 -I$(top_builddir)/src \ 44 -I$(top_srcdir)/src 100 MKHELP=$(top_srcdir)/src/mkhelp.pl
|