You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

8 lines
211 B

#include <time.h>
#include "pthread_impl.h"
int timer_gettime(timer_t t, struct itimerspec *val)
{
if ((uintptr_t)t >= 0x100000) t = ((pthread_t)t)->result;
return syscall(SYS_timer_gettime, (long)t, val);
}