home *** CD-ROM | disk | FTP | other *** search
- /*
- * UNOFFICIAL corrections applied by Tom Kelly (tom@sco.com).
- * USE AT YOUR OWN RISK. MAY CAUSE CHANGES IN THE WEATHER.
- *
- * DO NOT REPLACE /usr/include/sys/time.h WITH THIS FILE.
- * YOU *WILL* REGRET IT.
- */
-
- #ifndef _SYS_TIME_H_
- #define _SYS_TIME_H_
- #ifdef __STDC__
- #pragma comment(exestr, "@(#) time.h 25.3 94/09/22 SKUNKWARE 5 VERSION (tom)")
- #else
- #ident "@(#) time.h 25.3 94/09/22 SKUNKWARE 5 VERSION (tom)"
- #endif
- /*
- * Copyright (C) 1993-1994 The Santa Cruz Operation, Inc.
- * All Rights Reserved.
- * The information in this file is provided for the exclusive use of
- * the licensees of The Santa Cruz Operation, Inc. Such users have the
- * right to use, modify, and incorporate this code into other products
- * for purposes authorized by the license agreement provided they include
- * this notice and the associated copyright notice with any such product.
- * The information in this file is provided "AS IS" without warranty.
- */
- /* @(#)time.h 6.2 Lachman System V STREAMS TCP source */
- /*
- * Copyright (c) 1985 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
- */
-
- #include <sys/select.h> /* defines struct timeval */
-
- #ifdef _M_I386
- #pragma pack(4)
- #else
- #pragma pack(2)
- #endif
-
- struct timezone {
- int tz_minuteswest; /* minutes west of Greenwich */
- int tz_dsttime; /* type of dst correction */
- };
-
- #pragma pack()
-
- #define DST_NONE 0 /* not on dst */
- #define DST_USA 1 /* USA style dst */
- #define DST_AUST 2 /* Australian style dst */
- #define DST_WET 3 /* Western European dst */
- #define DST_MET 4 /* Middle European dst */
- #define DST_EET 5 /* Eastern European dst */
- #define DST_CAN 6 /* Canada */
- #define DST_GB 7 /* Great Britain and Eire */
- #define DST_RUM 8 /* Rumania */
- #define DST_TUR 9 /* Turkey */
- #define DST_AUSTALT 10 /* Australian style with shift in 1986 */
-
- /*
- * Defines timerisset(), timercmp(), timerclear(), ITIMER_REAL,
- * ITIMER_VIRTUAL, ITIMER_PROF, and struct itimerval.
- */
- #include <sys/itimer.h>
-
- #if !defined(_INKERNEL)
- # if defined(__STDC__) && !defined(_NO_PROTOTYPE)
- #ifdef __cplusplus
- extern "C" {
- #endif
- extern int adjtime (struct timeval *, struct timeval *);
- extern int gettimeofday (struct timeval *, struct timezone *);
- extern int settimeofday (struct timeval *, struct timezone *);
- #ifdef __cplusplus
- }
- #endif
- # else
- extern int adjtime ();
- extern int gettimeofday ();
- extern int settimeofday ();
- # endif /* defined(__STDC__) && !defined(_NO_PROTOTYPE) */
- #endif /* !defined(_INKERNEL) */
-
- #endif /* _SYS_TIME_H_ */
-