home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / gcc-lib / i486-unknown-sco3.2v5.0.0elf / 2.6-95q2 / include / oldstyle / time.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-12  |  2.8 KB  |  113 lines

  1. /*
  2.  *   Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
  3.  *        All Rights Reserved.
  4.  *
  5.  *    The information in this file is provided for the exclusive use of
  6.  *    the licensees of The Santa Cruz Operation, Inc.  Such users have the
  7.  *    right to use, modify, and incorporate this code into other products
  8.  *    for purposes authorized by the license agreement provided they include
  9.  *    this notice and the associated copyright notice with any such product.
  10.  *    The information in this file is provided "AS IS" without warranty.
  11.  */
  12.  
  13. /*    Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
  14. /*    Portions Copyright (c) 1979 - 1990 AT&T   */
  15. /*      All Rights Reserved   */
  16.  
  17. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF          */
  18. /*    UNIX System Laboratories, Inc.                          */
  19. /*    The copyright notice above does not evidence any        */
  20. /*    actual or intended publication of such source code.     */
  21.  
  22. #ifndef _TIME_H
  23. #ifndef _PARAMS
  24. #if defined(__STDC__) || defined(__cplusplus)
  25. #define _PARAMS(ARGS) ARGS
  26. #else
  27. #define _PARAMS(ARGS) ()
  28. #endif
  29. #endif /* _PARAMS */
  30. #define _TIME_H
  31.  
  32. #ident "oldstyle @(#) time.h 20.2 95/01/04 "
  33.  
  34.  
  35. #ifndef NULL
  36. #define NULL    0
  37. #endif /* NULL */
  38.  
  39. #ifndef _SIZE_T
  40. #define _SIZE_T
  41. typedef unsigned int size_t;
  42. #endif
  43. #ifndef _CLOCK_T
  44. #define _CLOCK_T
  45. typedef long clock_t;
  46. #endif
  47. #ifndef _TIME_T
  48. #define _TIME_T
  49. typedef long time_t;
  50. #endif
  51.  
  52. #ifdef _POSIXTIMERS
  53. #include <sys/sudstime.h>
  54. #endif
  55.  
  56. #define CLOCKS_PER_SEC    1000000        /* As required by XPG4 and friends */
  57.  
  58. #pragma pack(4)
  59.  
  60. #ifndef _STRUCT_TM
  61. #define _STRUCT_TM
  62. struct tm
  63. {
  64.     int    tm_sec;
  65.     int    tm_min;
  66.     int    tm_hour;
  67.     int    tm_mday;
  68.     int    tm_mon;
  69.     int    tm_year;
  70.     int    tm_wday;
  71.     int    tm_yday;
  72.     int    tm_isdst;
  73. #define LTZNMAX 50
  74.     long tm_tzadj;
  75.     char tm_name[LTZNMAX];      /* name of timezone  */
  76. };
  77.  
  78. #pragma pack()
  79. #endif /* _STRUCT_TM */
  80.  
  81.  
  82. #include <sys/timeb.h>
  83. extern int    ftime();
  84. extern char *   nl_cxtime();
  85. extern char *   nl_ascxtime();
  86. extern long    clock();
  87. extern double    difftime _PARAMS((long , long ));
  88. extern time_t    mktime _PARAMS((struct tm *));
  89. extern time_t    time _PARAMS((long *));
  90. extern size_t    strftime _PARAMS((char *, __SIZE_TYPE__ , const char *, const struct tm *));
  91. extern struct tm    *gmtime _PARAMS((const long *)), *gmtime_r();
  92. extern struct tm    *localtime _PARAMS((const long *)), *localtime_r();
  93. extern char    *ctime _PARAMS((const long *)), *ctime_r();
  94. extern char    *asctime _PARAMS((const struct tm *)), *asctime_r();
  95. extern int    cftime _PARAMS((char *, char *, const long *)), ascftime _PARAMS((char *, const char *, const struct tm *));
  96. extern void    tzset();
  97.  
  98. extern long    timezone, altzone;
  99. extern int    daylight;
  100. extern char    *tzname[];
  101. extern char    *strptime();
  102.  
  103. extern struct tm    *getdate _PARAMS((const char *));
  104. extern int    getdate_err;
  105.  
  106.  
  107.  
  108. #ifndef difftime
  109. #define difftime(t1, t0) ((double)((t1) - (t0)))
  110. #endif
  111.  
  112. #endif /* _TIME_H */
  113.