rework langinfo code for ABI compat and for use by time code
[musl] / src / thread / pthread_getcpuclockid.c
index cf3d2b8..9df14fb 100644 (file)
@@ -2,5 +2,6 @@
 
 int pthread_getcpuclockid(pthread_t t, clockid_t *clockid)
 {
-       return ENOSYS;
+       *clockid = (-t->tid-1)*8U + 6;
+       return 0;
 }