aboutsummaryrefslogtreecommitdiff
path: root/docs/libcurl/opts/CURLOPT_SEEKFUNCTION.3
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-24 01:10:29 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-24 01:10:29 +0000
commitfccbdadea9428b34e2aeeee59e87b5eed985c8c1 (patch)
tree1da6691d1333d1574468678a5354e12ad3a4e760 /docs/libcurl/opts/CURLOPT_SEEKFUNCTION.3
parentc392dd49023a4747eae43ab79f60aa1b1dc0be18 (diff)
parentb8a443cf65e9c83cc179195ace84bd273158d7e3 (diff)
downloadcurl-fccbdadea9428b34e2aeeee59e87b5eed985c8c1.tar.gz
Change-Id: Ie6ba551498dfbe2c98875a9c370f342982a9ef45
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_SEEKFUNCTION.3')
-rw-r--r--docs/libcurl/opts/CURLOPT_SEEKFUNCTION.310
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;
}