Loading...
#ifndef _LINUX_TIME_H #define _LINUX_TIME_H struct timeval { long tv_sec; /* seconds */ long tv_usec; /* microseconds */ }; struct timezone { int tz_minuteswest; /* minutes west of Greenwich */ int tz_dsttime; /* type of dst correction */ }; #define FD_SETSIZE (8*sizeof(fd_set)) #define FD_SET(fd,fdsetp) (*(fdsetp) |= (1 << (fd))) #define FD_CLR(fd,fdsetp) (*(fdsetp) &= ~(1 << (fd))) #define FD_ISSET(fd,fdsetp) ((*(fdsetp) >> fd) & 1) #define FD_ZERO(fdsetp) (*(fdsetp) = 0) /* * Names of the interval timers, and structure * defining a timer setting. */ #define ITIMER_REAL 0 #define ITIMER_VIRTUAL 1 #define ITIMER_PROF 2 struct itimerval { struct timeval it_interval; /* timer interval */ struct timeval it_value; /* current value */ }; #endif |