kern
annotate src/klibc/time.h @ 36:e70b1ab9613e
- added cmos rtc code
- added time/date functions in klibc
- implemented an iowait macro with output to 0x80
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 10 Jun 2011 05:33:38 +0300 |
parents | |
children | 2c401f69128e |
rev | line source |
---|---|
nuclear@36 | 1 #ifndef _TIME_H_ |
nuclear@36 | 2 #define _TIME_H_ |
nuclear@36 | 3 |
nuclear@36 | 4 typedef long time_t; |
nuclear@36 | 5 |
nuclear@36 | 6 struct tm { |
nuclear@36 | 7 int tm_sec; |
nuclear@36 | 8 int tm_min; |
nuclear@36 | 9 int tm_hour; |
nuclear@36 | 10 int tm_mday; |
nuclear@36 | 11 int tm_mon; |
nuclear@36 | 12 int tm_year; |
nuclear@36 | 13 int tm_wday; |
nuclear@36 | 14 int tm_yday; |
nuclear@36 | 15 int tm_isdst; |
nuclear@36 | 16 }; |
nuclear@36 | 17 |
nuclear@36 | 18 char *asctime(struct tm *tm); |
nuclear@36 | 19 time_t mktime(struct tm *tm); |
nuclear@36 | 20 |
nuclear@36 | 21 /* non-standard helpers */ |
nuclear@36 | 22 int day_of_year(int year, int mon, int day); |
nuclear@36 | 23 |
nuclear@36 | 24 |
nuclear@36 | 25 #endif /* _TIME_H_ */ |