comparison src/systime.h @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents af57a77cbc92
children e65d9cf16707
comparison
equal deleted inserted replaced
770:336a418893b5 771:943eaba38521
1 /* systime.h - System-dependent definitions for time manipulations. 1 /* systime.h - System-dependent definitions for time manipulations.
2 Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. 2 Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
3 Copyright (C) 2001 Ben Wing.
3 4
4 This file is part of XEmacs. 5 This file is part of XEmacs.
5 6
6 XEmacs is free software; you can redistribute it and/or modify it 7 XEmacs is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the 8 under the terms of the GNU General Public License as published by the
32 # else 33 # else
33 # include <time.h> 34 # include <time.h>
34 # endif 35 # endif
35 #endif 36 #endif
36 37
38 #if defined (CYGWIN) || defined (LINUX)
39 /* #### why don't other systems have problems with this? need this
40 for struct tms */
41 # include <sys/times.h>
42 #endif
43
37 /* select() is supposed to be (Unix98) defined in sys/time.h, 44 /* select() is supposed to be (Unix98) defined in sys/time.h,
38 but FreeBSD and Irix 5 put it in unistd.h instead. 45 but FreeBSD and Irix 5 put it in unistd.h instead.
39 If we have it, including it can't hurt. */ 46 If we have it, including it can't hurt. */
40 #ifdef HAVE_UNISTD_H 47 #ifdef HAVE_UNISTD_H
41 #include <unistd.h> 48 #include <unistd.h>
69 # include <utime.h> 76 # include <utime.h>
70 #endif 77 #endif
71 78
72 #ifdef WIN32_NATIVE 79 #ifdef WIN32_NATIVE
73 # include <sys/utime.h> 80 # include <sys/utime.h>
81 #ifdef emacs
82 int mswindows_utime (Lisp_Object path, struct utimbuf *thymes);
83 #endif
74 #endif 84 #endif
75 85
76 #if defined(HAVE_TZNAME) && !defined(WIN32_NATIVE) && !defined(CYGWIN) 86 #if defined(HAVE_TZNAME) && !defined(WIN32_NATIVE) && !defined(CYGWIN)
77 #ifndef tzname /* For SGI. */ 87 #ifndef tzname /* For SGI. */
78 extern char *tzname[]; /* RS6000 and others want it this way. */ 88 extern char *tzname[]; /* RS6000 and others want it this way. */
234 #define EMACS_SET_SECS_USECS(time, secs, usecs) \ 244 #define EMACS_SET_SECS_USECS(time, secs, usecs) \
235 (EMACS_SET_SECS (time, secs), EMACS_SET_USECS (time, usecs)) 245 (EMACS_SET_SECS (time, secs), EMACS_SET_USECS (time, usecs))
236 246
237 #ifdef emacs 247 #ifdef emacs
238 int set_file_times (Lisp_Object path, EMACS_TIME atime, EMACS_TIME mtime); 248 int set_file_times (Lisp_Object path, EMACS_TIME atime, EMACS_TIME mtime);
239 #endif
240
241 void get_process_times (double *user_time, double *system_time, 249 void get_process_times (double *user_time, double *system_time,
242 double *real_time); 250 double *real_time);
251 Intbyte *qxe_ctime (const time_t *value);
252
253 #endif
243 254
244 #ifdef WIN32_NATIVE 255 #ifdef WIN32_NATIVE
245 256
246 /* setitimer emulation for Win32 (see win32.c) */ 257 /* setitimer emulation for Win32 (see win32.c) */
247 258