RETURN VALUES
If successful, the pthread_rwlock_unlock function will return zero. Otherwise an error number will be returned to indicate the error. The results are undefined if lock is not held by the calling thread.
ERRORS
The pthread_rwlock_unlock function may fail if: