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
loongarch64: add new syscall numbers
[musl.git]
/
src
/
time
/
timer_getoverrun.c
blob
e7f891e4040fe3ff3117a15dec1bbab70cc75ad1
1
#include <time.h>
2
#include <limits.h>
3
#include
"pthread_impl.h"
4
5
int
timer_getoverrun
(
timer_t t
)
6
{
7
if
((
intptr_t
)
t
<
0
) {
8
pthread_t td
= (
void
*)((
uintptr_t
)
t
<<
1
);
9
t
= (
void
*)(
uintptr_t
)(
td
->
timer_id
&
INT_MAX
);
10
}
11
return
syscall
(
SYS_timer_getoverrun
,
t
);
12
}