Mercurial > emacs
comparison mac/inc/sys/time.h @ 88155:d7ddb3e565de
sync with trunk
author | Henrik Enberg <henrik.enberg@telia.com> |
---|---|
date | Mon, 16 Jan 2006 00:03:54 +0000 |
parents | 01b93e5e53a7 |
children |
comparison
equal
deleted
inserted
replaced
88154:8ce476d3ba36 | 88155:d7ddb3e565de |
---|---|
1 /* Replacement sys/time.h file for building GNU Emacs on the Macintosh. | 1 /* Replacement sys/time.h file for building GNU Emacs on the Macintosh. |
2 Copyright (C) 2000 Free Software Foundation, Inc. | 2 Copyright (C) 2000, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GNU Emacs. | 4 This file is part of GNU Emacs. |
5 | 5 |
6 GNU Emacs is free software; you can redistribute it and/or modify | 6 GNU Emacs is free software; you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 GNU General Public License for more details. | 14 GNU General Public License for more details. |
15 | 15 |
16 You should have received a copy of the GNU General Public License | 16 You should have received a copy of the GNU General Public License |
17 along with GNU Emacs; see the file COPYING. If not, write to | 17 along with GNU Emacs; see the file COPYING. If not, write to |
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 Boston, MA 02111-1307, USA. */ | 19 Boston, MA 02110-1301, USA. */ |
20 | 20 |
21 /* Contributed by Andrew Choi (akochoi@mac.com). */ | 21 /* Contributed by Andrew Choi (akochoi@mac.com). */ |
22 | 22 |
23 #ifndef _SYS_TIME_H | 23 #ifndef _SYS_TIME_H |
24 #define _SYS_TIME_H | 24 #define _SYS_TIME_H |
26 struct timeval { | 26 struct timeval { |
27 long tv_sec; /* seconds */ | 27 long tv_sec; /* seconds */ |
28 long tv_usec; /* microseconds */ | 28 long tv_usec; /* microseconds */ |
29 }; | 29 }; |
30 | 30 |
31 #define ITIMER_REAL 0 | |
32 #if 0 | |
33 #define ITIMER_VIRTUAL 1 | |
34 #define ITIMER_PROF 2 | |
35 #endif | |
36 | |
37 struct itimerval { | |
38 #if 0 | |
39 struct timeval it_interval; /* timer interval */ | |
40 #endif | |
41 struct timeval it_value; /* current value */ | |
42 }; | |
43 | |
44 extern int setitimer(int, const struct itimerval *, struct itimerval *); | |
45 | |
31 #endif /* _SYS_TYPES_H */ | 46 #endif /* _SYS_TYPES_H */ |
47 | |
48 /* arch-tag: f85ed04d-0e99-4f97-892b-fe029d0e92f9 | |
49 (do not change this comment) */ |