diff options
author | Yang Tse <yangsita@gmail.com> | 2009-06-10 18:02:11 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-06-10 18:02:11 +0000 |
commit | ec65a9a3645802bff25b72f106e3f073284275bc (patch) | |
tree | f8f7f002fe7598a4b878fc2e6d62d9ae509f7566 /src | |
parent | 5c4b6a8ef0a2e562bdbcf9df1fc10f0002df61f6 (diff) |
VMS adjustments
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 8 | ||||
-rw-r--r-- | src/os-specific.c | 11 | ||||
-rw-r--r-- | src/os-specific.h | 8 |
3 files changed, 13 insertions, 14 deletions
diff --git a/src/main.c b/src/main.c index a3665fc86..46cdb4eb2 100644 --- a/src/main.c +++ b/src/main.c @@ -114,10 +114,6 @@ #include <netinet/tcp.h> /* for TCP_KEEPIDLE, TCP_KEEPINTVL */ #endif -#ifdef __VMS -# include "curlmsg_vms.h" -#endif - #include "os-specific.h" /* The last #include file should be: */ @@ -131,6 +127,10 @@ #include "memdebug.h" #endif +#ifdef __VMS +static int vms_show = 0; +#endif + #if defined(NETWARE) #define PRINT_LINES_PAUSE 23 #endif diff --git a/src/os-specific.c b/src/os-specific.c index 457368d8d..1fddbaeb7 100644 --- a/src/os-specific.c +++ b/src/os-specific.c @@ -24,10 +24,6 @@ #include <curl/curl.h> -#ifdef __VMS -# include "curlmsg_vms.h" -#endif - #define ENABLE_CURLX_PRINTF #include "curlx.h" @@ -39,7 +35,12 @@ #ifdef __VMS -int vms_shell = -1; +#include "curlmsg_vms.h" + +void decc$__posix_exit(int __status); +void decc$exit(int __status); + +static int vms_shell = -1; /* VMS has a DCL shell and and also has Unix shells ported to it. * When curl is running under a Unix shell, we want it to be as much diff --git a/src/os-specific.h b/src/os-specific.h index 96f91cb76..535bb952c 100644 --- a/src/os-specific.h +++ b/src/os-specific.h @@ -25,17 +25,15 @@ #ifdef __VMS -extern int vms_shell; - -void decc$__posix_exit(int __status); -void decc$exit(int __status); - int is_vms_shell(void); void vms_special_exit(int code, int vms_show); #undef exit #define exit(__code) vms_special_exit((__code), (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) + #endif /* __VMS */ #endif /* HEADER_CURL_OS_SPECIFIC_H */ |