From 3e43105ff125a92fa728b1d2d20a0e981da12164 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 3 Dec 2003 08:39:24 +0000 Subject: Marty Kuhrt updates --- src/curlmsg.h | 86 ++++++++++++++++++++++++++++++++++++ src/curlmsg.msg | 129 ++++++++++++++++++++++++++++++++---------------------- src/curlmsg.sdl | 84 +++++++++++++++++++++++++++++++++++ src/curlmsg_vms.h | 90 +++++++++++++++++++++++++++++++++++++ 4 files changed, 337 insertions(+), 52 deletions(-) create mode 100755 src/curlmsg.h create mode 100755 src/curlmsg.sdl create mode 100755 src/curlmsg_vms.h (limited to 'src') diff --git a/src/curlmsg.h b/src/curlmsg.h new file mode 100755 index 000000000..5aae019f7 --- /dev/null +++ b/src/curlmsg.h @@ -0,0 +1,86 @@ +/********************************************************************************************************************************/ +/* Created: 1-DEC-2003 14:10:49 by OpenVMS SDL EV1-60 */ +/* Source: 1-DEC-2003 14:10:31 SYS$SYSDEVICE:[MARTY.CURL.CURL-7_10_8.SRC]CURLM */ +/********************************************************************************************************************************/ +/*** MODULE $CURDEF ***/ +#pragma __member_alignment __save +#pragma __nomember_alignment +/* */ +/* This SDL File Generated by VAX-11 Message V04-00 on 1-DEC-2003 14:10:31.08 */ +/* */ +/* */ +/* VMS ERROR CODES ARE GENERATED BY EDITING THE CURL.H FILE AND PUTTING ALL THE */ +/* CURLE_* ENUM STUFF INTO THIS FILE. WITH THE EXCEPTION OF CURLE_OK, ALL */ +/* OF THE MESSAGES ARE AT THE ERROR SEVERITY LEVEL. WITH THE EXCEPTION OF */ +/* FTP_USER_PWD_INCORRECT, WHICH IS A SHORTENED FORM OF */ +/* FTP_USER_PASSWORD_INCORRECT, THESE ARE THE SAME NAMES AS THE CURLE_ ONES */ +/* IN INCLUDE/CURL.H */ +/* */ +#define CURL_FACILITY 3841 +#define CURL_OK 251756553 +#define CURL_UNSUPPORTED_PROTOCOL 251756562 +#define CURL_FAILED_INIT 251756570 +#define CURL_URL_MALFORMAT 251756578 +#define CURL_URL_MALFORMAT_USER 251756586 +#define CURL_COULDNT_RESOLVE_PROXY 251756594 +#define CURL_COULDNT_RESOLVE_HOST 251756602 +#define CURL_COULDNT_CONNECT 251756610 +#define CURL_FTP_WEIRD_SERVER_REPLY 251756618 +#define CURL_FTP_ACCESS_DENIED 251756626 +#define CURL_FTP_USER_PWD_INCORRECT 251756634 +#define CURL_FTP_WEIRD_PASS_REPLY 251756642 +#define CURL_FTP_WEIRD_USER_REPLY 251756650 +#define CURL_FTP_WEIRD_PASV_REPLY 251756658 +#define CURL_FTP_WEIRD_227_FORMAT 251756666 +#define CURL_FTP_CANT_GET_HOST 251756674 +#define CURL_FTP_CANT_RECONNECT 251756682 +#define CURL_FTP_COULDNT_SET_BINARY 251756690 +#define CURL_PARTIAL_FILE 251756698 +#define CURL_FTP_COULDNT_RETR_FILE 251756706 +#define CURL_FTP_WRITE_ERROR 251756714 +#define CURL_FTP_QUOTE_ERROR 251756722 +#define CURL_HTTP_RETURNED_ERROR 251756730 +#define CURL_WRITE_ERROR 251756738 +#define CURL_MALFORMAT_USER 251756746 +#define CURL_FTP_COULDNT_STOR_FILE 251756754 +#define CURL_READ_ERROR 251756762 +#define CURL_OUT_OF_MEMORY 251756770 +#define CURL_OPERATION_TIMEOUTED 251756778 +#define CURL_FTP_COULDNT_SET_ASCII 251756786 +#define CURL_FTP_PORT_FAILED 251756794 +#define CURL_FTP_COULDNT_USE_REST 251756802 +#define CURL_FTP_COULDNT_GET_SIZE 251756810 +#define CURL_HTTP_RANGE_ERROR 251756818 +#define CURL_HTTP_POST_ERROR 251756826 +#define CURL_SSL_CONNECT_ERROR 251756834 +#define CURL_BAD_DOWNLOAD_RESUME 251756842 +#define CURL_FILE_COULDNT_READ_FILE 251756850 +#define CURL_LDAP_CANNOT_BIND 251756858 +#define CURL_LDAP_SEARCH_FAILED 251756866 +#define CURL_LIBRARY_NOT_FOUND 251756874 +#define CURL_FUNCTION_NOT_FOUND 251756882 +#define CURL_ABORTED_BY_CALLBACK 251756890 +#define CURL_BAD_FUNCTION_ARGUMENT 251756898 +#define CURL_BAD_CALLING_ORDER 251756906 +#define CURL_HTTP_PORT_FAILED 251756914 +#define CURL_BAD_PASSWORD_ENTERED 251756922 +#define CURL_TOO_MANY_REDIRECTS 251756930 +#define CURL_UNKNOWN_TELNET_OPTION 251756938 +#define CURL_TELNET_OPTION_SYNTAX 251756946 +#define CURL_OBSOLETE 251756954 +#define CURL_SSL_PEER_CERTIFICATE 251756962 +#define CURL_GOT_NOTHING 251756970 +#define CURL_SSL_ENGINE_NOTFOUND 251756978 +#define CURL_SSL_ENGINE_SETFAILED 251756986 +#define CURL_SEND_ERROR 251756994 +#define CURL_RECV_ERROR 251757002 +#define CURL_SHARE_IN_USE 251757010 +#define CURL_SSL_CERTPROBLEM 251757018 +#define CURL_SSL_CIPHER 251757026 +#define CURL_SSL_CACERT 251757034 +#define CURL_BAD_CONTENT_ENCODING 251757042 +#define CURL_LDAP_INVALID_URL 251757050 +#define CURL_FILESIZE_EXCEEDED 251757058 +#define CURL_CURL_LAST 251757066 + +#pragma __member_alignment __restore diff --git a/src/curlmsg.msg b/src/curlmsg.msg index 7fed5a484..33b0db121 100755 --- a/src/curlmsg.msg +++ b/src/curlmsg.msg @@ -1,56 +1,81 @@ +! +! VMS error codes are generated by editing the curl.h file and putting all the +! CURLE_* enum stuff into this file. With the exception of CURLE_OK, all +! of the messages are at the error severity level. With the exception of +! FTP_USER_PWD_INCORRECT, which is a shortened form of +! FTP_USER_PASSWORD_INCORRECT, these are the same names as the CURLE_ ones +! in include/curl.h +! .TITLE CURLMSG Message files .FACILITY CURL,1793 /PREFIX=CURL_ -.SEVERITY ERROR .BASE 1 -UNSUPPROTO -FAILINIT -BADURLSYN -BADURLUSER -BADPROXY -BADHOST -FAILHOST -FTPUNKREPLY -FTPNOACC -FTPUSRPW -FTPBADPASS -FTPBADUSER -FTPBADPASV -FTPBAD227 -FTPBADHOST227 -FTPNORECONN -FTPNOBIN -PARTIALFILE -FTPNORETR -FTPWRITERR -FTPNOQUOTE -HTTPPNF -WRITERR -BADUSER -FTPNOSTOR -READERR -OUTOFMEM -TIMEOUT -FTPNOASCII -FTPNOPORT -FTPNOREST -FTPNOSIZE -HTTPRNGERR -HTTPPOSTERR -SSLNOCONN -FTPBADRESUME -FILENOACC -LDAPNOBIND -LDAPNOSRCH -LDAPNOLIB -LDAPNOFUNC -ABORTCB -BADPARAM -BADORDER -BADPWD -MNYREDIR -UNKTELNET -UNKMSG -BADSSLCERT -SRVNOERR -MAXMSG +.SEVERITY SUCCESS +OK + +.SEVERITY ERROR +UNSUPPORTED_PROTOCOL +FAILED_INIT +URL_MALFORMAT +URL_MALFORMAT_USER +COULDNT_RESOLVE_PROXY +COULDNT_RESOLVE_HOST +COULDNT_CONNECT +FTP_WEIRD_SERVER_REPLY +FTP_ACCESS_DENIED +FTP_USER_PWD_INCORRECT +FTP_WEIRD_PASS_REPLY +FTP_WEIRD_USER_REPLY +FTP_WEIRD_PASV_REPLY +FTP_WEIRD_227_FORMAT +FTP_CANT_GET_HOST +FTP_CANT_RECONNECT +FTP_COULDNT_SET_BINARY +PARTIAL_FILE +FTP_COULDNT_RETR_FILE +FTP_WRITE_ERROR +FTP_QUOTE_ERROR +HTTP_RETURNED_ERROR +WRITE_ERROR +MALFORMAT_USER +FTP_COULDNT_STOR_FILE +READ_ERROR +OUT_OF_MEMORY +OPERATION_TIMEOUTED +FTP_COULDNT_SET_ASCII +FTP_PORT_FAILED +FTP_COULDNT_USE_REST +FTP_COULDNT_GET_SIZE +HTTP_RANGE_ERROR +HTTP_POST_ERROR +SSL_CONNECT_ERROR +BAD_DOWNLOAD_RESUME +FILE_COULDNT_READ_FILE +LDAP_CANNOT_BIND +LDAP_SEARCH_FAILED +LIBRARY_NOT_FOUND +FUNCTION_NOT_FOUND +ABORTED_BY_CALLBACK +BAD_FUNCTION_ARGUMENT +BAD_CALLING_ORDER +HTTP_PORT_FAILED +BAD_PASSWORD_ENTERED +TOO_MANY_REDIRECTS +UNKNOWN_TELNET_OPTION +TELNET_OPTION_SYNTAX +OBSOLETE +SSL_PEER_CERTIFICATE +GOT_NOTHING +SSL_ENGINE_NOTFOUND +SSL_ENGINE_SETFAILED +SEND_ERROR +RECV_ERROR +SHARE_IN_USE +SSL_CERTPROBLEM +SSL_CIPHER +SSL_CACERT +BAD_CONTENT_ENCODING +LDAP_INVALID_URL +FILESIZE_EXCEEDED +CURL_LAST + .END diff --git a/src/curlmsg.sdl b/src/curlmsg.sdl new file mode 100755 index 000000000..68800d65e --- /dev/null +++ b/src/curlmsg.sdl @@ -0,0 +1,84 @@ + + + MODULE $CURDEF; + +/* +/* This SDL File Generated by VAX-11 Message V04-00 on 1-DEC-2003 14:10:31.08 +/* +/* +/* VMS ERROR CODES ARE GENERATED BY EDITING THE CURL.H FILE AND PUTTING ALL THE +/* CURLE_* ENUM STUFF INTO THIS FILE. WITH THE EXCEPTION OF CURLE_OK, ALL +/* OF THE MESSAGES ARE AT THE ERROR SEVERITY LEVEL. WITH THE EXCEPTION OF +/* FTP_USER_PWD_INCORRECT, WHICH IS A SHORTENED FORM OF +/* FTP_USER_PASSWORD_INCORRECT, THESE ARE THE SAME NAMES AS THE CURLE_ ONES +/* IN INCLUDE/CURL.H +/* + CONSTANT + "FACILITY" EQUALS 3841 PREFIX "CURL" TAG "" + ,"OK" EQUALS %X0F018009 PREFIX "CURL" TAG "" + ,"UNSUPPORTED_PROTOCOL" EQUALS %X0F018012 PREFIX "CURL" TAG "" + ,"FAILED_INIT" EQUALS %X0F01801A PREFIX "CURL" TAG "" + ,"URL_MALFORMAT" EQUALS %X0F018022 PREFIX "CURL" TAG "" + ,"URL_MALFORMAT_USER" EQUALS %X0F01802A PREFIX "CURL" TAG "" + ,"COULDNT_RESOLVE_PROXY" EQUALS %X0F018032 PREFIX "CURL" TAG "" + ,"COULDNT_RESOLVE_HOST" EQUALS %X0F01803A PREFIX "CURL" TAG "" + ,"COULDNT_CONNECT" EQUALS %X0F018042 PREFIX "CURL" TAG "" + ,"FTP_WEIRD_SERVER_REPLY" EQUALS %X0F01804A PREFIX "CURL" TAG "" + ,"FTP_ACCESS_DENIED" EQUALS %X0F018052 PREFIX "CURL" TAG "" + ,"FTP_USER_PWD_INCORRECT" EQUALS %X0F01805A PREFIX "CURL" TAG "" + ,"FTP_WEIRD_PASS_REPLY" EQUALS %X0F018062 PREFIX "CURL" TAG "" + ,"FTP_WEIRD_USER_REPLY" EQUALS %X0F01806A PREFIX "CURL" TAG "" + ,"FTP_WEIRD_PASV_REPLY" EQUALS %X0F018072 PREFIX "CURL" TAG "" + ,"FTP_WEIRD_227_FORMAT" EQUALS %X0F01807A PREFIX "CURL" TAG "" + ,"FTP_CANT_GET_HOST" EQUALS %X0F018082 PREFIX "CURL" TAG "" + ,"FTP_CANT_RECONNECT" EQUALS %X0F01808A PREFIX "CURL" TAG "" + ,"FTP_COULDNT_SET_BINARY" EQUALS %X0F018092 PREFIX "CURL" TAG "" + ,"PARTIAL_FILE" EQUALS %X0F01809A PREFIX "CURL" TAG "" + ,"FTP_COULDNT_RETR_FILE" EQUALS %X0F0180A2 PREFIX "CURL" TAG "" + ,"FTP_WRITE_ERROR" EQUALS %X0F0180AA PREFIX "CURL" TAG "" + ,"FTP_QUOTE_ERROR" EQUALS %X0F0180B2 PREFIX "CURL" TAG "" + ,"HTTP_RETURNED_ERROR" EQUALS %X0F0180BA PREFIX "CURL" TAG "" + ,"WRITE_ERROR" EQUALS %X0F0180C2 PREFIX "CURL" TAG "" + ,"MALFORMAT_USER" EQUALS %X0F0180CA PREFIX "CURL" TAG "" + ,"FTP_COULDNT_STOR_FILE" EQUALS %X0F0180D2 PREFIX "CURL" TAG "" + ,"READ_ERROR" EQUALS %X0F0180DA PREFIX "CURL" TAG "" + ,"OUT_OF_MEMORY" EQUALS %X0F0180E2 PREFIX "CURL" TAG "" + ,"OPERATION_TIMEOUTED" EQUALS %X0F0180EA PREFIX "CURL" TAG "" + ,"FTP_COULDNT_SET_ASCII" EQUALS %X0F0180F2 PREFIX "CURL" TAG "" + ,"FTP_PORT_FAILED" EQUALS %X0F0180FA PREFIX "CURL" TAG "" + ,"FTP_COULDNT_USE_REST" EQUALS %X0F018102 PREFIX "CURL" TAG "" + ,"FTP_COULDNT_GET_SIZE" EQUALS %X0F01810A PREFIX "CURL" TAG "" + ,"HTTP_RANGE_ERROR" EQUALS %X0F018112 PREFIX "CURL" TAG "" + ,"HTTP_POST_ERROR" EQUALS %X0F01811A PREFIX "CURL" TAG "" + ,"SSL_CONNECT_ERROR" EQUALS %X0F018122 PREFIX "CURL" TAG "" + ,"BAD_DOWNLOAD_RESUME" EQUALS %X0F01812A PREFIX "CURL" TAG "" + ,"FILE_COULDNT_READ_FILE" EQUALS %X0F018132 PREFIX "CURL" TAG "" + ,"LDAP_CANNOT_BIND" EQUALS %X0F01813A PREFIX "CURL" TAG "" + ,"LDAP_SEARCH_FAILED" EQUALS %X0F018142 PREFIX "CURL" TAG "" + ,"LIBRARY_NOT_FOUND" EQUALS %X0F01814A PREFIX "CURL" TAG "" + ,"FUNCTION_NOT_FOUND" EQUALS %X0F018152 PREFIX "CURL" TAG "" + ,"ABORTED_BY_CALLBACK" EQUALS %X0F01815A PREFIX "CURL" TAG "" + ,"BAD_FUNCTION_ARGUMENT" EQUALS %X0F018162 PREFIX "CURL" TAG "" + ,"BAD_CALLING_ORDER" EQUALS %X0F01816A PREFIX "CURL" TAG "" + ,"HTTP_PORT_FAILED" EQUALS %X0F018172 PREFIX "CURL" TAG "" + ,"BAD_PASSWORD_ENTERED" EQUALS %X0F01817A PREFIX "CURL" TAG "" + ,"TOO_MANY_REDIRECTS" EQUALS %X0F018182 PREFIX "CURL" TAG "" + ,"UNKNOWN_TELNET_OPTION" EQUALS %X0F01818A PREFIX "CURL" TAG "" + ,"TELNET_OPTION_SYNTAX" EQUALS %X0F018192 PREFIX "CURL" TAG "" + ,"OBSOLETE" EQUALS %X0F01819A PREFIX "CURL" TAG "" + ,"SSL_PEER_CERTIFICATE" EQUALS %X0F0181A2 PREFIX "CURL" TAG "" + ,"GOT_NOTHING" EQUALS %X0F0181AA PREFIX "CURL" TAG "" + ,"SSL_ENGINE_NOTFOUND" EQUALS %X0F0181B2 PREFIX "CURL" TAG "" + ,"SSL_ENGINE_SETFAILED" EQUALS %X0F0181BA PREFIX "CURL" TAG "" + ,"SEND_ERROR" EQUALS %X0F0181C2 PREFIX "CURL" TAG "" + ,"RECV_ERROR" EQUALS %X0F0181CA PREFIX "CURL" TAG "" + ,"SHARE_IN_USE" EQUALS %X0F0181D2 PREFIX "CURL" TAG "" + ,"SSL_CERTPROBLEM" EQUALS %X0F0181DA PREFIX "CURL" TAG "" + ,"SSL_CIPHER" EQUALS %X0F0181E2 PREFIX "CURL" TAG "" + ,"SSL_CACERT" EQUALS %X0F0181EA PREFIX "CURL" TAG "" + ,"BAD_CONTENT_ENCODING" EQUALS %X0F0181F2 PREFIX "CURL" TAG "" + ,"LDAP_INVALID_URL" EQUALS %X0F0181FA PREFIX "CURL" TAG "" + ,"FILESIZE_EXCEEDED" EQUALS %X0F018202 PREFIX "CURL" TAG "" + ,"CURL_LAST" EQUALS %X0F01820A PREFIX "CURL" TAG "" + ; + END_MODULE; diff --git a/src/curlmsg_vms.h b/src/curlmsg_vms.h new file mode 100755 index 000000000..e566dc667 --- /dev/null +++ b/src/curlmsg_vms.h @@ -0,0 +1,90 @@ +/* CURLMSG_VMS.H */ +/* This defines the necessary bits to change CURLE_* error codes to VMS */ +/* style error codes. CURLMSG.H is built from CURLMSG.SDL which is built */ +/* from CURLMSG.MSG. The vms_cond array is used to return VMS errors by */ +/* putting the VMS error codes into the array offset based on CURLE_* code. */ +/* */ +#include "curlmsg.h" +int vms_show = 0; +/* +#define FAC_CURL 0xC01 +#define FAC_SYSTEM 0 +#define MSG_NORMAL 0 +*/ +#define VMS_STS(c,f,e,s) (((c&0xF)<<28)|((f&0xFFF)<<16)|((e&0x1FFF)<3)|(s&7)) +#define VMSSTS_HIDE VMS_STS(1,0,0,0) +/* +#define SEV_WARNING 0 +#define SEV_SUCCESS 1 +#define SEV_ERROR 2 +#define SEV_INFO 3 +#define SEV_FATAL 4 +*/ +long vms_cond[] = + { + CURL_OK, + CURL_UNSUPPORTED_PROTOCOL, + CURL_FAILED_INIT, + CURL_URL_MALFORMAT, + CURL_URL_MALFORMAT_USER, + CURL_COULDNT_RESOLVE_PROXY, + CURL_COULDNT_RESOLVE_HOST, + CURL_COULDNT_CONNECT, + CURL_FTP_WEIRD_SERVER_REPLY, + CURL_FTP_ACCESS_DENIED, + CURL_FTP_USER_PWD_INCORRECT, + CURL_FTP_WEIRD_PASS_REPLY, + CURL_FTP_WEIRD_USER_REPLY, + CURL_FTP_WEIRD_PASV_REPLY, + CURL_FTP_WEIRD_227_FORMAT, + CURL_FTP_CANT_GET_HOST, + CURL_FTP_CANT_RECONNECT, + CURL_FTP_COULDNT_SET_BINARY, + CURL_PARTIAL_FILE, + CURL_FTP_COULDNT_RETR_FILE, + CURL_FTP_WRITE_ERROR, + CURL_FTP_QUOTE_ERROR, + CURL_HTTP_RETURNED_ERROR, + CURL_WRITE_ERROR, + CURL_MALFORMAT_USER, + CURL_FTP_COULDNT_STOR_FILE, + CURL_READ_ERROR, + CURL_OUT_OF_MEMORY, + CURL_OPERATION_TIMEOUTED, + CURL_FTP_COULDNT_SET_ASCII, + CURL_FTP_PORT_FAILED, + CURL_FTP_COULDNT_USE_REST, + CURL_FTP_COULDNT_GET_SIZE, + CURL_HTTP_RANGE_ERROR, + CURL_HTTP_POST_ERROR, + CURL_SSL_CONNECT_ERROR, + CURL_BAD_DOWNLOAD_RESUME, + CURL_FILE_COULDNT_READ_FILE, + CURL_LDAP_CANNOT_BIND, + CURL_LDAP_SEARCH_FAILED, + CURL_LIBRARY_NOT_FOUND, + CURL_FUNCTION_NOT_FOUND, + CURL_ABORTED_BY_CALLBACK, + CURL_BAD_FUNCTION_ARGUMENT, + CURL_BAD_CALLING_ORDER, + CURL_HTTP_PORT_FAILED, + CURL_BAD_PASSWORD_ENTERED, + CURL_TOO_MANY_REDIRECTS, + CURL_UNKNOWN_TELNET_OPTION, + CURL_TELNET_OPTION_SYNTAX, + CURL_OBSOLETE, + CURL_SSL_PEER_CERTIFICATE, + CURL_GOT_NOTHING, + CURL_SSL_ENGINE_NOTFOUND, + CURL_SSL_ENGINE_SETFAILED, + CURL_SEND_ERROR, + CURL_RECV_ERROR, + CURL_SHARE_IN_USE, + CURL_SSL_CERTPROBLEM, + CURL_SSL_CIPHER, + CURL_SSL_CACERT, + CURL_BAD_CONTENT_ENCODING, + CURL_LDAP_INVALID_URL, + CURL_FILESIZE_EXCEEDED, + CURL_CURL_LAST + }; -- cgit v1.2.3