awk portability
[m6w6/ext-psi] / m4 / sys_time.m4
1 AC_DEFUN(PSI_CHECK_SYS_TIME, [
2 AC_CHECK_HEADERS(sys/time.h)
3
4 PSI_CONST(ITIMER_REAL, int)
5 PSI_CONST(ITIMER_VIRTUAL, int)
6 PSI_CONST(ITIMER_PROF, int)
7
8 PSI_STRUCT(struct timeval, [
9 time_t tv_sec,
10 suseconds_t tv_usec]
11 )
12 PSI_STRUCT(struct itimerval, [
13 struct timeval it_interval,
14 struct timeval it_value]
15 )
16 PSI_STRUCT(struct timezone, [
17 int tz_minuteswest,
18 int tz_dsttime]
19 )
20
21 PSI_DECL(int getitimer, [(int which, struct itimerval *value)])
22 PSI_DECL(int setitimer, [(int which, struct itimerval *value, struct itimerval *ovalue)])
23 PSI_DECL(int gettimeofday, [(struct timeval *tp, struct timezone *tz)])
24 PSI_DECL(int utimes, [(char *path, struct timeval times@<:@2@:>@)])
25 PSI_DECL(int utimensat, [(int fd, char *path, struct timespec times@<:@2@:>@)])
26 ])