X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_getcpuclockid.c;h=9df14fb68952463d5e4606ef19fa4f6ca043d2ec;hb=52d4444f8eec1a4e7e0861859c705c3a558b4e2a;hp=cf3d2b84c83391e0efcebe13f5904eaaa344a97d;hpb=19b1a8453e9d329a16711900a84797c5f1333208;p=musl 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; }