libc.h (861B)
1 #define SUN 0 2 #define MON 1 3 #define TUE 2 4 #define WED 3 5 #define THU 4 6 #define FRI 5 7 #define SAT 6 8 9 #define JAN 0 10 #define FEB 1 11 #define DEC 11 12 13 #define EPOCH 1970 14 #define FEBDAYS(y) ((_daysyear(y) == 366) ? 29 : 28) 15 #define SECMIN 60 16 #define SECHOUR (60 * SECMIN) /* 3600 */ 17 #define SECDAY (24 * SECHOUR) /* 86400 */ 18 19 struct tzone { 20 char *name; 21 int gmtoff; 22 int isdst; 23 }; 24 25 struct tm; 26 27 extern struct tzone *_tzone(struct tm *tm); 28 extern int _daysyear(int year); 29 extern int _newyear(int year); 30 extern void *_getheap(void); 31 extern int _dtoi(char); 32 33 #ifdef stdin 34 extern int _flsbuf(FILE *fp); 35 extern int _allocbuf(FILE *fp); 36 extern FILE *_fpopen(const char * restrict fname, 37 const char * restrict mode, 38 FILE * restrict fp); 39 #endif 40 41 extern int _daysmon[12];