kern

view src/klibc/time.h @ 77:a6513dc35f04

- started writing disk/ata code - made the debug script rip the commandline arguments out of the run script so I won't have to keep them in sync - added 64bit sized types in klibc/intypes.h - temporarily commented out the processes init from main
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 06 Dec 2011 11:56:08 +0200
parents e70b1ab9613e
children
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 time_t time(time_t *tp);
19 char *asctime(struct tm *tm);
20 char *asctime_r(struct tm *tm, char *buf);
22 time_t mktime(struct tm *tm);
23 struct tm *gmtime(time_t *tp);
24 struct tm *gmtime_r(time_t *tp, struct tm *tm);
26 /* non-standard helpers */
27 int day_of_year(int year, int mon, int day);
30 #endif /* _TIME_H_ */