forked from Xeeynamo/sonic-hybrid-rsdk
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
277 changed files
with
36,582 additions
and
0 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
sonic3air-main/framework/external/curl/curl/docs/libcurl/opts/CURLOPT_FNMATCH_FUNCTION.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
.\" ************************************************************************** | ||
.\" * _ _ ____ _ | ||
.\" * Project ___| | | | _ \| | | ||
.\" * / __| | | | |_) | | | ||
.\" * | (__| |_| | _ <| |___ | ||
.\" * \___|\___/|_| \_\_____| | ||
.\" * | ||
.\" * Copyright (C) 1998 - 2022, 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 | ||
.\" * are also available at https://curl.se/docs/copyright.html. | ||
.\" * | ||
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell | ||
.\" * copies of the Software, and permit persons to whom the Software is | ||
.\" * furnished to do so, under the terms of the COPYING file. | ||
.\" * | ||
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
.\" * KIND, either express or implied. | ||
.\" * | ||
.\" * SPDX-License-Identifier: curl | ||
.\" * | ||
.\" ************************************************************************** | ||
.\" | ||
.TH CURLOPT_FNMATCH_FUNCTION 3 "May 17, 2022" "libcurl 7.84.0" "curl_easy_setopt options" | ||
|
||
.SH NAME | ||
CURLOPT_FNMATCH_FUNCTION \- wildcard match callback | ||
.SH SYNOPSIS | ||
.nf | ||
#include <curl/curl.h> | ||
|
||
int fnmatch_callback(void *ptr, | ||
const char *pattern, | ||
const char *string); | ||
|
||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FNMATCH_FUNCTION, | ||
fnmatch_callback); | ||
.SH DESCRIPTION | ||
Pass a pointer to your callback function, which should match the prototype | ||
shown above. | ||
|
||
This callback is used for wildcard matching. | ||
|
||
Return \fICURL_FNMATCHFUNC_MATCH\fP if pattern matches the string, | ||
\fICURL_FNMATCHFUNC_NOMATCH\fP if not or \fICURL_FNMATCHFUNC_FAIL\fP if an | ||
error occurred. | ||
.SH DEFAULT | ||
NULL == an internal function for wildcard matching. | ||
.SH PROTOCOLS | ||
FTP | ||
.SH EXAMPLE | ||
.nf | ||
static int my_fnmatch(void *clientp, | ||
const char *pattern, const char *string) | ||
{ | ||
struct local_stuff *data = (struct local_stuff *)clientp; | ||
if(string_match(pattern, string)) | ||
return CURL_FNMATCHFUNC_MATCH; | ||
else | ||
return CURL_FNMATCHFUNC_NOMATCH; | ||
} | ||
|
||
{ | ||
struct local_stuff local_data; | ||
curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.example.com/file*"); | ||
curl_easy_setopt(curl, CURLOPT_WILDCARDMATCH, 1L); | ||
curl_easy_setopt(curl, CURLOPT_FNMATCH_FUNCTION, my_fnmatch); | ||
curl_easy_setopt(curl, CURLOPT_FNMATCH_DATA, &local_data); | ||
} | ||
.fi | ||
.SH AVAILABILITY | ||
Added in 7.21.0 | ||
.SH RETURN VALUE | ||
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. | ||
.SH "SEE ALSO" | ||
.BR CURLOPT_FNMATCH_DATA "(3), " CURLOPT_DEBUGFUNCTION "(3), " |
86 changes: 86 additions & 0 deletions
86
sonic3air-main/framework/external/curl/curl/docs/libcurl/opts/CURLOPT_FOLLOWLOCATION.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
.\" ************************************************************************** | ||
.\" * _ _ ____ _ | ||
.\" * Project ___| | | | _ \| | | ||
.\" * / __| | | | |_) | | | ||
.\" * | (__| |_| | _ <| |___ | ||
.\" * \___|\___/|_| \_\_____| | ||
.\" * | ||
.\" * Copyright (C) 1998 - 2022, 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 | ||
.\" * are also available at https://curl.se/docs/copyright.html. | ||
.\" * | ||
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell | ||
.\" * copies of the Software, and permit persons to whom the Software is | ||
.\" * furnished to do so, under the terms of the COPYING file. | ||
.\" * | ||
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
.\" * KIND, either express or implied. | ||
.\" * | ||
.\" * SPDX-License-Identifier: curl | ||
.\" * | ||
.\" ************************************************************************** | ||
.\" | ||
.TH CURLOPT_FOLLOWLOCATION 3 "May 17, 2022" "libcurl 7.84.0" "curl_easy_setopt options" | ||
|
||
.SH NAME | ||
CURLOPT_FOLLOWLOCATION \- follow HTTP 3xx redirects | ||
.SH SYNOPSIS | ||
.nf | ||
#include <curl/curl.h> | ||
|
||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FOLLOWLOCATION, long enable); | ||
.fi | ||
.SH DESCRIPTION | ||
A long parameter set to 1 tells the library to follow any Location: header | ||
that the server sends as part of an HTTP header in a 3xx response. The | ||
Location: header can specify a relative or an absolute URL to follow. | ||
|
||
libcurl will issue another request for the new URL and follow new Location: | ||
headers all the way until no more such headers are returned. | ||
\fICURLOPT_MAXREDIRS(3)\fP can be used to limit the number of redirects | ||
libcurl will follow. | ||
|
||
libcurl limits what protocols it automatically follows to. The accepted | ||
protocols are set with \fICURLOPT_REDIR_PROTOCOLS(3)\fP. By default libcurl | ||
will allow HTTP, HTTPS, FTP and FTPS on redirect (7.65.2). Older versions of | ||
libcurl allowed all protocols on redirect except those disabled for security | ||
reasons: Since 7.19.4 FILE and SCP are disabled, and since 7.40.0 SMB and SMBS | ||
are also disabled. | ||
|
||
When following a Location:, the 3xx response code that redirected it also | ||
dictates which request method it will use in the subsequent request: For 301, | ||
302 and 303 responses libcurl will switch method from POST to GET unless | ||
\fICURLOPT_POSTREDIR(3)\fP instructs libcurl otherwise. All other 3xx codes | ||
will make libcurl send the same method again. | ||
|
||
For users who think the existing location following is too naive, too simple | ||
or just lacks features, it is easy to instead implement your own redirect | ||
follow logic with the use of \fIcurl_easy_getinfo(3)\fP's | ||
\fICURLINFO_REDIRECT_URL(3)\fP option instead of using | ||
\fICURLOPT_FOLLOWLOCATION(3)\fP. | ||
.SH DEFAULT | ||
0, disabled | ||
.SH PROTOCOLS | ||
HTTP(S) | ||
.SH EXAMPLE | ||
.nf | ||
CURL *curl = curl_easy_init(); | ||
if(curl) { | ||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com"); | ||
|
||
/* example.com is redirected, so we tell libcurl to follow redirection */ | ||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); | ||
|
||
curl_easy_perform(curl); | ||
} | ||
.fi | ||
.SH AVAILABILITY | ||
Along with HTTP | ||
.SH RETURN VALUE | ||
Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not. | ||
.SH "SEE ALSO" | ||
.BR CURLOPT_REDIR_PROTOCOLS "(3), " CURLOPT_PROTOCOLS "(3), " | ||
.BR CURLOPT_POSTREDIR "(3), " | ||
.BR CURLINFO_REDIRECT_URL "(3), " CURLINFO_REDIRECT_COUNT "(3), " |
65 changes: 65 additions & 0 deletions
65
sonic3air-main/framework/external/curl/curl/docs/libcurl/opts/CURLOPT_FORBID_REUSE.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
.\" ************************************************************************** | ||
.\" * _ _ ____ _ | ||
.\" * Project ___| | | | _ \| | | ||
.\" * / __| | | | |_) | | | ||
.\" * | (__| |_| | _ <| |___ | ||
.\" * \___|\___/|_| \_\_____| | ||
.\" * | ||
.\" * Copyright (C) 1998 - 2022, 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 | ||
.\" * are also available at https://curl.se/docs/copyright.html. | ||
.\" * | ||
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell | ||
.\" * copies of the Software, and permit persons to whom the Software is | ||
.\" * furnished to do so, under the terms of the COPYING file. | ||
.\" * | ||
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
.\" * KIND, either express or implied. | ||
.\" * | ||
.\" * SPDX-License-Identifier: curl | ||
.\" * | ||
.\" ************************************************************************** | ||
.\" | ||
.TH CURLOPT_FORBID_REUSE 3 "May 17, 2022" "libcurl 7.84.0" "curl_easy_setopt options" | ||
|
||
.SH NAME | ||
CURLOPT_FORBID_REUSE \- make connection get closed at once after use | ||
.SH SYNOPSIS | ||
.nf | ||
#include <curl/curl.h> | ||
|
||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FORBID_REUSE, long close); | ||
.fi | ||
.SH DESCRIPTION | ||
Pass a long. Set \fIclose\fP to 1 to make libcurl explicitly close the | ||
connection when done with the transfer. Normally, libcurl keeps all | ||
connections alive when done with one transfer in case a succeeding one follows | ||
that can re-use them. This option should be used with caution and only if you | ||
understand what it does as it can seriously impact performance. | ||
|
||
Set to 0 to have libcurl keep the connection open for possible later re-use | ||
(default behavior). | ||
.SH DEFAULT | ||
0 | ||
.SH PROTOCOLS | ||
Most | ||
.SH EXAMPLE | ||
.nf | ||
{ | ||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); | ||
curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 1L); | ||
curl_easy_perform(curl); | ||
|
||
/* this second transfer may not reuse the same connection */ | ||
curl_easy_perform(curl); | ||
} | ||
.fi | ||
.SH AVAILABILITY | ||
Always | ||
.SH RETURN VALUE | ||
Returns CURLE_OK | ||
.SH "SEE ALSO" | ||
.BR CURLOPT_FRESH_CONNECT "(3), " CURLOPT_MAXCONNECTS "(3), " | ||
.BR CURLOPT_MAXLIFETIME_CONN "(3), " |
64 changes: 64 additions & 0 deletions
64
sonic3air-main/framework/external/curl/curl/docs/libcurl/opts/CURLOPT_FRESH_CONNECT.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
.\" ************************************************************************** | ||
.\" * _ _ ____ _ | ||
.\" * Project ___| | | | _ \| | | ||
.\" * / __| | | | |_) | | | ||
.\" * | (__| |_| | _ <| |___ | ||
.\" * \___|\___/|_| \_\_____| | ||
.\" * | ||
.\" * Copyright (C) 1998 - 2022, 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 | ||
.\" * are also available at https://curl.se/docs/copyright.html. | ||
.\" * | ||
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell | ||
.\" * copies of the Software, and permit persons to whom the Software is | ||
.\" * furnished to do so, under the terms of the COPYING file. | ||
.\" * | ||
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
.\" * KIND, either express or implied. | ||
.\" * | ||
.\" * SPDX-License-Identifier: curl | ||
.\" * | ||
.\" ************************************************************************** | ||
.\" | ||
.TH CURLOPT_FRESH_CONNECT 3 "May 17, 2022" "libcurl 7.84.0" "curl_easy_setopt options" | ||
|
||
.SH NAME | ||
CURLOPT_FRESH_CONNECT \- force a new connection to be used | ||
.SH SYNOPSIS | ||
.nf | ||
#include <curl/curl.h> | ||
|
||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FRESH_CONNECT, long fresh); | ||
.fi | ||
.SH DESCRIPTION | ||
Pass a long. Set to 1 to make the next transfer use a new (fresh) connection | ||
by force instead of trying to re-use an existing one. This option should be | ||
used with caution and only if you understand what it does as it may seriously | ||
impact performance. | ||
|
||
Related functionality is \fICURLOPT_FORBID_REUSE(3)\fP which makes sure the | ||
connection is closed after use so that it will not be re-used. | ||
|
||
Set \fIfresh\fP to 0 to have libcurl attempt re-using an existing connection | ||
(default behavior). | ||
.SH DEFAULT | ||
0 | ||
.SH PROTOCOLS | ||
Most | ||
.SH EXAMPLE | ||
.nf | ||
{ | ||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); | ||
curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, 1L); | ||
/* this transfer must use a new connection, not reuse an existing */ | ||
curl_easy_perform(curl); | ||
} | ||
.fi | ||
.SH AVAILABILITY | ||
Always | ||
.SH RETURN VALUE | ||
Returns CURLE_OK | ||
.SH "SEE ALSO" | ||
.BR CURLOPT_FORBID_REUSE "(3), " |
88 changes: 88 additions & 0 deletions
88
sonic3air-main/framework/external/curl/curl/docs/libcurl/opts/CURLOPT_FTPPORT.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
.\" ************************************************************************** | ||
.\" * _ _ ____ _ | ||
.\" * Project ___| | | | _ \| | | ||
.\" * / __| | | | |_) | | | ||
.\" * | (__| |_| | _ <| |___ | ||
.\" * \___|\___/|_| \_\_____| | ||
.\" * | ||
.\" * Copyright (C) 1998 - 2022, 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 | ||
.\" * are also available at https://curl.se/docs/copyright.html. | ||
.\" * | ||
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell | ||
.\" * copies of the Software, and permit persons to whom the Software is | ||
.\" * furnished to do so, under the terms of the COPYING file. | ||
.\" * | ||
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
.\" * KIND, either express or implied. | ||
.\" * | ||
.\" * SPDX-License-Identifier: curl | ||
.\" * | ||
.\" ************************************************************************** | ||
.\" | ||
.TH CURLOPT_FTPPORT 3 "May 17, 2022" "libcurl 7.84.0" "curl_easy_setopt options" | ||
|
||
.SH NAME | ||
CURLOPT_FTPPORT \- make FTP transfer active | ||
.SH SYNOPSIS | ||
.nf | ||
#include <curl/curl.h> | ||
|
||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_FTPPORT, char *spec); | ||
.fi | ||
.SH DESCRIPTION | ||
Pass a pointer to a null-terminated string as parameter. It specifies that the | ||
FTP transfer will be made actively and the given string will be used to get | ||
the IP address to use for the FTP PORT instruction. | ||
|
||
The PORT instruction tells the remote server to connect to our specified IP | ||
address. The string may be a plain IP address, a host name, a network | ||
interface name (under Unix) or just a '-' symbol to let the library use your | ||
system's default IP address. Default FTP operations are passive, and thus | ||
will not use PORT. | ||
|
||
The address can be followed by a ':' to specify a port, optionally followed by | ||
a '-' to specify a port range. If the port specified is 0, the operating | ||
system will pick a free port. If a range is provided and all ports in the | ||
range are not available, libcurl will report CURLE_FTP_PORT_FAILED for the | ||
handle. Invalid port/range settings are ignored. IPv6 addresses followed by | ||
a port or portrange have to be in brackets. IPv6 addresses without port/range | ||
specifier can be in brackets. | ||
|
||
Examples with specified ports: | ||
|
||
.nf | ||
eth0:0 | ||
192.168.1.2:32000-33000 | ||
curl.se:32123 | ||
[::1]:1234-4567 | ||
.fi | ||
|
||
You disable PORT again and go back to using the passive version by setting | ||
this option to NULL. | ||
|
||
The application does not have to keep the string around after setting this | ||
option. | ||
.SH DEFAULT | ||
NULL | ||
.SH PROTOCOLS | ||
FTP | ||
.SH EXAMPLE | ||
.nf | ||
CURL *curl = curl_easy_init(); | ||
if(curl) { | ||
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/old-server/file.txt"); | ||
curl_easy_setopt(curl, CURLOPT_FTPPORT, "-"); | ||
ret = curl_easy_perform(curl); | ||
curl_easy_cleanup(curl); | ||
} | ||
.fi | ||
.SH AVAILABILITY | ||
Port range support was added in 7.19.5 | ||
.SH RETURN VALUE | ||
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or | ||
CURLE_OUT_OF_MEMORY if there was insufficient heap space. | ||
.SH "SEE ALSO" | ||
.BR CURLOPT_FTP_USE_EPRT "(3), " CURLOPT_FTP_USE_EPSV "(3), " |
Oops, something went wrong.