Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
ded6cb5f719464649bcb61624d52327ae444bfca
/
.
/
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
);
}