Sign in
fuchsia
/
zircon
/
f3e2126c8a8b2ff64ca6cb7818f0606ceb5f889a
/
.
/
third_party
/
ulib
/
musl
/
pthread
/
pthread_mutexattr_settype.c
blob: cd17d31c9e8ee4df25af75069a69b587d9e1a3f8 [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_mutexattr_settype
(
pthread_mutexattr_t
*
a
,
int
type
)
{
if
(
type
&
~
PTHREAD_MUTEX_MASK
)
return
EINVAL
;
a
->
__attr
=
(
a
->
__attr
&
~
PTHREAD_MUTEX_MASK
)
|
type
;
return
0
;
}