| Index: sysdeps/nacl/clock_getres.c
|
| diff --git a/sysdeps/nacl/clock_getres.c b/sysdeps/nacl/clock_getres.c
|
| index 5ded54cdba7d9fc96443b8cbed5e67a3b3889bc0..4aaaebf97400588dc60a709abd0b72d386a07acc 100644
|
| --- a/sysdeps/nacl/clock_getres.c
|
| +++ b/sysdeps/nacl/clock_getres.c
|
| @@ -3,9 +3,17 @@
|
|
|
| #include <irt_syscalls.h>
|
|
|
| +/*
|
| + * Please note that we do not support the general case via the TCB
|
| + * (pthread_getcpuclockid) which means that CLOCK_THREAD_CPUTIME_ID
|
| + * will behave differently from pthread_getcpuclockid(pthread_self()).
|
| + */
|
| +
|
| #define SYSDEP_GETRES \
|
| case CLOCK_REALTIME: \
|
| case CLOCK_MONOTONIC: \
|
| + case CLOCK_PROCESS_CPUTIME_ID: \
|
| + case CLOCK_THREAD_CPUTIME_ID: \
|
| { \
|
| int result = __nacl_irt_clock_getres (clock_id, res); \
|
| if (result != 0) \
|
| @@ -19,5 +27,6 @@
|
| break;
|
|
|
| #define HANDLED_REALTIME
|
| +#define HANDLED_CPUTIME
|
|
|
| #include <sysdeps/posix/clock_getres.c>
|
|
|