at_wini also needs a pci_reserve() for the pci compatability device, if
[minix3.git] / lib / ansi / loc_time.h
blobcc2dd95b94bc707719d1079a03dd9dda64406cd1
1 /*
2 * loc_time.h - some local definitions
3 */
4 /* $Header$ */
6 #define YEAR0 1900 /* the first year */
7 #define EPOCH_YR 1970 /* EPOCH = Jan 1 1970 00:00:00 */
8 #define SECS_DAY (24L * 60L * 60L)
9 #define LEAPYEAR(year) (!((year) % 4) && (((year) % 100) || !((year) % 400)))
10 #define YEARSIZE(year) (LEAPYEAR(year) ? 366 : 365)
11 #define FIRSTSUNDAY(timp) (((timp)->tm_yday - (timp)->tm_wday + 420) % 7)
12 #define FIRSTDAYOF(timp) (((timp)->tm_wday - (timp)->tm_yday + 420) % 7)
13 #define TIME_MAX ULONG_MAX
14 #define ABB_LEN 3
16 extern const int _ytab[2][12];
17 extern const char *_days[];
18 extern const char *_months[];
20 void _tzset(void);
21 unsigned _dstget(struct tm *timep);
23 extern long _timezone;
24 extern long _dst_off;
25 extern int _daylight;
26 extern char *_tzname[2];