curlmsg_vms.h 4.0 KB

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