/curl/src/ |
H A D | tool_cb_see.c | 50 int tool_seek_cb(void *userdata, curl_off_t offset, int whence) in tool_seek_cb() argument 60 if(offset > OUR_MAX_SEEK_O) { in tool_seek_cb() 64 curl_off_t left = offset; in tool_seek_cb() 85 if(LSEEK_ERROR == lseek(per->infd, offset, whence)) in tool_seek_cb()
|
H A D | tool_cb_see.h | 32 int tool_seek_cb(void *userdata, curl_off_t offset, int whence);
|
H A D | tool_formparse.h | 63 int tool_mime_stdin_seek(void *instream, curl_off_t offset, int whence);
|
/curl/docs/cmdline-opts/ |
H A D | continue-at.md | 6 Arg: <offset> 7 Help: Resumed transfer offset 20 Resume a previous transfer from the given byte offset. The given offset is the
|
/curl/tests/server/ |
H A D | getpart.c | 148 size_t offset = 0; in readline() local 159 int bytestoread = curlx_uztosi(*bufsize - offset); in readline() 161 if(!fgets(*buffer + offset, bytestoread, stream)) in readline() 162 return (offset != 0) ? GPE_OK : GPE_END_OF_FILE; in readline() 164 *length = offset + line_length(*buffer + offset, bytestoread); in readline() 167 offset = *length; in readline()
|
H A D | rtspd.c | 100 size_t offset; /* size of the incoming request */ member 669 pipereq_length = req->offset - req->checkindex; in get_request() 675 req->offset = 0; in get_request() 708 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); in get_request() 723 reqbuf[req->offset] = '\0'; in get_request() 724 storerequest(reqbuf, req->offset); in get_request() 730 req->offset += (size_t)got; in get_request() 731 reqbuf[req->offset] = '\0'; in get_request() 743 if((req->offset == REQBUFSIZ-1) && (got > 0)) { in get_request() 749 else if(req->offset > REQBUFSIZ-1) { in get_request() [all …]
|
H A D | sws.c | 847 req->offset = 0; in init_httprequest() 888 reqbuf[req->offset] = '\0'; in get_request() 890 req->offset = 0; in get_request() 896 got = sread(sock, reqbuf + req->offset, REQBUFSIZ - req->offset); in get_request() 898 req->offset += got; in get_request() 926 if(req->offset) { in get_request() 931 req->offset = 0; in get_request() 949 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); in get_request() 975 req->offset += (size_t)got; in get_request() 976 reqbuf[req->offset] = '\0'; in get_request() [all …]
|
/curl/lib/ |
H A D | mime.c | 282 state->offset = 0; in mimesetstate() 685 offset += part->state.offset; in mime_mem_seek() 692 if(offset < 0 || offset > part->datasize) in mime_mem_seek() 695 part->state.offset = offset; in mime_mem_seek() 767 size_t offset = curlx_sotouz(state->offset); in readback_bytes() local 769 if(numbytes > offset) { in readback_bytes() 770 sz = numbytes - offset; in readback_bytes() 771 bytes += offset; in readback_bytes() 774 sz = offset - numbytes; in readback_bytes() 785 state->offset += sz; in readback_bytes() [all …]
|
H A D | smb.c | 136 unsigned short offset; member 202 unsigned int offset; member 216 unsigned int offset; member 763 curl_off_t offset = data->req.offset; in smb_send_read() local 770 msg.offset = smb_swap32((unsigned int) offset); in smb_send_read() 771 msg.offset_high = smb_swap32((unsigned int) (offset >> 32)); in smb_send_read() 784 curl_off_t offset = data->req.offset; in smb_send_write() local 795 msg->offset = smb_swap32((unsigned int) offset); in smb_send_write() 1006 data->req.offset = 0; in smb_request_state() 1052 data->req.offset += len; in smb_request_state() [all …]
|
H A D | bufq.c | 125 static void chunk_peek_at(const struct buf_chunk *chunk, size_t offset, in chunk_peek_at() argument 128 offset += chunk->r_offset; in chunk_peek_at() 129 DEBUGASSERT(chunk->w_offset >= offset); in chunk_peek_at() 130 *pbuf = &chunk->x.data[offset]; in chunk_peek_at() 131 *plen = chunk->w_offset - offset; in chunk_peek_at() 479 bool Curl_bufq_peek_at(struct bufq *q, size_t offset, in Curl_bufq_peek_at() argument 489 if(offset >= clen) { in Curl_bufq_peek_at() 490 offset -= clen; in Curl_bufq_peek_at() 494 chunk_peek_at(c, offset, pbuf, plen); in Curl_bufq_peek_at()
|
H A D | sendf.h | 218 struct Curl_creader *reader, curl_off_t offset); 266 curl_off_t offset); 371 CURLcode Curl_creader_resume_from(struct Curl_easy *data, curl_off_t offset);
|
H A D | sendf.c | 583 curl_off_t offset) in Curl_creader_def_resume_from() argument 587 (void)offset; in Curl_creader_def_resume_from() 752 curl_off_t offset) in cr_in_resume_from() argument 779 (offset - passed > (curl_off_t)sizeof(scratch)) ? in cr_in_resume_from() 781 curlx_sotouz(offset - passed); in cr_in_resume_from() 797 } while(passed < offset); in cr_in_resume_from() 802 ctx->total_len -= offset; in cr_in_resume_from() 1274 curl_off_t offset) in cr_buf_resume_from() argument 1284 if(offset <= 0) in cr_buf_resume_from() 1286 boffset = (size_t)offset; in cr_buf_resume_from() [all …]
|
H A D | curl_setup.h | 404 # define lseek(fdes,offset,whence) _lseeki64(fdes, offset, whence) argument 428 # define lseek(fdes,offset,whence) _lseek(fdes, (long)offset, whence) argument
|
H A D | headers.c | 230 size_t offset; in unfold_value() local 234 offset = hs->value - hs->buffer; in unfold_value() 235 oalloc = olen + offset + 1; in unfold_value() 260 newhs->value = &newhs->buffer[offset]; in unfold_value()
|
/curl/docs/examples/ |
H A D | anyauthput.c | 58 static int my_seek(void *userp, curl_off_t offset, int origin) in my_seek() argument 62 if(-1 == fseek(fp, (long) offset, origin)) in my_seek()
|
/curl/lib/vssh/ |
H A D | wolfssh.c | 254 word32 offset[2]; in wsftp_send() local 258 offset[0] = (word32)sshc->offset&0xFFFFFFFF; in wsftp_send() 259 offset[1] = (word32)(sshc->offset>>32)&0xFFFFFFFF; in wsftp_send() 263 &offset[0], in wsftp_send() 284 len, sshc->offset); in wsftp_send() 285 sshc->offset += len; in wsftp_send() 299 word32 offset[2]; in wsftp_recv() local 302 offset[0] = (word32)sshc->offset&0xFFFFFFFF; in wsftp_recv() 303 offset[1] = (word32)(sshc->offset>>32)&0xFFFFFFFF; in wsftp_recv() 307 &offset[0], in wsftp_recv() [all …]
|
/curl/docs/libcurl/opts/ |
H A D | CURLOPT_SEEKDATA.md | 46 static int seek_cb(void *clientp, curl_off_t offset, int origin) 49 lseek(d->our_fd, offset, origin);
|
H A D | CURLOPT_SEEKFUNCTION.md | 31 int seek_callback(void *clientp, curl_off_t offset, int origin); 61 the data type for *offset* is not the same as defined for curl_off_t on 76 static int seek_cb(void *clientp, curl_off_t offset, int origin) 79 lseek(d->our_fd, offset, origin);
|
H A D | CURLOPT_RESUME_FROM.md | 17 CURLOPT_RESUME_FROM - offset to resume transfer from 29 Pass a long as parameter. It contains the offset in number of bytes that you
|
H A D | CURLOPT_RESUME_FROM_LARGE.md | 17 CURLOPT_RESUME_FROM_LARGE - offset to resume transfer from 30 Pass a curl_off_t as parameter. It contains the offset in number of bytes that
|
/curl/lib/vauth/ |
H A D | krb5_sspi.c | 256 size_t offset = 0; in Curl_auth_create_gssapi_security_message() local 422 offset += wrap_buf[0].cbBuffer; in Curl_auth_create_gssapi_security_message() 423 memcpy(appdata + offset, wrap_buf[1].pvBuffer, wrap_buf[1].cbBuffer); in Curl_auth_create_gssapi_security_message() 424 offset += wrap_buf[1].cbBuffer; in Curl_auth_create_gssapi_security_message() 425 memcpy(appdata + offset, wrap_buf[2].pvBuffer, wrap_buf[2].cbBuffer); in Curl_auth_create_gssapi_security_message()
|
/curl/docs/libcurl/ |
H A D | curl_mime_data_cb.md | 29 int seekfunc(void *arg, curl_off_t offset, int origin); 130 int seek_callback(void *arg, curl_off_t offset, int origin) 136 offset += p->size; 139 offset += p->position; 143 if(offset < 0) 145 p->position = offset;
|
H A D | curl_ws_meta.md | 51 curl_off_t offset; 65 ## `offset` 68 the offset into the final fragment where this piece belongs.
|
/curl/include/curl/ |
H A D | websockets.h | 34 curl_off_t offset; /* the offset of this data into the frame */ member
|
/curl/tests/libtest/ |
H A D | lib2305.c | 65 nread, meta->age, meta->flags, meta->offset, meta->bytesleft); in websocket()
|