summaryrefslogtreecommitdiff
path: root/vms/config.h
blob: 82d499ae2dabcca008652c35ade92f2785b427fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/* config.h for OpenVMS */

#ifndef VMS_RUBY_STREAM
#define VMS_RUBY_STREAM "018"
#endif

/* #define HAVE_PROTOTYPES 1 */
#define HAVE_STDARG_PROTOTYPES 1
/* #define HAVE_ATTR_NORETURN 1 */
/* #define inline __inline */
#define HAVE_DIRENT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_STDLIB_H 1
#define HAVE_LIMITS_H 1

#define HAVE_SYS_FILE_H 1
#define HAVE_FCNTL_H 1
/* #define HAVE_PWD_H 1 */
#define HAVE_SYS_TIME_H 1
#define HAVE_SYS_TIMES_H 1
/* #define HAVE_SYS_PARAM_H 1 */
#define HAVE_SYS_WAIT_H 1
#define HAVE_STRING_H 1
#define HAVE_UTIME_H 1
#define HAVE_MEMORY_H 1
#define HAVE_PID_T 1
#define HAVE_GID_T 1
#define HAVE_UID_T 1
/* #define HAVE_ST_BLKSIZE 1  */
#define HAVE_ST_RDEV 1
/* #define GETGROUPS_T gid_t */
#define GETGROUPS_T int
#define RETSIGTYPE void
/* #define HAVE_ALLOCA 1 */
/* #define vfork fork */
#define HAVE_FMOD 1
#define HAVE_RANDOM 1
#define HAVE_WAITPID 1
#define HAVE_GETCWD 1
#define HAVE_TRUNCATE 1
/* #define HAVE_CHSIZE 1 */
#define HAVE_TIMES 1
/* #define HAVE_UTIMES 1 */
#define HAVE_FCNTL 1
/* #define HAVE_SETITIMER 1 */
/* #define HAVE_GETGROUPS 1 */
#define HAVE_SIGPROCMASK 1
#define HAVE_GETLOGIN 1
#define HAVE_TELLDIR 1
#define HAVE_SEEKDIR 1

#define RSHIFT(x,y) ((x)>>y)
#define DEFAULT_KCODE KCODE_EUC
#define DLEXT ".exe"
/* #define DLEXT2 "" */

#define HAVE_STRERROR 1

#if defined(__vax)
#define RUBY_PLATFORM     "vax-vms"	/* OpenVMS VAX */
#elif defined(__alpha)
#define RUBY_PLATFORM     "alpha-vms"	/* OpenVMS Alpha */
#elif defined(__ia64)
#define RUBY_PLATFORM     "ia64-vms"	/* OpenVMS Industry Standard 64 */
#else
#define RUBY_PLATFORM     "unknown-vms"	/* unknown processor */
#endif

#define RUBY_SITE_LIB2    "/RUBY_LIBROOT/site_ruby/" RUBY_PLATFORM
#define RUBY_SITE_ARCHLIB "/RUBY_LIBROOT/site_ruby/" VMS_RUBY_STREAM "/" RUBY_PLATFORM
#define RUBY_SITE_LIB     "/RUBY_LIBROOT/site_ruby"
#define RUBY_LIB          "/RUBY_LIBROOT/" VMS_RUBY_STREAM
#define RUBY_ARCHLIB      "/RUBY_LIBROOT/" VMS_RUBY_STREAM "/" RUBY_PLATFORM

#define SIZEOF_INT   4
#define SIZEOF_SHORT 2
#define SIZEOF_LONG  4
#define SIZEOF_VOIDP 4
#define SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8

#define HAVE_MKDIR 	1 /* Dango */
#define HAVE_SINH 	1 /* Dango */
#define HAVE_COSH 	1 /* Dango */
#define HAVE_TANH 	1 /* Dango */

/* function flags for socket ---------------------- */

#define HAVE_GETHOSTNAME 1
#define HAVE_SENDMSG 1
#define HAVE_RECVMSG 1
#define HAVE_GETNAMEINFO 1
#define HAVE_INET_NTOP 1
#define HAVE_INET_NTOA 1
#define HAVE_INET_PTON 1
#define HAVE_INET_ATON 1
#define HAVE_GETSERVBYPORT 1
#define HAVE_UNAME 1
/*
#define HAVE_GETHOSTBYNAME2 1
#define HAVE_GETADDRINFO 1
*/