projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
fee01bd6ee866434df7c9efe13e21f1fd99572a2
[musl]
/
gmtime_r.c
1
#include "time_impl.h"
2
#include <errno.h>
3
#include "libc.h"
4
5
struct tm *__gmtime_r(const time_t *restrict t, struct tm *restrict tm)
6
{
7
if (__secs_to_tm(*t, tm) < 0) {
8
errno = EOVERFLOW;
9
return 0;
10
}
11
tm->tm_isdst = 0;
12
tm->__tm_gmtoff = 0;
13
tm->__tm_zone = "GMT";
14
return tm;
15
}
16
17
weak_alias(__gmtime_r, gmtime_r);