repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
iconv: add euro symbol to GBK as single byte 0x80
[musl.git]
/
src
/
time
/
gmtime_r.c
blob
22aec2c2e2ef21b8a1beb5bcd84da5988b3b41de
1
#include
"time_impl.h"
2
#include <errno.h>
3
4
struct
tm
*
__gmtime_r
(
const time_t
*
restrict t
,
struct
tm
*
restrict tm
)
5
{
6
if
(
__secs_to_tm
(*
t
,
tm
) <
0
) {
7
errno
=
EOVERFLOW
;
8
return
0
;
9
}
10
tm
->
tm_isdst
=
0
;
11
tm
->
__tm_gmtoff
=
0
;
12
tm
->
__tm_zone
=
__utc
;
13
return
tm
;
14
}
15
16
weak_alias
(
__gmtime_r
,
gmtime_r
);