Home | History | Annotate | Download | only in vms
      1 #ifndef HEADER_CURLMSG_VMS_H
      2 #define HEADER_CURLMSG_VMS_H
      3 /***************************************************************************
      4  *                                  _   _ ____  _
      5  *  Project                     ___| | | |  _ \| |
      6  *                             / __| | | | |_) | |
      7  *                            | (__| |_| |  _ <| |___
      8  *                             \___|\___/|_| \_\_____|
      9  *
     10  * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel (at) 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.haxx.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  ***************************************************************************/
     24 
     25 /*                                                                          */
     26 /* CURLMSG_VMS.H                                                            */
     27 /*                                                                          */
     28 /* This defines the necessary bits to change CURLE_* error codes to VMS     */
     29 /* style error codes.  CURLMSG.H is built from CURLMSG.SDL which is built   */
     30 /* from CURLMSG.MSG.  The vms_cond array is used to return VMS errors by    */
     31 /* putting the VMS error codes into the array offset based on CURLE_* code. */
     32 /*                                                                          */
     33 /* If you update CURLMSG.MSG make sure to update this file to match.        */
     34 /*                                                                          */
     35 
     36 #include "curlmsg.h"
     37 
     38 /*
     39 #define   FAC_CURL      0xC01
     40 #define   FAC_SYSTEM    0
     41 #define   MSG_NORMAL    0
     42 */
     43 
     44 /*
     45 #define   SEV_WARNING   0
     46 #define   SEV_SUCCESS   1
     47 #define   SEV_ERROR     2
     48 #define   SEV_INFO      3
     49 #define   SEV_FATAL     4
     50 */
     51 
     52 static const long vms_cond[] =
     53         {
     54         CURL_OK,
     55 	CURL_UNSUPPORTED_PROTOCOL,
     56 	CURL_FAILED_INIT,
     57 	CURL_URL_MALFORMAT,
     58 	CURL_OBSOLETE4,
     59 	CURL_COULDNT_RESOLVE_PROXY,
     60 	CURL_COULDNT_RESOLVE_HOST,
     61 	CURL_COULDNT_CONNECT,
     62 	CURL_FTP_WEIRD_SERVER_REPLY,
     63 	CURL_FTP_ACCESS_DENIED,
     64 	CURL_OBSOLETE10,
     65 	CURL_FTP_WEIRD_PASS_REPLY,
     66 	CURL_OBSOLETE12,
     67 	CURL_FTP_WEIRD_PASV_REPLY,
     68 	CURL_FTP_WEIRD_227_FORMAT,
     69 	CURL_FTP_CANT_GET_HOST,
     70 	CURL_OBSOLETE16,
     71 	CURL_FTP_COULDNT_SET_TYPE,
     72 	CURL_PARTIAL_FILE,
     73 	CURL_FTP_COULDNT_RETR_FILE,
     74 	CURL_OBSOLETE20,
     75 	CURL_QUOTE_ERROR,
     76 	CURL_HTTP_RETURNED_ERROR,
     77 	CURL_WRITE_ERROR,
     78 	CURL_OBSOLETE24,
     79 	CURL_UPLOAD_FAILED,
     80 	CURL_READ_ERROR,
     81 	CURL_OUT_OF_MEMORY,
     82 	CURL_OPERATION_TIMEOUTED,
     83 	CURL_OBSOLETE29,
     84 	CURL_FTP_PORT_FAILED,
     85 	CURL_FTP_COULDNT_USE_REST,
     86 	CURL_OBSOLETE32,
     87 	CURL_RANGE_ERROR,
     88 	CURL_HTTP_POST_ERROR,
     89 	CURL_SSL_CONNECT_ERROR,
     90 	CURL_BAD_DOWNLOAD_RESUME,
     91 	CURL_FILE_COULDNT_READ_FILE,
     92 	CURL_LDAP_CANNOT_BIND,
     93 	CURL_LDAP_SEARCH_FAILED,
     94 	CURL_OBSOLETE40,
     95 	CURL_FUNCTION_NOT_FOUND,
     96 	CURL_ABORTED_BY_CALLBACK,
     97 	CURL_BAD_FUNCTION_ARGUMENT,
     98 	CURL_OBSOLETE44,
     99 	CURL_INTERFACE_FAILED,
    100 	CURL_OBSOLETE46,
    101 	CURL_TOO_MANY_REDIRECTS,
    102 	CURL_UNKNOWN_TELNET_OPTION,
    103 	CURL_TELNET_OPTION_SYNTAX,
    104 	CURL_OBSOLETE50,
    105 	CURL_PEER_FAILED_VERIF,
    106 	CURL_GOT_NOTHING,
    107 	CURL_SSL_ENGINE_NOTFOUND,
    108 	CURL_SSL_ENGINE_SETFAILED,
    109 	CURL_SEND_ERROR,
    110 	CURL_RECV_ERROR,
    111 	CURL_OBSOLETE57,
    112 	CURL_SSL_CERTPROBLEM,
    113 	CURL_SSL_CIPHER,
    114 	CURL_SSL_CACERT,
    115 	CURL_BAD_CONTENT_ENCODING,
    116 	CURL_LDAP_INVALID_URL,
    117 	CURL_FILESIZE_EXCEEDED,
    118 	CURL_USE_SSL_FAILED,
    119 	CURL_SEND_FAIL_REWIND,
    120 	CURL_SSL_ENGINE_INITFAILED,
    121 	CURL_LOGIN_DENIED,
    122 	CURL_TFTP_NOTFOUND,
    123 	CURL_TFTP_PERM,
    124 	CURL_REMOTE_DISK_FULL,
    125 	CURL_TFTP_ILLEGAL,
    126 	CURL_TFTP_UNKNOWNID,
    127 	CURL_REMOTE_FILE_EXISTS,
    128 	CURL_TFTP_NOSUCHUSER,
    129 	CURL_CONV_FAILED,
    130 	CURL_CONV_REQD,
    131 	CURL_SSL_CACERT_BADFILE,
    132 	CURL_REMOTE_FILE_NOT_FOUND,
    133 	CURL_SSH,
    134 	CURL_SSL_SHUTDOWN_FAILED,
    135 	CURL_AGAIN,
    136 	CURLE_SSL_CRL_BADFILE,
    137 	CURLE_SSL_ISSUER_ERROR,
    138         CURL_CURL_LAST
    139         };
    140 
    141 #endif /* HEADER_CURLMSG_VMS_H */
    142