mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:47:45 +00:00
LibC: Add hack implementation of gmtime_r() matching gmtime()
This commit is contained in:
parent
23a54636ea
commit
e0d589c074
1 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue