1*b30d1939SAndy Fiddaman/* : : generated from contrib/ast/src/cmd/ksh93/features/time by iffe version 2012-07-17 : : */ 2*b30d1939SAndy Fiddaman#ifndef _def_time_ksh93 3*b30d1939SAndy Fiddaman#define _def_time_ksh93 1 4*b30d1939SAndy Fiddaman#define _sys_types 1 /* #include <sys/types.h> ok */ 5*b30d1939SAndy Fiddaman#define _hdr_utime 1 /* #include <utime.h> ok */ 6*b30d1939SAndy Fiddaman#define _lib_gettimeofday 1 /* gettimeofday() in default lib(s) */ 7*b30d1939SAndy Fiddaman#define _lib_setitimer 1 /* setitimer() in default lib(s) */ 8*b30d1939SAndy Fiddaman#define _sys_time 1 /* #include <sys/time.h> ok */ 9*b30d1939SAndy Fiddaman#define _mem_tv_usec_timeval 1 /* tv_usec is a member of struct timeval */ 10*b30d1939SAndy Fiddaman#define _lib_2_timeofday 1 /* 2 arg gettimeofday() */ 11*b30d1939SAndy Fiddaman#undef _def_time 12*b30d1939SAndy Fiddaman#include <times.h> 13*b30d1939SAndy Fiddaman#define _def_time 1 14*b30d1939SAndy Fiddaman#undef timeofday 15*b30d1939SAndy Fiddaman#if _lib_2_timeofday 16*b30d1939SAndy Fiddaman#define timeofday(p) gettimeofday(p,(struct timezone*)0) 17*b30d1939SAndy Fiddaman#else 18*b30d1939SAndy Fiddaman#if _lib_1_timeofday 19*b30d1939SAndy Fiddaman#define timeofday(p) gettimeofday(p) 20*b30d1939SAndy Fiddaman#endif 21*b30d1939SAndy Fiddaman#endif 22*b30d1939SAndy Fiddaman 23*b30d1939SAndy Fiddaman#endif 24