1#include "pthread_impl.h"
2
3int __pthread_rwlock_wrlock(pthread_rwlock_t *rw)
4{
5 if (rw->_rw_lock) return EDEADLK;
6 rw->_rw_lock = 0x7fffffff;
7 return 0;
8}
9
10weak_alias(__pthread_rwlock_wrlock, pthread_rwlock_wrlock);