From bbc9eed034bb9fa7ee0ff1039ca8b9dbf1f92b50 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 22 Mar 2002 07:26:42 +0000 Subject: * the VMS support patch submitted by Akiyoshi, Masamichi is merged. * eval.c (exec_under): changing ruby_class is OK, but should not alter cbase. * eval.c (yield_under_i): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vms/config.h_in | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ vms/vms.h | 6 ++++++ 2 files changed, 67 insertions(+) create mode 100644 vms/config.h_in create mode 100644 vms/vms.h (limited to 'vms') diff --git a/vms/config.h_in b/vms/config.h_in new file mode 100644 index 000000000..2fd3e2662 --- /dev/null +++ b/vms/config.h_in @@ -0,0 +1,61 @@ +/* config.h for OpenVMS Alpha */ + +/* #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_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_NONE +#define DLEXT ".EXE" +/* #define DLEXT2 "" */ +#define RUBY_LIB "/RUBY_LIB" +#define RUBY_SITE_LIB "/RUBY_SYSLIB" +#define RUBY_SITE_LIB2 "/SYS$SHARE" +#define RUBY_PLATFORM "alpha-vms" +#define RUBY_ARCHLIB "" +#define RUBY_SITE_ARCHLIB "" + +#define SIZEOF_INT 4 +#define SIZEOF_SHORT 2 +#define SIZEOF_LONG 4 +#define SIZEOF_VOIDP 4 +#define SIZEOF_FLOAT 4 +#define SIZEOF_DOUBLE 8 diff --git a/vms/vms.h b/vms/vms.h new file mode 100644 index 000000000..d52b00b4c --- /dev/null +++ b/vms/vms.h @@ -0,0 +1,6 @@ +extern int isinf(double); +extern int isnan(double); +extern int flock(int fd, int oper); + +extern int vsnprintf(); +extern int snprintf(); -- cgit