X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fsys_time.m4;fp=m4%2Fsys_time.m4;h=861fa41af85f16484101855dd89300a895af94a5;hb=b4508f6b917660970f887894a6aaed6c220a2c72;hp=0000000000000000000000000000000000000000;hpb=3137da963d298c73ce3bc858874fdfc87fa941b7;p=m6w6%2Fext-psi diff --git a/m4/sys_time.m4 b/m4/sys_time.m4 new file mode 100644 index 0000000..861fa41 --- /dev/null +++ b/m4/sys_time.m4 @@ -0,0 +1,26 @@ +AC_DEFUN(PSI_CHECK_SYS_TIME, [ + AC_CHECK_HEADERS(sys/time.h) + + PSI_CONST(ITIMER_REAL, int) + PSI_CONST(ITIMER_VIRTUAL, int) + PSI_CONST(ITIMER_PROF, int) + + PSI_STRUCT(struct timeval, [ + time_t tv_sec, + suseconds_t tv_usec] + ) + PSI_STRUCT(struct itimerval, [ + struct timeval it_interval, + struct timeval it_value] + ) + PSI_STRUCT(struct timezone, [ + int tz_minuteswest, + int tz_dsttime] + ) + + PSI_DECL(int getitimer, [(int which, struct itimerval *value)]) + PSI_DECL(int setitimer, [(int which struct itimerval *value, struct itimerval *ovalue)]) + PSI_DECL(int gettimeofday, [(struct timeval *tp, struct timezone *tz)]) + PSI_DECL(int utimes, [(char *path, struct timeval times@<:@2@:>@)]) + PSI_DECL(int utimensat, [(int fd, char *path, struct timespec times@<:@2@:>@)]) +])