On successful completion, pthread_mutexattr_gettype() returns 0. Any other return value indicates that an error occurred.
EINVAL
The value specified by type is invalid.