repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
regex: treat \| in BRE as alternation
[musl.git]
/
src
/
thread
/
pthread_mutexattr_setpshared.c
blob
100f6ff203f1b2ead3585b656db6d36c32b8beec
1
#include
"pthread_impl.h"
2
3
int
pthread_mutexattr_setpshared
(
pthread_mutexattr_t
*
a
,
int
pshared
)
4
{
5
if
(
pshared
>
1U
)
return
EINVAL
;
6
a
->
__attr
&= ~
128U
;
7
a
->
__attr
|=
pshared
<<
7
;
8
return
0
;
9
}