Go to the documentation of this file.00001 #ifndef HEADER_CURL_TOOL_DOSWIN_H
00002 #define HEADER_CURL_TOOL_DOSWIN_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "tool_setup.h"
00025
00026 #if defined(MSDOS) || defined(WIN32)
00027
00028 #define SANITIZE_ALLOW_COLONS (1<<0)
00029 #define SANITIZE_ALLOW_PATH (1<<1)
00030 #define SANITIZE_ALLOW_RESERVED (1<<2)
00031 #define SANITIZE_ALLOW_TRUNCATE (1<<3)
00032
00033 typedef enum {
00034 SANITIZE_ERR_OK = 0,
00035 SANITIZE_ERR_INVALID_PATH,
00036 SANITIZE_ERR_BAD_ARGUMENT,
00037 SANITIZE_ERR_OUT_OF_MEMORY,
00038 SANITIZE_ERR_LAST
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
00051
00052 #if defined(MSDOS) && (defined(__DJGPP__) || defined(__GO32__))
00053
00054 char **__crt0_glob_function(char *arg);
00055
00056 #endif
00057
00058 #ifdef WIN32
00059
00060 CURLcode FindWin32CACert(struct OperationConfig *config,
00061 const char *bundle_file);
00062
00063 #endif
00064
00065 #endif
00066
00067 #endif
00068