filename | test/include/sys/time.h |
changeset | 185:6755a04c447f |
author | nkeynes |
date | Wed Sep 19 08:42:18 2012 +1000 (11 years ago) |
permissions | -rw-r--r-- |
last change | Invalidate render buffers when vram32 region is written from DMA / store queue. Patch from Guinux, thanks! |
view | annotate | diff | log | raw |
1 /* time.h -- An implementation of the standard Unix <sys/time.h> file.
2 Written by Geoffrey Noer <noer@cygnus.com>
3 Public domain; no rights reserved. */
5 #ifndef _SYS_TIME_H_
6 #define _SYS_TIME_H_
8 #include <_ansi.h>
9 #include <sys/types.h>
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
15 #ifndef _WINSOCK_H
16 struct timeval {
17 long tv_sec;
18 long tv_usec;
19 };
21 struct timezone {
22 int tz_minuteswest;
23 int tz_dsttime;
24 };
26 #ifdef __CYGWIN32__
27 #include <sys/select.h>
28 #endif /* __CYGWIN32__ */
30 #endif /* _WINSOCK_H */
32 #define ITIMER_REAL 0
33 #define ITIMER_VIRTUAL 1
34 #define ITIMER_PROF 2
36 struct itimerval {
37 struct timeval it_interval;
38 struct timeval it_value;
39 };
41 int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z));
42 int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));
43 int _EXFUN(utimes, (const char *__path, struct timeval *__tvp));
44 int _EXFUN(getitimer, (int __which, struct itimerval *__value));
45 int _EXFUN(setitimer, (int __which, const struct itimerval *__value,
46 struct itimerval *__ovalue));
48 #ifdef __cplusplus
49 }
50 #endif
51 #endif /* _SYS_TIME_H_ */
.