comparison src/systime.h @ 999:d8d503897aa5

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Wed, 19 Aug 1992 03:54:51 +0000
parents 268c7b5da35b
children 1dba066c1e0a
comparison
equal deleted inserted replaced
998:61c6983219ff 999:d8d503897aa5
100 100
101 #else /* ! defined (HAVE_TIMEVAL) */ 101 #else /* ! defined (HAVE_TIMEVAL) */
102 102
103 #define EMACS_TIME int 103 #define EMACS_TIME int
104 #define EMACS_SECS(time) (time) 104 #define EMACS_SECS(time) (time)
105 #define EMACS_USECS(time) 0
105 #define EMACS_SET_SECS(time, seconds) ((time) = (seconds)) 106 #define EMACS_SET_SECS(time, seconds) ((time) = (seconds))
107 #define EMACS_SET_USECS(time, usecs) 0
106 108
107 #define EMACS_GET_TIME(t) ((t) = time ((long *) 0)) 109 #define EMACS_GET_TIME(t) ((t) = time ((long *) 0))
108 #define EMACS_ADD_TIME(dest, src1, src2) ((dest) = (src1) + (src2)) 110 #define EMACS_ADD_TIME(dest, src1, src2) ((dest) = (src1) + (src2))
109 #define EMACS_SUB_TIME(dest, src1, src2) ((dest) = (src1) - (src2)) 111 #define EMACS_SUB_TIME(dest, src1, src2) ((dest) = (src1) - (src2))
110 #define EMACS_TIME_NEG_P(t) ((t) < 0) 112 #define EMACS_TIME_NEG_P(t) ((t) < 0)
116 118
117 #ifdef USE_UTIME 119 #ifdef USE_UTIME
118 120
119 #define EMACS_SET_UTIMES(path, atime, mtime) \ 121 #define EMACS_SET_UTIMES(path, atime, mtime) \
120 { \ 122 { \
121 struct time_t tv[2]; \ 123 time_t tv[2]; \
122 tv[0] = EMACS_SECS (atime); \ 124 tv[0] = EMACS_SECS (atime); \
123 tv[1] = EMACS_SECS (mtime); \ 125 tv[1] = EMACS_SECS (mtime); \
124 utime ((path), tv); \ 126 utime ((path), tv); \
125 } 127 }
126 128