Last change
on this file since 387 was 352, checked in by coas-nagasima, 6 years ago |
arm向けASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
283 bytes
|
Line | |
---|
1 | #include <time.h>
|
---|
2 | #include <errno.h>
|
---|
3 | #include <unistd.h>
|
---|
4 | #include "syscall.h"
|
---|
5 |
|
---|
6 | int clock_getcpuclockid(pid_t pid, clockid_t *clk)
|
---|
7 | {
|
---|
8 | struct timespec ts;
|
---|
9 | clockid_t id = (-pid-1)*8U + 2;
|
---|
10 | int ret = __syscall(SYS_clock_getres, id, &ts);
|
---|
11 | if (ret) return -ret;
|
---|
12 | *clk = id;
|
---|
13 | return 0;
|
---|
14 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.