/* Copyright (c) 1993 Xerox Corporation. All rights reserved. */ /* */ #ifndef __XR_sys_time_h #define __XR_sys_time_h #include #include /* * Structure returned by gettimeofday(2) system call, * and used in other calls. */ struct XR_timeval { long tv_sec; /* seconds */ long tv_usec; /* and microseconds */ }; struct XR_timezone { int tz_minuteswest; /* minutes west of Greenwich */ int tz_dsttime; /* type of dst correction */ }; #define XR_DST_NONE 0 /* not on dst */ #define XR_DST_USA 1 /* USA style dst */ #define XR_DST_AUST 2 /* Australian style dst */ #define XR_DST_WET 3 /* Western European dst */ #define XR_DST_MET 4 /* Middle European dst */ #define XR_DST_EET 5 /* Eastern European dst */ #define XR_DST_CAN 6 /* Canada */ #define XR_DST_GB 7 /* Great Britain and Eire */ #define XR_DST_RUM 8 /* Rumania */ #define XR_DST_TUR 9 /* Turkey */ #define XR_DST_AUSTALT 10 /* Australian style with shift in 1986 */ #if defined(PCR_OS_SUNOS4) || defined(PCR_OS_SUNOS5) extern void XR_sys_time_TimeValFromHost(struct XR_timeval *xtv, struct timeval *htv); extern void XR_sys_time_TimeValToHost(struct timeval *htv, struct XR_timeval *xtv); extern void XR_sys_time_TimeZoneFromHost(struct XR_timezone *xtz, struct timezone *htz); extern void XR_sys_time_TimeZoneToHost(struct timezone *htz, struct XR_timezone *xtz); #else # error os ? #endif #endif /*!__XR_sys_time_h*/