Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
c1b39b203dc3614469f2581fa4d6146cf0ac2af0
/
.
/
src
/
time
/
timer_gettime.c
blob: 2320873eecf22c06f8cc30735e7b2df82e74239a [
file
] [
log
] [
blame
]
#include
<time.h>
#include
"pthread_impl.h"
int
timer_gettime
(
timer_t
t
,
struct
itimerspec
*
val
)
{
if
((
uintptr_t
)
t
&
1
)
t
=
(
void
*)((
unsigned
long
)
t
/
2
);
else
t
=
((
pthread_t
)
t
)->
result
;
return
syscall
(
SYS_timer_gettime
,
(
long
)
t
,
val
);
}