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         int     tv_sec;         /* seconds */
   6         int     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 NFDBITS                 __NFDBITS
  15 
  16 #ifdef __KERNEL__
  17 void do_gettimeofday(struct timeval *tv);
  18 void do_settimeofday(struct timeval *tv);
  19 #endif
  20 
  21 #define FD_SETSIZE              __FD_SETSIZE
  22 #define FD_SET(fd,fdsetp)       __FD_SET(fd,fdsetp)
  23 #define FD_CLR(fd,fdsetp)       __FD_CLR(fd,fdsetp)
  24 #define FD_ISSET(fd,fdsetp)     __FD_ISSET(fd,fdsetp)
  25 #define FD_ZERO(fdsetp)         __FD_ZERO(fdsetp)
  26 
  27 /*
  28  * Names of the interval timers, and structure
  29  * defining a timer setting.
  30  */
  31 #define ITIMER_REAL     0
  32 #define ITIMER_VIRTUAL  1
  33 #define ITIMER_PROF     2
  34 
  35 struct  itimerval {
  36         struct  timeval it_interval;    /* timer interval */
  37         struct  timeval it_value;       /* current value */
  38 };
  39 
  40 #endif

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