source: asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/time/timer_gettime.c@ 337

Last change on this file since 337 was 337, checked in by coas-nagasima, 6 years ago

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 290 bytes
Line 
1#include <time.h>
2#include <limits.h>
3#include "pthread_impl.h"
4
5int timer_gettime(timer_t t, struct itimerspec *val)
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_gettime, t, val);
12}
Note: See TracBrowser for help on using the repository browser.