1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:47:45 +00:00

LibC: Add hack implementation of gmtime_r() matching gmtime()

This commit is contained in:
Andreas Kling 2020-02-19 23:09:37 +01:00
parent 23a54636ea
commit e0d589c074

View file

@ -127,6 +127,12 @@ struct tm* gmtime(const time_t* t)
return localtime(t);
}
struct tm* gmtime_r(const time_t* t, struct tm* tm)
{
// FIXME: This is obviously not correct. What about timezones bro?
return localtime_r(t, tm);
}
char* asctime(const struct tm*)
{
ASSERT_NOT_REACHED();
@ -174,11 +180,6 @@ int clock_getres(clockid_t, struct timespec*)
ASSERT_NOT_REACHED();
}
struct tm* gmtime_r(const time_t*, struct tm*)
{
ASSERT_NOT_REACHED();
}
struct tm* localtime_r(const time_t* t, struct tm* tm)
{
time_to_tm(tm, *t);