diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-03-24 01:10:29 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-03-24 01:10:29 +0000 |
commit | fccbdadea9428b34e2aeeee59e87b5eed985c8c1 (patch) | |
tree | 1da6691d1333d1574468678a5354e12ad3a4e760 /docs/libcurl/opts/CURLOPT_SEEKFUNCTION.3 | |
parent | c392dd49023a4747eae43ab79f60aa1b1dc0be18 (diff) | |
parent | b8a443cf65e9c83cc179195ace84bd273158d7e3 (diff) | |
download | curl-fccbdadea9428b34e2aeeee59e87b5eed985c8c1.tar.gz |
Snap for 9806563 from b8a443cf65e9c83cc179195ace84bd273158d7e3 to udc-d1-releaseandroid-14.0.0_r9android-14.0.0_r8android-14.0.0_r7android-14.0.0_r6android-14.0.0_r5android-14.0.0_r4android-14.0.0_r3android-14.0.0_r12android-14.0.0_r11android-14.0.0_r10android14-d1-s7-releaseandroid14-d1-s6-releaseandroid14-d1-s5-releaseandroid14-d1-s4-releaseandroid14-d1-s3-releaseandroid14-d1-s2-releaseandroid14-d1-s1-releaseandroid14-d1-release
Change-Id: Ie6ba551498dfbe2c98875a9c370f342982a9ef45
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_SEEKFUNCTION.3')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_SEEKFUNCTION.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/libcurl/opts/CURLOPT_SEEKFUNCTION.3 b/docs/libcurl/opts/CURLOPT_SEEKFUNCTION.3 index ee2a83ba5..9d26a548e 100644 --- a/docs/libcurl/opts/CURLOPT_SEEKFUNCTION.3 +++ b/docs/libcurl/opts/CURLOPT_SEEKFUNCTION.3 @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * -.\" * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. +.\" * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms @@ -35,7 +35,7 @@ CURLOPT_SEEKFUNCTION \- user callback for seeking in input stream #define CURL_SEEKFUNC_CANTSEEK 2 /* tell libcurl seeking cannot be done, so libcurl might try other means instead */ -int seek_callback(void *userp, curl_off_t offset, int origin); +int seek_callback(void *clientp, curl_off_t offset, int origin); CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SEEKFUNCTION, seek_callback); .SH DESCRIPTION @@ -53,7 +53,7 @@ connection. The function shall work like fseek(3) or lseek(3) and it gets SEEK_SET, SEEK_CUR or SEEK_END as argument for \fIorigin\fP, although libcurl currently only passes SEEK_SET. -\fIuserp\fP is the pointer you set with \fICURLOPT_SEEKDATA(3)\fP. +\fIclientp\fP is the pointer you set with \fICURLOPT_SEEKDATA(3)\fP. The callback function must return \fICURL_SEEKFUNC_OK\fP on success, \fICURL_SEEKFUNC_FAIL\fP to cause the upload operation to fail or @@ -70,9 +70,9 @@ By default, this is NULL and unused. HTTP, FTP, SFTP .SH EXAMPLE .nf -static int seek_cb(void *userp, curl_off_t offset, int origin) +static int seek_cb(void *clientp, curl_off_t offset, int origin) { - struct data *d = (struct data *)userp; + struct data *d = (struct data *)clientp; lseek(our_fd, offset, origin); return CURL_SEEKFUNC_OK; } |