about summary refs log tree commit diff
path: root/src/thread
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/pthread_getcpuclockid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread/pthread_getcpuclockid.c b/src/thread/pthread_getcpuclockid.c
index cf3d2b84..9df14fb6 100644
--- a/src/thread/pthread_getcpuclockid.c
+++ b/src/thread/pthread_getcpuclockid.c
@@ -2,5 +2,6 @@
 
 int pthread_getcpuclockid(pthread_t t, clockid_t *clockid)
 {
-	return ENOSYS;
+	*clockid = (-t->tid-1)*8U + 6;
+	return 0;
 }