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 timespec {
   5         long    tv_sec;         /* seconds */
   6         long    tv_nsec;        /* nanoseconds */
   7 };
   8 
   9 struct timeval {
  10         int     tv_sec;         /* seconds */
  11         int     tv_usec;        /* microseconds */
  12 };
  13 
  14 struct timezone {
  15         int     tz_minuteswest; /* minutes west of Greenwich */
  16         int     tz_dsttime;     /* type of dst correction */
  17 };
  18 
  19 #define NFDBITS                 __NFDBITS
  20 
  21 #ifdef __KERNEL__
  22 void do_gettimeofday(struct timeval *tv);
  23 void do_settimeofday(struct timeval *tv);
  24 #endif
  25 
  26 #define FD_SETSIZE              __FD_SETSIZE
  27 #define FD_SET(fd,fdsetp)       __FD_SET(fd,fdsetp)
  28 #define FD_CLR(fd,fdsetp)       __FD_CLR(fd,fdsetp)
  29 #define FD_ISSET(fd,fdsetp)     __FD_ISSET(fd,fdsetp)
  30 #define FD_ZERO(fdsetp)         __FD_ZERO(fdsetp)
  31 
  32 /*
  33  * Names of the interval timers, and structure
  34  * defining a timer setting.
  35  */
  36 #define ITIMER_REAL     0
  37 #define ITIMER_VIRTUAL  1
  38 #define ITIMER_PROF     2
  39 
  40 struct  itimerspec {
  41         struct  timespec it_interval;    /* timer period */
  42         struct  timespec it_value;       /* timer expiration */
  43 };
  44 
  45 struct  itimerval {
  46         struct  timeval it_interval;    /* timer interval */
  47         struct  timeval it_value;       /* current value */
  48 };
  49 
  50 #endif

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