projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
report that posix_spawn is supported in unistd.h and sysconf
[musl]
/
src
/
thread
/
pthread_getcpuclockid.c
diff --git
a/src/thread/pthread_getcpuclockid.c
b/src/thread/pthread_getcpuclockid.c
index
cf3d2b8
..
9df14fb
100644
(file)
--- 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)
{
int pthread_getcpuclockid(pthread_t t, clockid_t *clockid)
{
- return ENOSYS;
+ *clockid = (-t->tid-1)*8U + 6;
+ return 0;
}
}