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
fix and overhaul dlsym depedency order, always record direct deps
[musl.git]
/
src
/
thread
/
pthread_rwlock_init.c
blob
a2c0b478c78cf36ef7f15e4d65956e517c647221
1
#include
"pthread_impl.h"
2
3
int
pthread_rwlock_init
(
pthread_rwlock_t
*
restrict rw
,
const
pthread_rwlockattr_t
*
restrict a
)
4
{
5
*
rw
= (
pthread_rwlock_t
){
0
};
6
if
(
a
)
rw
->
_rw_shared
=
a
->
__attr
[
0
]*
128
;
7
return
0
;
8
}