/curl/lib/ |
H A D | memdebug.c | 41 size_t size; member 136 size_t size; in curl_dbg_malloc() local 144 size = sizeof(struct memdebug) + wantedsize; in curl_dbg_malloc() 146 mem = (Curl_cmalloc)(size); in curl_dbg_malloc() 148 mem->size = wantedsize; in curl_dbg_malloc() 163 size_t size, user_size; in curl_dbg_calloc() local 173 size = sizeof(struct memdebug) + user_size; in curl_dbg_calloc() 175 mem = (Curl_ccalloc)(1, size); in curl_dbg_calloc() 177 mem->size = user_size; in curl_dbg_calloc() 265 mem = (Curl_crealloc)(mem, size); in curl_dbg_realloc() [all …]
|
H A D | mime.c | 390 if(!size) in encoder_nop_read() 396 if(size) in encoder_nop_read() 400 return size; in encoder_nop_read() 418 if(!size) in encoder_7bit_read() 479 size -= 4; in encoder_base64_read() 519 if(size <= 0) in encoder_base64_size() 523 size = 4 * (1 + (size - 1) / 3); in encoder_base64_size() 526 return size + 2 * ((size - 1) / MAX_ENCODED_LINE_LENGTH); in encoder_base64_size() 1620 return size; in slist_size() 1646 return size; in multipart_size() [all …]
|
H A D | strdup.c | 136 void *Curl_saferealloc(void *ptr, size_t size) in Curl_saferealloc() argument 138 void *datap = realloc(ptr, size); in Curl_saferealloc() 139 if(size && !datap) in Curl_saferealloc()
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_DEBUGFUNCTION.md | 40 size_t size, 56 not null-terminated, but is exactly of the *size* as told by the 57 *size* argument. 111 FILE *stream, unsigned char *ptr, size_t size) 118 text, (long)size, (long)size); 120 for(i = 0; i < size; i += width) { 125 if(i + c < size) 132 for(c = 0; (c < width) && (i + c < size); c++) { 143 char *data, size_t size, 153 fwrite(data, size, 1, stderr); [all …]
|
H A D | CURLOPT_UPLOAD.md | 39 size before starting the transfer. The library enables this by adding a header 41 transfer, you must specify the size of the data with 51 static size_t read_cb(char *ptr, size_t size, size_t nmemb, void *userdata) 55 'size' * 'nmemb' bytes */ 56 size_t retcode = fread(ptr, size, nmemb, src); 66 curl_off_t fsize; /* set this to the size of the input file */ 80 /* Set the size of the file to upload */
|
H A D | CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE.md | 16 CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE - size threshold for pipelining penalty 24 long size); 31 Pass a long with a **size** in bytes. If a transfer in a pipeline is 39 The default value is 0, which means that the size penalization is inactive.
|
H A D | CURLINFO_CONTENT_LENGTH_UPLOAD.md | 17 CURLINFO_CONTENT_LENGTH_UPLOAD - get the specified size of the upload 30 Pass a pointer to a double to receive the specified size of the upload. Since 31 7.19.4, this returns -1 if the size is not known. 50 /* check the size */
|
H A D | CURLOPT_WRITEFUNCTION.md | 24 size_t write_callback(char *ptr, size_t size, size_t nmemb, void *userdata); 37 delivered data, and the size of that data is *nmemb*; *size* is always 1. 85 size_t size; 88 static size_t cb(char *data, size_t size, size_t nmemb, void *clientp) 90 size_t realsize = size * nmemb; 93 char *ptr = realloc(mem->response, mem->size + realsize + 1); 98 memcpy(&(mem->response[mem->size]), data, realsize); 99 mem->size += realsize; 100 mem->response[mem->size] = 0;
|
H A D | CURLOPT_PUT.md | 43 static size_t read_cb(char *ptr, size_t size, size_t nmemb, void *userdata) 47 'size' * 'nmemb' bytes */ 48 size_t retcode = fread(ptr, size, nmemb, src); 58 curl_off_t fsize; /* set this to the size of the input file */ 72 /* Set the size of the file to upload */
|
/curl/docs/examples/ |
H A D | smtp-tls.c | 64 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument 68 size_t room = size * nmemb; in payload_source() 70 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
|
H A D | smtp-authzid.c | 70 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument 74 size_t room = size * nmemb; in payload_source() 76 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
|
H A D | smtp-multi.c | 60 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument 64 size_t room = size * nmemb; in payload_source() 66 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
|
H A D | smtp-ssl.c | 64 static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp) in payload_source() argument 68 size_t room = size * nmemb; in payload_source() 70 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in payload_source()
|
H A D | sessioninfo.c | 40 static size_t wrfu(void *ptr, size_t size, size_t nmemb, void *stream) in wrfu() argument 69 fprintf(stderr, "Certificate #%u: %.*s", i, dn.size, dn.data); in wrfu() 86 return size * nmemb; in wrfu()
|
H A D | crawler.c | 59 size_t size; member 66 char *ptr = realloc(mem->buf, mem->size + realsize); in grow_buffer() 73 memcpy(&(mem->buf[mem->size]), contents, realsize); in grow_buffer() 74 mem->size += realsize; in grow_buffer() 88 mem->size = 0; in make_handle() 124 htmlDocPtr doc = htmlReadMemory(mem->buf, mem->size, url, NULL, opts); in follow_links() 211 if(is_html(ctype) && mem->size > 100) { in main()
|
/curl/tests/data/ |
H A D | test104 | 10 <size> 12 </size> 21 FTP --head to get file size only
|
H A D | test138 | 13 <size> 15 </size> 28 FTP download without size in RETR string and no SIZE command
|
/curl/packages/OS400/ |
H A D | os400sys.c | 128 if(size < 0) in get_buffer() 132 buf->buf = malloc(size); in get_buffer() 134 buf->size = size; in get_buffer() 139 if((unsigned long) size <= buf->size) { in get_buffer() 143 if(buf->size - size < MIN_BYTE_GAIN) in get_buffer() 149 cp = realloc(buf->buf, size); in get_buffer() 152 buf->size = size; in get_buffer() 154 else if(size <= buf->size) in get_buffer() 180 if(size < 0) in buffer_threaded() 195 return get_buffer(bufs + key, size); in buffer_threaded() [all …]
|
/curl/tests/libtest/ |
H A D | lib1541.c | 80 static size_t header_callback(void *ptr, size_t size, size_t nmemb, in header_callback() argument 84 size_t len = size * nmemb; in header_callback() 99 (void)fwrite(ptr, size, nmemb, stdout); in header_callback() 103 static size_t write_callback(void *ptr, size_t size, size_t nmemb, void *userp) in write_callback() argument 109 fwrite(ptr, size, nmemb, stdout); in write_callback() 110 return size * nmemb; in write_callback()
|
H A D | lib1556.c | 34 static size_t header(void *ptr, size_t size, size_t nmemb, void *stream) in header() argument 36 size_t headersize = size * nmemb; in header() 44 return nmemb * size; in header()
|
H A D | lib1520.c | 52 static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) in read_callback() argument 57 if((size == 0) || (nmemb == 0) || ((size*nmemb) < 1)) { in read_callback()
|
/curl/tests/http/clients/ |
H A D | ws-data.c | 44 void dump(const char *text, unsigned char *ptr, size_t size, in dump() argument 57 text, (unsigned long)size, (unsigned long)size); in dump() 59 for(i = 0; i<size; i += width) { in dump() 66 if(i + c < size) in dump() 72 for(c = 0; (c < width) && (i + c < size); c++) { in dump() 74 if(nohex && (i + c + 1 < size) && ptr[i + c] == 0x0D && in dump() 82 if(nohex && (i + c + 2 < size) && ptr[i + c + 1] == 0x0D && in dump()
|
H A D | h2-pausing.c | 63 char *data, size_t size, in debug_cb() argument 90 if(size > 0) { in debug_cb() 93 for(i = 0; i < size - 1; i++) { in debug_cb() 107 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb() 114 (void)fwrite(data, size, 1, output); in debug_cb() 115 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb() 125 fprintf(output, "[%ld bytes data]\n", (long)size); in debug_cb() 166 static size_t cb(void *data, size_t size, size_t nmemb, void *clientp) in cb() argument 168 size_t realsize = size * nmemb; in cb()
|
/curl/src/ |
H A D | tool_urlglob.c | 44 pat->content.Set.size = 1; in glob_fixed() 104 pat = &glob->pattern[glob->size]; in glob_set() 107 pat->content.Set.size = 0; in glob_set() 153 ++pat->content.Set.size; in glob_set() 200 pat = &glob->pattern[glob->size]; in glob_range() 445 if(++glob->size >= GLOB_PATTERN_NUM) in glob_parse() 515 for(i = 0; i < glob->size; i++) { in glob_cleanup() 549 pat = &glob->pattern[glob->size - 1 - i]; in glob_next_url() 584 for(i = 0; i < glob->size; ++i) { in glob_next_url() 646 if(num && (num < glob->size)) { in glob_match_url() [all …]
|
/curl/docs/cmdline-opts/ |
H A D | max-filesize.md | 6 Help: Maximum file size to download 19 Specify the maximum size (in bytes) of a file to download. If the file 23 A size modifier may be used. For example, Appending 'k' or 'K' counts the 27 **NOTE**: before curl 8.4.0, when the file size is not known prior to
|