xref: /csrg-svn/sys/tahoe/include/clock.h (revision 24011)
1*24011Ssam /*	clock.h	4.5	81/02/23	*/
2*24011Ssam 
3*24011Ssam #define	SECDAY		((unsigned)(24*60*60))		/* seconds per day */
4*24011Ssam #define	SECYR		((unsigned)(365*SECDAY))	/* per common year */
5*24011Ssam 
6*24011Ssam #define	YRREF		1970
7*24011Ssam #define	LEAPYEAR(year)	((year)%4==0)	/* good till time becomes negative */
8*24011Ssam 
9*24011Ssam /*
10*24011Ssam  * Software clock is software interrupt level 8
11*24011Ssam  */
12*24011Ssam #define	setsoftclock()	mtpr(0x8, SIRR)
13