diff options
| author | gazimovbulat <[email protected]> | 2025-05-13 00:09:51 +0300 |
|---|---|---|
| committer | gazimovbulat <[email protected]> | 2025-05-13 00:22:36 +0300 |
| commit | 2c2bd72c4484a5704db08733e5e22b58eee89944 (patch) | |
| tree | 83070d4d8e3ee75c05b3a61b990c72a127411f8d /contrib/libs/curl/lib/curl_path.h | |
| parent | 31c8ff060ca43cd2220f90cbcc619ff5f8c6f37e (diff) | |
feat contrib curl: include libssh2 for sftp
commit_hash:6721cdd5ed873cd6f6243dcb846cacad6acb2155
Diffstat (limited to 'contrib/libs/curl/lib/curl_path.h')
| -rw-r--r-- | contrib/libs/curl/lib/curl_path.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/contrib/libs/curl/lib/curl_path.h b/contrib/libs/curl/lib/curl_path.h new file mode 100644 index 00000000000..cbe51c22176 --- /dev/null +++ b/contrib/libs/curl/lib/curl_path.h @@ -0,0 +1,49 @@ +#ifndef HEADER_CURL_PATH_H +#define HEADER_CURL_PATH_H +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) Daniel Stenberg, <[email protected]>, 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 + * + ***************************************************************************/ + +#include "curl_setup.h" +#include <curl/curl.h> +#include "urldata.h" + +#ifdef _WIN32 +# undef PATH_MAX +# define PATH_MAX MAX_PATH +# ifndef R_OK +# define R_OK 4 +# endif +#endif + +#ifndef PATH_MAX +#define PATH_MAX 1024 /* just an extra precaution since there are systems that + have their definition hidden well */ +#endif + +CURLcode Curl_getworkingpath(struct Curl_easy *data, + char *homedir, + char **path); + +CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir); +#endif /* HEADER_CURL_PATH_H */ |
