Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / packages / vms / curlmsg_vms.h
blob59b99d1a5440674738adaa0ed1caa10c41ba533b
1 /* $Id: curlmsg_vms.h,v 1.1.1.1 2008-09-23 16:32:05 hoffman Exp $ */
2 /* CURLMSG_VMS.H */
3 /* This defines the necessary bits to change CURLE_* error codes to VMS */
4 /* style error codes. CURLMSG.H is built from CURLMSG.SDL which is built */
5 /* from CURLMSG.MSG. The vms_cond array is used to return VMS errors by */
6 /* putting the VMS error codes into the array offset based on CURLE_* code. */
7 /* */
8 /* If you update CURLMSG.MSG make sure to update this file to match. */
9 /* */
10 #include "curlmsg.h"
11 int vms_show = 0;
13 #define FAC_CURL 0xC01
14 #define FAC_SYSTEM 0
15 #define MSG_NORMAL 0
17 #define VMS_STS(c,f,e,s) (((c&0xF)<<28)|((f&0xFFF)<<16)|((e&0x1FFF)<3)|(s&7))
18 #define VMSSTS_HIDE VMS_STS(1,0,0,0)
20 #define SEV_WARNING 0
21 #define SEV_SUCCESS 1
22 #define SEV_ERROR 2
23 #define SEV_INFO 3
24 #define SEV_FATAL 4
26 long vms_cond[] =
28 CURL_OK,
29 CURL_UNSUPPORTED_PROTOCOL,
30 CURL_FAILED_INIT,
31 CURL_URL_MALFORMAT,
32 CURL_OBSOLETE4,
33 CURL_COULDNT_RESOLVE_PROXY,
34 CURL_COULDNT_RESOLVE_HOST,
35 CURL_COULDNT_CONNECT,
36 CURL_FTP_WEIRD_SERVER_REPLY,
37 CURL_FTP_ACCESS_DENIED,
38 CURL_OBSOLETE10,
39 CURL_FTP_WEIRD_PASS_REPLY,
40 CURL_OBSOLETE12,
41 CURL_FTP_WEIRD_PASV_REPLY,
42 CURL_FTP_WEIRD_227_FORMAT,
43 CURL_FTP_CANT_GET_HOST,
44 CURL_OBSOLETE16,
45 CURL_FTP_COULDNT_SET_TYPE,
46 CURL_PARTIAL_FILE,
47 CURL_FTP_COULDNT_RETR_FILE,
48 CURL_OBSOLETE20,
49 CURL_QUOTE_ERROR,
50 CURL_HTTP_RETURNED_ERROR,
51 CURL_WRITE_ERROR,
52 CURL_OBSOLETE24,
53 CURL_UPLOAD_FAILED,
54 CURL_READ_ERROR,
55 CURL_OUT_OF_MEMORY,
56 CURL_OPERATION_TIMEOUTED,
57 CURL_OBSOLETE29,
58 CURL_FTP_PORT_FAILED,
59 CURL_FTP_COULDNT_USE_REST,
60 CURL_OBSOLETE32,
61 CURL_RANGE_ERROR,
62 CURL_HTTP_POST_ERROR,
63 CURL_SSL_CONNECT_ERROR,
64 CURL_BAD_DOWNLOAD_RESUME,
65 CURL_FILE_COULDNT_READ_FILE,
66 CURL_LDAP_CANNOT_BIND,
67 CURL_LDAP_SEARCH_FAILED,
68 CURL_OBSOLETE40,
69 CURL_FUNCTION_NOT_FOUND,
70 CURL_ABORTED_BY_CALLBACK,
71 CURL_BAD_FUNCTION_ARGUMENT,
72 CURL_OBSOLETE44,
73 CURL_INTERFACE_FAILED,
74 CURL_OBSOLETE46,
75 CURL_TOO_MANY_REDIRECTS,
76 CURL_UNKNOWN_TELNET_OPTION,
77 CURL_TELNET_OPTION_SYNTAX,
78 CURL_OBSOLETE50,
79 CURL_PEER_FAILED_VERIF,
80 CURL_GOT_NOTHING,
81 CURL_SSL_ENGINE_NOTFOUND,
82 CURL_SSL_ENGINE_SETFAILED,
83 CURL_SEND_ERROR,
84 CURL_RECV_ERROR,
85 CURL_OBSOLETE57,
86 CURL_SSL_CERTPROBLEM,
87 CURL_SSL_CIPHER,
88 CURL_SSL_CACERT,
89 CURL_BAD_CONTENT_ENCODING,
90 CURL_LDAP_INVALID_URL,
91 CURL_FILESIZE_EXCEEDED,
92 CURL_USE_SSL_FAILED,
93 CURL_SEND_FAIL_REWIND,
94 CURL_SSL_ENGINE_INITFAILED,
95 CURL_LOGIN_DENIED,
96 CURL_TFTP_NOTFOUND,
97 CURL_TFTP_PERM,
98 CURL_REMOTE_DISK_FULL,
99 CURL_TFTP_ILLEGAL,
100 CURL_TFTP_UNKNOWNID,
101 CURL_REMOTE_FILE_EXISTS,
102 CURL_TFTP_NOSUCHUSER,
103 CURL_CONV_FAILED,
104 CURL_CONV_REQD,
105 CURL_SSL_CACERT_BADFILE,
106 CURL_REMOTE_FILE_NOT_FOUND,
107 CURL_SSH,
108 CURL_SSL_SHUTDOWN_FAILED,
109 CURL_AGAIN,
110 CURL_CURL_LAST