projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix __WORDSIZE on x32 sys/user.h
[musl]
/
src
/
thread
/
pthread_rwlock_trywrlock.c
diff --git
a/src/thread/pthread_rwlock_trywrlock.c
b/src/thread/pthread_rwlock_trywrlock.c
index
bb3d3a9
..
64d9d31
100644
(file)
--- a/
src/thread/pthread_rwlock_trywrlock.c
+++ b/
src/thread/pthread_rwlock_trywrlock.c
@@
-1,7
+1,9
@@
#include "pthread_impl.h"
#include "pthread_impl.h"
-int pthread_rwlock_trywrlock(pthread_rwlock_t *rw)
+int
__
pthread_rwlock_trywrlock(pthread_rwlock_t *rw)
{
if (a_cas(&rw->_rw_lock, 0, 0x7fffffff)) return EBUSY;
return 0;
}
{
if (a_cas(&rw->_rw_lock, 0, 0x7fffffff)) return EBUSY;
return 0;
}
+
+weak_alias(__pthread_rwlock_trywrlock, pthread_rwlock_trywrlock);