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