Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
aee9b1526247f74e9b755b50e102b3b4ce2aac1d
/
.
/
src
/
thread
/
pthread_condattr_setclock.c
blob: 71125941341d1392661eccdf6367793d270b0c2a [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_condattr_setclock
(
pthread_condattr_t
*
a
,
clockid_t
clk
)
{
if
(
clk
<
0
||
clk
-
2U
<
2
)
return
EINVAL
;
a
->
__attr
&=
0x80000000
;
a
->
__attr
|=
clk
;
return
0
;
}