__time_to_tm: initialize tm_zone and tm_gmtoff
[musl] / src / time / timer_gettime.c
1 #include <time.h>
2 #include "pthread_impl.h"
3
4 int timer_gettime(timer_t t, struct itimerspec *val)
5 {
6         if ((uintptr_t)t >= 0x100000) t = ((pthread_t)t)->result;
7         return syscall(SYS_timer_gettime, (long)t, val);
8 }