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