Initial commit of current C compiler sources, partly rebranded but not yet properly cleaned up!

This commit is contained in:
2025-06-04 03:45:05 +10:00
parent 6e217b2669
commit 7f74463109
33 changed files with 18135 additions and 0 deletions

29
fakelibc/time.h Normal file
View 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