1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:37:36 +00:00

LibC, LibM: Add functions needed to compile python3

This commit is contained in:
Emanuel Sprung 2019-11-11 14:08:20 +01:00 committed by Andreas Kling
parent 3042c942d8
commit e7affa24dc
7 changed files with 136 additions and 1 deletions

View file

@ -48,11 +48,13 @@ typedef int clockid_t;
int clock_gettime(clockid_t, struct timespec*);
int clock_nanosleep(clockid_t, int flags, const struct timespec* requested_sleep, struct timespec* remaining_sleep);
int clock_getres(clockid_t, struct timespec* result);
struct tm* gmtime_r(const time_t* timep, struct tm* result);
struct tm* localtime_r(const time_t* timep, struct tm* result);
double difftime(time_t, time_t);
size_t strftime(char* s, size_t max, const char* format, const struct tm*);
#define difftime(t1, t0) (double)(t1 - t0)
__END_DECLS