comparison src/systime.h @ 592:4f6ba8f1fb3d

[xemacs-hg @ 2001-05-31 12:03:37 by adrian] [PATCH] Fix time preservation in (copy-file ...) on native Windows <1yp8gt63.fsf@rapier.ecf.teradyne.com>
author adrian
date Thu, 31 May 2001 12:03:39 +0000
parents ed498ef2108b
children 38db05db9cb5
comparison
equal deleted inserted replaced
591:ec73ae6e772b 592:4f6ba8f1fb3d
61 void gettimeofday (struct timeval *, struct timezone *); 61 void gettimeofday (struct timeval *, struct timezone *);
62 #endif /* HAVE_X_WINDOWS */ 62 #endif /* HAVE_X_WINDOWS */
63 63
64 #endif /* WIN32_NATIVE */ 64 #endif /* WIN32_NATIVE */
65 65
66 /* struct utimbuf */
67
66 #ifdef HAVE_UTIME 68 #ifdef HAVE_UTIME
67 # include <utime.h> 69 # include <utime.h>
70 #endif
71
72 #ifdef WIN32_NATIVE
73 # include <sys/utime.h>
68 #endif 74 #endif
69 75
70 #if defined(HAVE_TZNAME) && !defined(WIN32_NATIVE) && !defined(CYGWIN) 76 #if defined(HAVE_TZNAME) && !defined(WIN32_NATIVE) && !defined(CYGWIN)
71 #ifndef tzname /* For SGI. */ 77 #ifndef tzname /* For SGI. */
72 extern char *tzname[]; /* RS6000 and others want it this way. */ 78 extern char *tzname[]; /* RS6000 and others want it this way. */
226 (time1).tv_usec >= (time2).tv_usec)) 232 (time1).tv_usec >= (time2).tv_usec))
227 233
228 #define EMACS_SET_SECS_USECS(time, secs, usecs) \ 234 #define EMACS_SET_SECS_USECS(time, secs, usecs) \
229 (EMACS_SET_SECS (time, secs), EMACS_SET_USECS (time, usecs)) 235 (EMACS_SET_SECS (time, secs), EMACS_SET_USECS (time, usecs))
230 236
231 int set_file_times (char *filename, EMACS_TIME atime, EMACS_TIME mtime); 237 #ifdef emacs
238 int set_file_times (Lisp_Object path, EMACS_TIME atime, EMACS_TIME mtime);
239 #endif
232 240
233 void get_process_times (double *user_time, double *system_time, 241 void get_process_times (double *user_time, double *system_time,
234 double *real_time); 242 double *real_time);
235 243
236 #if defined(WIN32_NATIVE) 244 #if defined(WIN32_NATIVE)