home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / fixes / os5 / sys / time.h
Encoding:
C/C++ Source or Header  |  1995-07-15  |  2.6 KB  |  85 lines

  1. /*
  2.  *    UNOFFICIAL corrections applied by Tom Kelly (tom@sco.com).
  3.  *    USE AT YOUR OWN RISK.  MAY CAUSE CHANGES IN THE WEATHER.
  4.  *
  5.  *    DO NOT REPLACE /usr/include/sys/time.h WITH THIS FILE.
  6.  *    YOU *WILL* REGRET IT.
  7.  */
  8.  
  9. #ifndef _SYS_TIME_H_
  10. #define _SYS_TIME_H_
  11. #ifdef __STDC__
  12. #pragma comment(exestr, "@(#) time.h 25.3 94/09/22 SKUNKWARE 5 VERSION (tom)")
  13. #else
  14. #ident "@(#) time.h 25.3 94/09/22 SKUNKWARE 5 VERSION (tom)"
  15. #endif
  16. /*
  17.  *    Copyright (C) 1993-1994 The Santa Cruz Operation, Inc.
  18.  *        All Rights Reserved.
  19.  *    The information in this file is provided for the exclusive use of
  20.  *    the licensees of The Santa Cruz Operation, Inc.  Such users have the
  21.  *    right to use, modify, and incorporate this code into other products
  22.  *    for purposes authorized by the license agreement provided they include
  23.  *    this notice and the associated copyright notice with any such product.
  24.  *    The information in this file is provided "AS IS" without warranty.
  25.  */
  26. /*      @(#)time.h    6.2 Lachman System V STREAMS TCP  source        */
  27. /*
  28.  * Copyright (c) 1985 Regents of the University of California.
  29.  * All rights reserved.  The Berkeley software License Agreement
  30.  * specifies the terms and conditions for redistribution.
  31.  */
  32.  
  33. #include <sys/select.h>        /* defines struct timeval */
  34.  
  35. #ifdef  _M_I386
  36. #pragma pack(4)
  37. #else
  38. #pragma pack(2)
  39. #endif
  40.  
  41. struct timezone {
  42.     int             tz_minuteswest;    /* minutes west of Greenwich */
  43.     int             tz_dsttime;    /* type of dst correction */
  44. };
  45.  
  46. #pragma pack()
  47.  
  48. #define    DST_NONE    0    /* not on dst */
  49. #define    DST_USA        1    /* USA style dst */
  50. #define    DST_AUST    2    /* Australian style dst */
  51. #define    DST_WET        3    /* Western European dst */
  52. #define    DST_MET        4    /* Middle European dst */
  53. #define    DST_EET        5    /* Eastern European dst */
  54. #define    DST_CAN        6    /* Canada */
  55. #define    DST_GB        7    /* Great Britain and Eire */
  56. #define    DST_RUM        8    /* Rumania */
  57. #define    DST_TUR        9    /* Turkey */
  58. #define    DST_AUSTALT    10    /* Australian style with shift in 1986 */
  59.  
  60. /*
  61.  * Defines timerisset(), timercmp(), timerclear(), ITIMER_REAL,
  62.  * ITIMER_VIRTUAL, ITIMER_PROF, and struct itimerval.
  63.  */
  64. #include <sys/itimer.h>
  65.  
  66. #if !defined(_INKERNEL)
  67. #   if defined(__STDC__) && !defined(_NO_PROTOTYPE)
  68. #ifdef __cplusplus
  69. extern "C" {
  70. #endif
  71. extern int    adjtime (struct timeval *, struct timeval *);
  72. extern int    gettimeofday (struct timeval *, struct timezone *);
  73. extern int    settimeofday (struct timeval *, struct timezone *);
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77. #   else
  78. extern int    adjtime ();
  79. extern int    gettimeofday ();
  80. extern int    settimeofday ();
  81. #   endif /* defined(__STDC__) && !defined(_NO_PROTOTYPE) */
  82. #endif /* !defined(_INKERNEL) */
  83.  
  84. #endif /* _SYS_TIME_H_ */
  85.