1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)time.h	7.1 (Berkeley) 6/4/86
   7:  */
   8: 
   9: /*
  10:  * Structure returned by gettimeofday(2) system call,
  11:  * and used in other calls.
  12:  */
  13: struct timeval {
  14:     long    tv_sec;     /* seconds */
  15:     long    tv_usec;    /* and microseconds */
  16: };
  17: 
  18: struct timezone {
  19:     int tz_minuteswest; /* minutes west of Greenwich */
  20:     int tz_dsttime; /* type of dst correction */
  21: };
  22: #define DST_NONE    0   /* not on dst */
  23: #define DST_USA     1   /* USA style dst */
  24: #define DST_AUST    2   /* Australian style dst */
  25: #define DST_WET     3   /* Western European dst */
  26: #define DST_MET     4   /* Middle European dst */
  27: #define DST_EET     5   /* Eastern European dst */
  28: #define DST_CAN     6   /* Canada */
  29: 
  30: /*
  31:  * Operations on timevals.
  32:  *
  33:  * NB: timercmp does not work for >= or <=.
  34:  */
  35: #define timerisset(tvp)     ((tvp)->tv_sec || (tvp)->tv_usec)
  36: #define timercmp(tvp, uvp, cmp) \
  37:     ((tvp)->tv_sec cmp (uvp)->tv_sec || \
  38:      (tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec)
  39: #define timerclear(tvp)     (tvp)->tv_sec = (tvp)->tv_usec = 0
  40: 
  41: /*
  42:  * Names of the interval timers, and structure
  43:  * defining a timer setting.
  44:  */
  45: #define ITIMER_REAL 0
  46: #define ITIMER_VIRTUAL  1
  47: #define ITIMER_PROF 2
  48: 
  49: struct  itimerval {
  50:     struct  timeval it_interval;    /* timer interval */
  51:     struct  timeval it_value;   /* current value */
  52: };
  53: 
  54: #ifndef KERNEL
  55: #include <time.h>
  56: #endif

Defined struct's

itimerval defined in line 49; used 2 times
timeval defined in line 13; used 12 times
timezone defined in line 18; never used

Defined macros

DST_AUST defined in line 24; never used
DST_CAN defined in line 28; never used
DST_EET defined in line 27; never used
DST_MET defined in line 26; never used
DST_NONE defined in line 22; never used
DST_USA defined in line 23; never used
DST_WET defined in line 25; never used
ITIMER_PROF defined in line 47; never used
ITIMER_REAL defined in line 45; never used
ITIMER_VIRTUAL defined in line 46; never used
timerclear defined in line 39; never used
timercmp defined in line 36; never used
timerisset defined in line 35; never used

Usage of this include

Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1096
Valid CSS Valid XHTML 1.0 Strict