/*
Copyright (c) 1993 Xerox Corporation.  All rights reserved.
*/
/*
 */

#ifndef ←←XR←sys←time←h
#define ←←XR←sys←time←h

#include <config/PCR←OS.h>
#include <sys/time.h>

/*
 * 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*/