conformance/interface/pthread_rwlock_wrlock/3-1.c checks whether pthread_rwlock_wrlock() called twice returns EDEADLK or succeeds. But posix says « The calling thread may deadlock if at the time the call is made it holds the read-write lock (whether a read or write lock). ». So a deadlock (not EDEADLK) should be allowed too.