wasmux
Version:
WebAssembly toolchain for compiling libc and kernel into system-level WASM modules
71 lines (54 loc) • 1.34 kB
Plain Text
/*
*
* Copyright (C) 2024-2025 Yurii Yakubin (yurii.yakubin@gmail.com)
*
*/
@SCRIPT_INCLUDES@
extern "C" {
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;
};
typedef long clock_t;
typedef int clockid_t;
extern char* tzname[2];
extern int daylight;
extern long timezone;
time_t time(time_t* time);
time_t timegm(struct tm *tm);
clock_t clock(void);
void tzset(void);
size_t strftime(char* buf, size_t n, const char* format, const struct tm* tm);
char* ctime(const time_t* time);
char* ctime_r(const time_t* time, char* buf);
time_t mktime(struct tm* tm);
struct tm* localtime(const time_t* time);
struct tm* localtime_r(const time_t* time, struct tm* buf);
struct tm* gmtime(const time_t* time);
struct tm* gmtime_r(const time_t* time, struct tm* buf);
int timespec_get(struct timespec* ts, int base);
int nanosleep(const struct timespec* duration, struct timespec* remain);
double difftime(time_t time1, time_t time0);
struct itimerspec {
struct timespec it_interval;
struct timespec it_value;
};
}