filename | test/include/sys/time.h |
changeset | 185:6755a04c447f |
author | nkeynes |
date | Tue Jul 11 01:35:27 2006 +0000 (17 years ago) |
permissions | -rw-r--r-- |
last change | First commit of system test framework. 3 initial test cases (incomplete): testide, testmath, and testta |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/include/sys/time.h Tue Jul 11 01:35:27 2006 +00001.3 @@ -0,0 +1,51 @@1.4 +/* time.h -- An implementation of the standard Unix <sys/time.h> file.1.5 + Written by Geoffrey Noer <noer@cygnus.com>1.6 + Public domain; no rights reserved. */1.7 +1.8 +#ifndef _SYS_TIME_H_1.9 +#define _SYS_TIME_H_1.10 +1.11 +#include <_ansi.h>1.12 +#include <sys/types.h>1.13 +1.14 +#ifdef __cplusplus1.15 +extern "C" {1.16 +#endif1.17 +1.18 +#ifndef _WINSOCK_H1.19 +struct timeval {1.20 + long tv_sec;1.21 + long tv_usec;1.22 +};1.23 +1.24 +struct timezone {1.25 + int tz_minuteswest;1.26 + int tz_dsttime;1.27 +};1.28 +1.29 +#ifdef __CYGWIN32__1.30 +#include <sys/select.h>1.31 +#endif /* __CYGWIN32__ */1.32 +1.33 +#endif /* _WINSOCK_H */1.34 +1.35 +#define ITIMER_REAL 01.36 +#define ITIMER_VIRTUAL 11.37 +#define ITIMER_PROF 21.38 +1.39 +struct itimerval {1.40 + struct timeval it_interval;1.41 + struct timeval it_value;1.42 +};1.43 +1.44 +int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z));1.45 +int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));1.46 +int _EXFUN(utimes, (const char *__path, struct timeval *__tvp));1.47 +int _EXFUN(getitimer, (int __which, struct itimerval *__value));1.48 +int _EXFUN(setitimer, (int __which, const struct itimerval *__value,1.49 + struct itimerval *__ovalue));1.50 +1.51 +#ifdef __cplusplus1.52 +}1.53 +#endif1.54 +#endif /* _SYS_TIME_H_ */
.