kern

view 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
line source
1 #ifndef _TIME_H_
2 #define _TIME_H_
4 typedef long time_t;
6 struct tm {
7 int tm_sec;
8 int tm_min;
9 int tm_hour;
10 int tm_mday;
11 int tm_mon;
12 int tm_year;
13 int tm_wday;
14 int tm_yday;
15 int tm_isdst;
16 };
18 char *asctime(struct tm *tm);
19 time_t mktime(struct tm *tm);
21 /* non-standard helpers */
22 int day_of_year(int year, int mon, int day);
25 #endif /* _TIME_H_ */