tool_doswin.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_TOOL_DOSWIN_H
00002 #define HEADER_CURL_TOOL_DOSWIN_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
00011  *
00012  * This software is licensed as described in the file COPYING, which
00013  * you should have received as part of this distribution. The terms
00014  * are also available at https://curl.haxx.se/docs/copyright.html.
00015  *
00016  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00017  * copies of the Software, and permit persons to whom the Software is
00018  * furnished to do so, under the terms of the COPYING file.
00019  *
00020  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00021  * KIND, either express or implied.
00022  *
00023  ***************************************************************************/
00024 #include "tool_setup.h"
00025 
00026 #if defined(MSDOS) || defined(WIN32)
00027 
00028 #define SANITIZE_ALLOW_COLONS    (1<<0)  /* Allow colons */
00029 #define SANITIZE_ALLOW_PATH      (1<<1)  /* Allow path separators and colons */
00030 #define SANITIZE_ALLOW_RESERVED  (1<<2)  /* Allow reserved device names */
00031 #define SANITIZE_ALLOW_TRUNCATE  (1<<3)  /* Allow truncating a long filename */
00032 
00033 typedef enum {
00034   SANITIZE_ERR_OK = 0,           /* 0 - OK */
00035   SANITIZE_ERR_INVALID_PATH,     /* 1 - the path is invalid */
00036   SANITIZE_ERR_BAD_ARGUMENT,     /* 2 - bad function parameter */
00037   SANITIZE_ERR_OUT_OF_MEMORY,    /* 3 - out of memory */
00038   SANITIZE_ERR_LAST /* never use! */
00039 } SANITIZEcode;
00040 
00041 SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name,
00042                                 int flags);
00043 #ifdef UNITTESTS
00044 SANITIZEcode truncate_dryrun(const char *path, const size_t truncate_pos);
00045 SANITIZEcode msdosify(char **const sanitized, const char *file_name,
00046                       int flags);
00047 SANITIZEcode rename_if_reserved_dos_device_name(char **const sanitized,
00048                                                 const char *file_name,
00049                                                 int flags);
00050 #endif /* UNITTESTS */
00051 
00052 #if defined(MSDOS) && (defined(__DJGPP__) || defined(__GO32__))
00053 
00054 char **__crt0_glob_function(char *arg);
00055 
00056 #endif /* MSDOS && (__DJGPP__ || __GO32__) */
00057 
00058 #ifdef WIN32
00059 
00060 CURLcode FindWin32CACert(struct OperationConfig *config,
00061                          const char *bundle_file);
00062 
00063 #endif /* WIN32 */
00064 
00065 #endif /* MSDOS || WIN32 */
00066 
00067 #endif /* HEADER_CURL_TOOL_DOSWIN_H */
00068 


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:07