* Actually use __32_getpwuid() on 64-bit VMS builds for getpwuid()
*/
-#if defined(VMS) && \
+#if defined(__VMS) && \
defined(__INITIAL_POINTER_SIZE) && (__INITIAL_POINTER_SIZE == 64)
#define getpwuid __32_getpwuid
#endif
* Macro argv_item_t hides platform details to code using it.
*/
-#ifdef VMS
+#ifdef __VMS
#define argv_item_t __char_ptr32
#else
#define argv_item_t char *
# define CURL_SIZEOF_CURL_SOCKLEN_T 4
#elif defined(__VMS)
-# if defined(__alpha) || defined(__ia64)
-# define CURL_SIZEOF_LONG 4
-# define CURL_TYPEOF_CURL_OFF_T long long
-# define CURL_FORMAT_CURL_OFF_T "lld"
-# define CURL_FORMAT_CURL_OFF_TU "llu"
-# define CURL_FORMAT_OFF_T "%lld"
-# define CURL_SIZEOF_CURL_OFF_T 8
-# define CURL_SUFFIX_CURL_OFF_T LL
-# define CURL_SUFFIX_CURL_OFF_TU ULL
-# else
+# if defined(__VAX)
# define CURL_SIZEOF_LONG 4
# define CURL_TYPEOF_CURL_OFF_T long
# define CURL_FORMAT_CURL_OFF_T "ld"
# define CURL_SIZEOF_CURL_OFF_T 4
# define CURL_SUFFIX_CURL_OFF_T L
# define CURL_SUFFIX_CURL_OFF_TU UL
+# else
+# define CURL_SIZEOF_LONG 4
+# define CURL_TYPEOF_CURL_OFF_T long long
+# define CURL_FORMAT_CURL_OFF_T "lld"
+# define CURL_FORMAT_CURL_OFF_TU "llu"
+# define CURL_FORMAT_OFF_T "%lld"
+# define CURL_SIZEOF_CURL_OFF_T 8
+# define CURL_SUFFIX_CURL_OFF_T LL
+# define CURL_SUFFIX_CURL_OFF_TU ULL
# endif
# define CURL_TYPEOF_CURL_SOCKLEN_T unsigned int
# define CURL_SIZEOF_CURL_SOCKLEN_T 4
#undef in_addr_t
#define in_addr_t unsigned long
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#endif
# include <arpa/inet.h>
#endif
-#ifdef VMS
+#ifdef __VMS
# include <in.h>
# include <inet.h>
# include <stdlib.h>
{
Curl_addrinfo *ai;
-#if defined(VMS) && \
+#if defined(__VMS) && \
defined(__INITIAL_POINTER_SIZE) && (__INITIAL_POINTER_SIZE == 64)
#pragma pointer_size save
#pragma pointer_size short
h->h_addr_list[0] = addrentry;
h->h_addr_list[1] = NULL; /* terminate list of entries */
-#if defined(VMS) && \
+#if defined(__VMS) && \
defined(__INITIAL_POINTER_SIZE) && (__INITIAL_POINTER_SIZE == 64)
#pragma pointer_size restore
#pragma message enable PTRMISMATCH
# include <arpa/inet.h>
#endif
-#ifdef VMS
+#ifdef __VMS
# include <in.h>
# include <inet.h>
# include <stdlib.h>
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#endif
#include <stdlib.h>
#include <string.h>
-#ifdef VMS
+#ifdef __VMS
#include <unixlib.h>
#endif
return (env[0] != '\0')?strdup(env):NULL;
#else
char *env = getenv(variable);
-#ifdef VMS
+#ifdef __VMS
if(env && strcmp("HOME",variable) == 0)
env = decc_translate_vms(env);
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* for the close() proto */
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* for the close() proto */
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* for the close() proto */
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* for the close() proto */
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* for the close() proto */
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* for the close() proto */
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> /* for the close() proto */
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#include <stdlib.h>
#ifdef HAVE_STROPTS_H
# include <stropts.h>
#endif
-#ifdef VMS
+#ifdef __VMS
# include <inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#endif
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
-#ifdef VMS
+#ifdef __VMS
#include <unixlib.h>
#endif
struct passwd *pw;
pw= getpwuid(geteuid());
if(pw) {
-#ifdef VMS
+#ifdef __VMS
home = decc_translate_vms(pw->pw_dir);
#else
home = pw->pw_dir;
#if (defined(HAVE_IOCTL_FIONBIO) && defined(NETWARE))
#include <sys/filio.h>
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#endif
*/
#ifndef SIZEOF_OFF_T
-# if defined(__VMS) && (defined(__alpha) || defined(__ia64))
+# if defined(__VMS) && !defined(__VAX)
# if defined(_LARGEFILE)
# define SIZEOF_OFF_T 8
# endif
* Actually use __32_getpwuid() on 64-bit VMS builds for getpwuid()
*/
-#if defined(VMS) && \
+#if defined(__VMS) && \
defined(__INITIAL_POINTER_SIZE) && (__INITIAL_POINTER_SIZE == 64)
#define getpwuid __32_getpwuid
#endif
* Macro argv_item_t hides platform details to code using it.
*/
-#ifdef VMS
+#ifdef __VMS
#define argv_item_t __char_ptr32
#else
#define argv_item_t char *
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#endif
#include <sys/param.h>
#endif
-#ifdef VMS
+#ifdef __VMS
#include <in.h>
#include <inet.h>
#endif
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
#include "memdebug.h"
#endif
-#ifdef VMS
+#ifdef __VMS
/* VMS implementation */
#include descrip
#include starlet
return buffer; /* we always return success */
}
#define DONE
-#endif /* VMS */
+#endif /* __VMS */
#ifdef WIN32
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-#ifdef VMS
+#ifdef __VMS
#include <unixlib.h>
#endif
}
#else
(void)do_expand;
-#ifdef VMS
+#ifdef __VMS
env = getenv(variable);
if (env && strcmp("HOME",variable) == 0) {
env = decc_translate_vms(env);
struct passwd *pw = getpwuid(geteuid());
if (pw) {
-#ifdef VMS
+#ifdef __VMS
home = decc_translate_vms(pw->pw_dir);
#else
home = pw->pw_dir;
*/
#ifndef SIZEOF_OFF_T
-# if defined(__VMS) && (defined(__alpha) || defined(__ia64))
+# if defined(__VMS) && !defined(__VAX)
# if defined(_LARGEFILE)
# define SIZEOF_OFF_T 8
# endif