flush
[m6w6/ext-psi] / m4 / time.m4
1 AC_DEFUN(PSI_CHECK_TIME, [
2 AC_CHECK_HEADERS(time.h)
3
4 PSI_CONST(CLOCKS_PER_SEC, int)
5 PSI_CONST(CLOCK_MONOTONIC, int)
6 PSI_CONST(CLOCK_PROCESS_CPUTIME_ID, int)
7 PSI_CONST(CLOCK_REALTIME, int)
8 PSI_CONST(CLOCK_THREAD_CPUTIME_ID, int)
9 PSI_CONST(TIMER_ABSTIME, int)
10
11 PSI_STRUCT(struct tm, [
12 int tm_sec,
13 int tm_min,
14 int tm_hour,
15 int tm_mday,
16 int tm_mon,
17 int tm_year,
18 int tm_wday,
19 int tm_yday,
20 int tm_isdst]
21 )
22 PSI_STRUCT(struct timespec, [
23 time_t tv_sec,
24 long tv_nsec]
25 )
26 PSI_STRUCT(struct itimerspec, [
27 struct timespec it_interval,
28 struct timespec it_value]
29 )
30
31 PSI_DECL(char *asctime, [(struct tm *tm)])
32 PSI_DECL(char *asctime_r, [(struct tm *tm, char *buf)])
33 PSI_DECL(clock_t clock, [()])
34 PSI_DECL(int clock_getcpuclockid, [(pid_t pid, clockid_t *clock_id)])
35 PSI_DECL(int clock_getres, [(clockid_t clk_id, struct timespec *res)])
36 PSI_DECL(int clock_gettime, [(clockid_t clk_id, struct timespec *tp)])
37 PSI_DECL(int clock_nanosleep, [(clockid_t clk_id, int flags, struct timespec *rqtp, struct timespec *rmtp)])
38 PSI_DECL(int clock_settime, [(clockid_t clk_id, struct timespec *tp)])
39 PSI_DECL(char *ctime, [(time_t *t)])
40 PSI_DECL(char *ctime_r, [(time_t *t, char *buf)])
41 PSI_DECL(double difftime, [(time_t time1, time_t time0)])
42 PSI_DECL(struct tm *getdate, [(char *string)])
43 PSI_DECL(struct tm *gmtime, [(time_t *t)])
44 PSI_DECL(struct tm *gmtime_r, [(time_t *t, struct tm *buf)])
45 PSI_DECL(struct tm *localtime, [(time_t *t)])
46 PSI_DECL(struct tm *localtime_r, [(time_t *t, struct tm *buf)])
47 PSI_DECL(time_t mktime, [(struct tm *tm)])
48 PSI_DECL(int nanosleep, [(struct timespec *rqts, struct timespec *rmts)])
49 PSI_DECL(size_t strftime, [(char *s, size_t max, char *fmt, struct tm *tm)])
50 dnl PSI_DECL(size_t strftime_l, [(char *s, size_t max, char *fmt, struct tm *tm, locale_t l)])
51 PSI_DECL(char *strptime, [(char *s, char *fmt, struct tm *tm)])
52 PSI_DECL(time_t time, [(time_t *t)])
53 dnl PSI_DECL(int timer_create, [(clockid_t clk_id, struct sigevent *se, timer_t *t)])
54 PSI_DECL(int timer_delete, [(timer_t t)])
55 PSI_DECL(int timer_getoverrun, [(timer_t t)])
56 PSI_DECL(int timer_gettime, [(timer_t t, struct itimerspec *ts)])
57 PSI_DECL(int timer_settime, [(timer_t t, int flags, struct itimerspec *value, struct itimerspec *ovalue)])
58 PSI_DECL(void tzset, [()])
59 ])