Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
0109d950e685f1c5f6cef245a8b1bc47c9b6d94c
/
.
/
src
/
thread
/
pthread_mutexattr_setpshared.c
blob: 8c7a1e26b8943e7011d90cf07ad9eae74b21e8e5 [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_mutexattr_setpshared
(
pthread_mutexattr_t
*
a
,
int
pshared
)
{
if
(
pshared
>
1U
)
return
EINVAL
;
a
->
__attr
&=
0x7fffffff
;
a
->
__attr
|=
pshared
<<
31
;
return
0
;
}