curlmsg_vms.h 4.0 KB

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