Sign in
fuchsia
/
fuchsia
/
b0ba8b34057f8cc0dd6819ccf0510c4690d82bfc
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
pthread
/
pthread_mutexattr_settype.c
blob: bd2fff49eab7e1bf8f30bb81bf2d83a3fa82d712 [
file
] [
log
] [
blame
]
#include
"threads_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
;
}