|
|
1.1 root 1: /*
2: * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * The contents of this file constitute Original Code as defined in and
7: * are subject to the Apple Public Source License Version 1.1 (the
8: * "License"). You may not use this file except in compliance with the
9: * License. Please obtain a copy of the License at
10: * http://www.apple.com/publicsource and read it before using this file.
11: *
12: * This Original Code and all software distributed under the License are
13: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17: * License for the specific language governing rights and limitations
18: * under the License.
19: *
20: * @APPLE_LICENSE_HEADER_END@
21: */
22: /*
23: * @OSF_COPYRIGHT@
24: */
25: /*
26: * HISTORY
27: *
28: * Revision 1.1.1.1 1998/09/22 21:05:51 wsanchez
29: * Import of Mac OS X kernel (~semeria)
30: *
31: * Revision 1.1.1.1 1998/03/07 02:25:36 wsanchez
32: * Import of OSF Mach kernel (~mburg)
33: *
34: * Revision 1.1.4.1 1997/01/31 15:46:34 emcmanus
35: * Merged with nmk22b1_shared.
36: * [1997/01/30 08:47:46 emcmanus]
37: *
38: * Revision 1.1.2.2 1996/11/29 13:04:58 emcmanus
39: * Added TIMEOFDAY and getclock() prototype.
40: * [1996/11/29 09:59:33 emcmanus]
41: *
42: * Revision 1.1.2.1 1996/10/14 13:31:49 emcmanus
43: * Created.
44: * [1996/10/14 13:30:09 emcmanus]
45: *
46: * $EndLog$
47: */
48:
49: #ifndef _SYS_TIMERS_H_
50: #define _SYS_TIMERS_H_
51:
52: /* POSIX <sys/timers.h>. For now, we define just enough to be able to build
53: the pthread library, with its pthread_cond_timedwait() interface. */
54: struct timespec {
55: unsigned long tv_sec;
56: long tv_nsec;
57: };
58:
59: #define TIMEOFDAY 1
60:
61: extern int getclock(int, struct timespec *);
62:
63: #endif /* _SYS_TIMERS_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.