Update years in copyright notice; nfc.
[bpt/emacs.git] / mac / inc / sys / time.h
1 /* Replacement sys/time.h file for building GNU Emacs on the Macintosh.
2 Copyright (C) 2000, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
3
4 This file is part of GNU Emacs.
5
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
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU Emacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
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
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA. */
20
21 /* Contributed by Andrew Choi (akochoi@mac.com). */
22
23 #ifndef _SYS_TIME_H
24 #define _SYS_TIME_H
25
26 struct timeval {
27 long tv_sec; /* seconds */
28 long tv_usec; /* microseconds */
29 };
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
46 #endif /* _SYS_TYPES_H */
47
48 /* arch-tag: f85ed04d-0e99-4f97-892b-fe029d0e92f9
49 (do not change this comment) */