xref: /curl/packages/vms/curlmsg_vms.h (revision 2d5aea9c)
1 #ifndef HEADER_CURLMSG_VMS_H
2 #define HEADER_CURLMSG_VMS_H
3 /***************************************************************************
4  *                                  _   _ ____  _
5  *  Project                     ___| | | |  _ \| |
6  *                             / __| | | | |_) | |
7  *                            | (__| |_| |  _ <| |___
8  *                             \___|\___/|_| \_\_____|
9  *
10  * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11  *
12  * This software is licensed as described in the file COPYING, which
13  * you should have received as part of this distribution. The terms
14  * are also available at https://curl.se/docs/copyright.html.
15  *
16  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17  * copies of the Software, and permit persons to whom the Software is
18  * furnished to do so, under the terms of the COPYING file.
19  *
20  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21  * KIND, either express or implied.
22  *
23  * SPDX-License-Identifier: curl
24  *
25  ***************************************************************************/
26 
27 /*                                                                          */
28 /* CURLMSG_VMS.H                                                            */
29 /*                                                                          */
30 /* This defines the necessary bits to change CURLE_* error codes to VMS     */
31 /* style error codes.  CURLMSG.H is built from CURLMSG.SDL which is built   */
32 /* from CURLMSG.MSG.  The vms_cond array is used to return VMS errors by    */
33 /* putting the VMS error codes into the array offset based on CURLE_* code. */
34 /*                                                                          */
35 /* If you update CURLMSG.MSG make sure to update this file to match.        */
36 /*                                                                          */
37 
38 #include "curlmsg.h"
39 
40 /*
41 #define   FAC_CURL      0xC01
42 #define   FAC_SYSTEM    0
43 #define   MSG_NORMAL    0
44 */
45 
46 /*
47 #define   SEV_WARNING   0
48 #define   SEV_SUCCESS   1
49 #define   SEV_ERROR     2
50 #define   SEV_INFO      3
51 #define   SEV_FATAL     4
52 */
53 
54 static const long vms_cond[] =
55 {
56   CURL_OK,
57   CURL_UNSUPPORTED_PROTOCOL,
58   CURL_FAILED_INIT,
59   CURL_URL_MALFORMAT,
60   CURL_OBSOLETE4,
61   CURL_COULDNT_RESOLVE_PROXY,
62   CURL_COULDNT_RESOLVE_HOST,
63   CURL_COULDNT_CONNECT,
64   CURL_WEIRD_SERVER_REPLY,
65   CURL_FTP_ACCESS_DENIED,
66   CURL_OBSOLETE10,
67   CURL_FTP_WEIRD_PASS_REPLY,
68   CURL_OBSOLETE12,
69   CURL_FTP_WEIRD_PASV_REPLY,
70   CURL_FTP_WEIRD_227_FORMAT,
71   CURL_FTP_CANT_GET_HOST,
72   CURL_OBSOLETE16,
73   CURL_FTP_COULDNT_SET_TYPE,
74   CURL_PARTIAL_FILE,
75   CURL_FTP_COULDNT_RETR_FILE,
76   CURL_OBSOLETE20,
77   CURL_QUOTE_ERROR,
78   CURL_HTTP_RETURNED_ERROR,
79   CURL_WRITE_ERROR,
80   CURL_OBSOLETE24,
81   CURL_UPLOAD_FAILED,
82   CURL_READ_ERROR,
83   CURL_OUT_OF_MEMORY,
84   CURL_OPERATION_TIMEOUTED,
85   CURL_OBSOLETE29,
86   CURL_FTP_PORT_FAILED,
87   CURL_FTP_COULDNT_USE_REST,
88   CURL_OBSOLETE32,
89   CURL_RANGE_ERROR,
90   CURL_HTTP_POST_ERROR,
91   CURL_SSL_CONNECT_ERROR,
92   CURL_BAD_DOWNLOAD_RESUME,
93   CURL_FILE_COULDNT_READ_FILE,
94   CURL_LDAP_CANNOT_BIND,
95   CURL_LDAP_SEARCH_FAILED,
96   CURL_OBSOLETE40,
97   CURL_FUNCTION_NOT_FOUND,
98   CURL_ABORTED_BY_CALLBACK,
99   CURL_BAD_FUNCTION_ARGUMENT,
100   CURL_OBSOLETE44,
101   CURL_INTERFACE_FAILED,
102   CURL_OBSOLETE46,
103   CURL_TOO_MANY_REDIRECTS,
104   CURL_UNKNOWN_TELNET_OPTION,
105   CURL_TELNET_OPTION_SYNTAX,
106   CURL_OBSOLETE50,
107   CURL_PEER_FAILED_VERIF,
108   CURL_GOT_NOTHING,
109   CURL_SSL_ENGINE_NOTFOUND,
110   CURL_SSL_ENGINE_SETFAILED,
111   CURL_SEND_ERROR,
112   CURL_RECV_ERROR,
113   CURL_OBSOLETE57,
114   CURL_SSL_CERTPROBLEM,
115   CURL_SSL_CIPHER,
116   CURL_SSL_CACERT,
117   CURL_BAD_CONTENT_ENCODING,
118   CURL_LDAP_INVALID_URL,
119   CURL_FILESIZE_EXCEEDED,
120   CURL_USE_SSL_FAILED,
121   CURL_SEND_FAIL_REWIND,
122   CURL_SSL_ENGINE_INITFAILED,
123   CURL_LOGIN_DENIED,
124   CURL_TFTP_NOTFOUND,
125   CURL_TFTP_PERM,
126   CURL_REMOTE_DISK_FULL,
127   CURL_TFTP_ILLEGAL,
128   CURL_TFTP_UNKNOWNID,
129   CURL_REMOTE_FILE_EXISTS,
130   CURL_TFTP_NOSUCHUSER,
131   CURL_CONV_FAILED,
132   CURL_CONV_REQD,
133   CURL_SSL_CACERT_BADFILE,
134   CURL_REMOTE_FILE_NOT_FOUND,
135   CURL_SSH,
136   CURL_SSL_SHUTDOWN_FAILED,
137   CURL_AGAIN,
138   CURLE_SSL_CRL_BADFILE,
139   CURLE_SSL_ISSUER_ERROR,
140   CURL_CURL_LAST
141 };
142 
143 #endif /* HEADER_CURLMSG_VMS_H */
144