Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
e69608700fa5a6920b3c8ba9951f43f5d4ec0eaa
/
.
/
src
/
thread
/
pthread_mutexattr_setrobust.c
blob: dcfa4cf1c771c5347240c3bd826448b69f094f06 [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_mutexattr_setrobust
(
pthread_mutexattr_t
*
a
,
int
robust
)
{
if
(
robust
>
1U
)
return
EINVAL
;
a
->
__attr
&=
~
4
;
a
->
__attr
|=
robust
*
4
;
return
0
;
}