diff options
author | Jim Blandy <jimb@redhat.com> | 1993-03-19 17:28:14 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-03-19 17:28:14 +0000 |
commit | 210b2b4f058671a18e3f087fd696766ea8a23025 (patch) | |
tree | 60d5242427a63c887dd8fd58f7e25de19689d047 /src/systime.h | |
parent | 7b9cd64c8bddc083cc59a4291f1d3b85b64800c7 (diff) | |
download | emacs-210b2b4f058671a18e3f087fd696766ea8a23025.tar.gz |
Some VMS changes from Richard Levitte <levitte@e.kth.se>:
* [VMS] systime.h: Include vmstime.h. VMS has the timezone
variable and the tzname array.
* s/vms.h: VMS does have select.
mth$dmod is the same as Unix's drem.
Use the time functions in vmstime.c.
No need to rename the malloc routines if we're using GNU malloc.
PURESIZE needs to be 330000.
* vmstime.c, vmstime.h: New files.
* systty.h: Don't try to initialize extern declarations under VAX C.
* vmspaths.h (PATH_LOADSEARCH): Include EMACS_LIBRARY:[LOCAL-LISP]
in PATH_LOADSEARCH.
(PATH_EXEC): Use EMACS_LIBRARY:[LIB-SRC] instead of [ETC].
* sysdep.c [VMS] (init_sys_modes): Don't allocate process_ef.
[VMS] (queue_kbd_input): Build events structure correctly.
[VMS] (gethostname): New function.
[VMS] (getwd): Don't get the PATH environment variable; that's
dumb. Call getcwd.
Diffstat (limited to 'src/systime.h')
-rw-r--r-- | src/systime.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/systime.h b/src/systime.h index 8b6718a8747..d6b1898c7f1 100644 --- a/src/systime.h +++ b/src/systime.h @@ -45,6 +45,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ extern long timezone; #endif +#ifdef VMS +#ifdef VAXC +#include "vmstime.h" +#endif +#endif + /* EMACS_TIME is the type to use to represent temporal intervals - struct timeval on some systems, int on others. It can be passed as @@ -190,7 +196,7 @@ extern long timezone; #ifndef EMACS_CURRENT_TIME_ZONE /* System V derivatives have a timezone global variable. */ -#ifdef USG +#if defined(USG) || defined(VMS) #define EMACS_GET_TZ_OFFSET(offset) \ do { \ tzset (); \ @@ -213,7 +219,7 @@ extern long timezone; /* The following sane systems have a tzname array. The timezone() function is a stupid idea; timezone names can only be determined geographically, not by Greenwich offset. */ -#if defined (ultrix) || defined (hpux) || defined (_AIX) || defined (USG) +#if defined (ultrix) || defined (hpux) || defined (_AIX) || defined (USG) || defined(VMS) #define EMACS_GET_TZ_NAMES(standard, savings) \ do { \ |