curlmsg_vms.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* $Id$ */
  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;
  12. /*
  13. #define FAC_CURL 0xC01
  14. #define FAC_SYSTEM 0
  15. #define MSG_NORMAL 0
  16. */
  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)
  19. /*
  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
  25. */
  26. long vms_cond[] =
  27. {
  28. CURL_OK,
  29. CURL_UNSUPPORTED_PROTOCOL,
  30. CURL_FAILED_INIT,
  31. CURL_URL_MALFORMAT,
  32. CURL_URL_MALFORMAT_USER,
  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_FTP_USER_PWD_INCORRECT,
  39. CURL_FTP_WEIRD_PASS_REPLY,
  40. CURL_FTP_WEIRD_USER_REPLY,
  41. CURL_FTP_WEIRD_PASV_REPLY,
  42. CURL_FTP_WEIRD_227_FORMAT,
  43. CURL_FTP_CANT_GET_HOST,
  44. CURL_FTP_CANT_RECONNECT,
  45. CURL_FTP_COULDNT_SET_BINARY,
  46. CURL_PARTIAL_FILE,
  47. CURL_FTP_COULDNT_RETR_FILE,
  48. CURL_FTP_WRITE_ERROR,
  49. CURL_FTP_QUOTE_ERROR,
  50. CURL_HTTP_RETURNED_ERROR,
  51. CURL_WRITE_ERROR,
  52. CURL_MALFORMAT_USER,
  53. CURL_FTP_COULDNT_STOR_FILE,
  54. CURL_READ_ERROR,
  55. CURL_OUT_OF_MEMORY,
  56. CURL_OPERATION_TIMEOUTED,
  57. CURL_FTP_COULDNT_SET_ASCII,
  58. CURL_FTP_PORT_FAILED,
  59. CURL_FTP_COULDNT_USE_REST,
  60. CURL_FTP_COULDNT_GET_SIZE,
  61. CURL_HTTP_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_LIBRARY_NOT_FOUND,
  69. CURL_FUNCTION_NOT_FOUND,
  70. CURL_ABORTED_BY_CALLBACK,
  71. CURL_BAD_FUNCTION_ARGUMENT,
  72. CURL_BAD_CALLING_ORDER,
  73. CURL_INTERFACE_FAILED,
  74. CURL_BAD_PASSWORD_ENTERED,
  75. CURL_TOO_MANY_REDIRECTS,
  76. CURL_UNKNOWN_TELNET_OPTION,
  77. CURL_TELNET_OPTION_SYNTAX,
  78. CURL_OBSOLETE,
  79. CURL_SSL_PEER_CERTIFICATE,
  80. CURL_GOT_NOTHING,
  81. CURL_SSL_ENGINE_NOTFOUND,
  82. CURL_SSL_ENGINE_SETFAILED,
  83. CURL_SEND_ERROR,
  84. CURL_RECV_ERROR,
  85. CURL_SHARE_IN_USE,
  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_FTP_SSL_FAILED,
  93. CURL_SEND_FAIL_REWIND,
  94. CURL_SSL_ENGINE_INITFAILED,
  95. CURL_LOGIN_DENIED,
  96. CURL_CURL_LAST
  97. };