1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/include/time.h Thu Jan 31 09:35:01 2008 +0000
1.7 + * Struct and function declarations for dealing with time.
1.23 +/* Get _CLOCKS_PER_SEC_ */
1.24 +#include <machine/time.h>
1.26 +#ifndef _CLOCKS_PER_SEC_
1.27 +#define _CLOCKS_PER_SEC_ 1000
1.30 +#define CLOCKS_PER_SEC _CLOCKS_PER_SEC_
1.31 +#define CLK_TCK CLOCKS_PER_SEC
1.32 +#define __need_size_t
1.33 +#include <stddef.h>
1.35 +/* Get _CLOCK_T_ and _TIME_T_. */
1.36 +#include <machine/types.h>
1.38 +#ifndef __clock_t_defined
1.39 +typedef _CLOCK_T_ clock_t;
1.40 +#define __clock_t_defined
1.43 +#ifndef __time_t_defined
1.44 +typedef _TIME_T_ time_t;
1.45 +#define __time_t_defined
1.61 +clock_t _EXFUN(clock, (void));
1.62 +double _EXFUN(difftime, (time_t _time2, time_t _time1));
1.63 +time_t _EXFUN(mktime, (struct tm *_timeptr));
1.64 +time_t _EXFUN(time, (time_t *_timer));
1.65 +#ifndef _REENT_ONLY
1.66 +char *_EXFUN(asctime, (const struct tm *_tblock));
1.67 +char *_EXFUN(ctime, (const time_t *_time));
1.68 +struct tm *_EXFUN(gmtime, (const time_t *_timer));
1.69 +struct tm *_EXFUN(localtime,(const time_t *_timer));
1.71 +size_t _EXFUN(strftime, (char *_s, size_t _maxsize, const char *_fmt, const struct tm *_t));
1.73 +char *_EXFUN(asctime_r, (const struct tm *, char *));
1.74 +char *_EXFUN(ctime_r, (const time_t *, char *));
1.75 +struct tm *_EXFUN(gmtime_r, (const time_t *, struct tm *));
1.76 +struct tm *_EXFUN(localtime_r, (const time_t *, struct tm *));
1.78 +#ifdef __CYGWIN32__
1.79 +#ifndef __STRICT_ANSI__
1.80 +extern time_t _timezone __declspec(dllimport);
1.81 +extern int _daylight __declspec(dllimport);
1.82 +extern char *_tzname[2] __declspec(dllimport);
1.84 +char *_EXFUN(timezone, (void));
1.85 +void _EXFUN(tzset, (void));
1.87 +#endif /* __CYGWIN32__ */
1.92 +#endif /* _TIME_H_ */