Initial commit of current C compiler sources, partly rebranded but not yet properly cleaned up!
This commit is contained in:
29
fakelibc/time.h
Normal file
29
fakelibc/time.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef _FAKELIBC_TIME_H
|
||||
#define _FAKELIBC_TIME_H
|
||||
|
||||
typedef long time_t;
|
||||
|
||||
char* ctime(const time_t* timevar);
|
||||
|
||||
/* TODO: Check if modern systems add any more fields. */
|
||||
struct tm {
|
||||
int tm_sec;
|
||||
int tm_min;
|
||||
int tm_hour;
|
||||
int tm_mday;
|
||||
int tm_mon;
|
||||
int tm_year;
|
||||
int tm_wday;
|
||||
int tm_yday;
|
||||
int tm_isdst;
|
||||
};
|
||||
|
||||
struct timespec {
|
||||
int tv_sec;
|
||||
long tv_nsec;
|
||||
};
|
||||
|
||||
struct tm* localtime(const time_t* timep);
|
||||
|
||||
/* From ifndef at top of file: */
|
||||
#endif
|
Reference in New Issue
Block a user