If successful, pthread_rwlockattr_init() returns zero. Otherwise, an error number is returned to indicate the error.
ENOMEM
Insufficient memory exists to initialize the read-write attributes object.