about summary refs log tree commit diff
path: root/src/time/timer_gettime.c
blob: 5a85821894cfa57b6728ee207e3a90d2a9c3a1b7 (plain) (blame)
1
2
3
4
5
6
7
8
#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);
}