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