Marty Kuhrt's VMS fixes

This commit is contained in:
Daniel Stenberg 2004-06-08 21:21:53 +00:00
parent 5bfeb60a83
commit 8ee564c216
3 changed files with 19 additions and 1 deletions

View File

@ -1,6 +1,7 @@
/* MSK, 02/05/04, Hand edited for trail build on Alpha V7.3, DEC C 6.5-003 */ /* MSK, 02/05/04, Hand edited for trail build on Alpha V7.3, DEC C 6.5-003 */
/* MSK, 03/09/04, Seems to work for all platforms I've built on so far. */ /* MSK, 03/09/04, Seems to work for all platforms I've built on so far. */
/* Added HAVE_SYS_IOCTL_H, IOCTL_3_ARGS and SIZEOF_CURL_OFF_T defines */ /* Added HAVE_SYS_IOCTL_H, IOCTL_3_ARGS and SIZEOF_CURL_OFF_T defines */
/* MSK, 06/04/04, Added HAVE_INET_NTOP */
/* Define cpu-machine-OS */ /* Define cpu-machine-OS */
#ifdef __ALPHA #ifdef __ALPHA
@ -258,3 +259,6 @@
#else #else
#define SIZEOF_CURL_OFF_T 8 #define SIZEOF_CURL_OFF_T 8
#endif #endif
/* Somewhere around 7.12.0 HAVE_INET_NTOP was introduced. */
#define HAVE_INET_NTOP 1

View File

@ -1,6 +1,7 @@
/* MSK, 02/05/04, Hand edited for trail build on Alpha V7.3, DEC C 6.5-003 */ /* MSK, 02/05/04, Hand edited for trail build on Alpha V7.3, DEC C 6.5-003 */
/* MSK, 03/09/04, Seems to work for all platforms I've built on so far. */ /* MSK, 03/09/04, Seems to work for all platforms I've built on so far. */
/* Added HAVE_SYS_IOCTL_H, IOCTL_3_ARGS and SIZEOF_CURL_OFF_T defines */ /* Added HAVE_SYS_IOCTL_H, IOCTL_3_ARGS and SIZEOF_CURL_OFF_T defines */
/* MSK, 06/04/04, Added HAVE_INET_NTOP */
/* Define cpu-machine-OS */ /* Define cpu-machine-OS */
#ifdef __ALPHA #ifdef __ALPHA
@ -258,3 +259,6 @@
#else #else
#define SIZEOF_CURL_OFF_T 8 #define SIZEOF_CURL_OFF_T 8
#endif #endif
/* Somewhere around 7.12.0 HAVE_INET_NTOP was introduced. */
#define HAVE_INET_NTOP 1

View File

@ -45,12 +45,22 @@
#include descrip #include descrip
#include starlet #include starlet
#include iodef #include iodef
#include iosbdef /* #include iosbdef */
char *getpass_r(const char *prompt, char *buffer, size_t buflen) char *getpass_r(const char *prompt, char *buffer, size_t buflen)
{ {
long sts; long sts;
short chan; short chan;
struct _iosb iosb; struct _iosb iosb;
/* MSK, 23-JAN-2004, iosbdef.h wasn't in VAX V7.2 or CC 6.4 */
/* distribution so I created this. May revert back later to */
/* struct _iosb iosb; */
struct _iosb
{
short int iosb$w_status; /* status */
short int iosb$w_bcnt; /* byte count */
int unused; /* unused */
} iosb;
$DESCRIPTOR(ttdesc, "TT"); $DESCRIPTOR(ttdesc, "TT");
buffer[0]='\0'; buffer[0]='\0';