root/include/linux/time.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _LINUX_TIME_H
   2 #define _LINUX_TIME_H
   3 
   4 struct timeval {
   5         long    tv_sec;         /* seconds */
   6         long    tv_usec;        /* microseconds */
   7 };
   8 
   9 struct timezone {
  10         int     tz_minuteswest; /* minutes west of Greenwich */
  11         int     tz_dsttime;     /* type of dst correction */
  12 };
  13 
  14 #define FD_SETSIZE              (8*sizeof(fd_set))
  15 #define FD_SET(fd,fdsetp)       (*(fdsetp) |= (1 << (fd)))
  16 #define FD_CLR(fd,fdsetp)       (*(fdsetp) &= ~(1 << (fd)))
  17 #define FD_ISSET(fd,fdsetp)     ((*(fdsetp) >> fd) & 1)
  18 #define FD_ZERO(fdsetp)         (*(fdsetp) = 0)
  19 
  20 /*
  21  * Names of the interval timers, and structure
  22  * defining a timer setting.
  23  */
  24 #define ITIMER_REAL     0
  25 #define ITIMER_VIRTUAL  1
  26 #define ITIMER_PROF     2
  27 
  28 struct  itimerval {
  29         struct  timeval it_interval;    /* timer interval */
  30         struct  timeval it_value;       /* current value */
  31 };
  32 
  33 #endif

/* [previous][next][first][last][top][bottom][index][help] */