cmake/Utilities/cmcurl/lib/curl_path.h

50 lines
1.7 KiB
C
Raw Normal View History

2018-08-09 18:06:22 +02:00
#ifndef HEADER_CURL_PATH_H
#define HEADER_CURL_PATH_H
2018-04-23 21:13:27 +02:00
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
2023-07-02 19:51:09 +02:00
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
2018-04-23 21:13:27 +02:00
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
2021-09-14 00:13:48 +02:00
* are also available at https://curl.se/docs/copyright.html.
2018-04-23 21:13:27 +02:00
*
* 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.
*
2022-11-16 20:14:03 +01:00
* SPDX-License-Identifier: curl
*
2018-04-23 21:13:27 +02:00
***************************************************************************/
#include "curl_setup.h"
#include <curl/curl.h>
#include "urldata.h"
2024-04-14 22:45:38 +02:00
#ifdef _WIN32
2018-04-23 21:13:27 +02:00
# 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
2021-09-14 00:13:48 +02:00
CURLcode Curl_getworkingpath(struct Curl_easy *data,
2018-04-23 21:13:27 +02:00
char *homedir,
char **path);
CURLcode Curl_get_pathname(const char **cpp, char **path, char *homedir);
2018-11-29 20:27:00 +01:00
#endif /* HEADER_CURL_PATH_H */