/* Read type attribute for mutex. 
See IEEE 1003.1  */
int pthread_mutexattr_gettype(const pthread_mutexattr_t *_attr, int *type)
/* Read type attribute for mutex. 
See IEEE 1003.1  */
int pthread_mutexattr_gettype(const pthread_mutexattr_t *_attr, int *type)
{
	const struct pthread_mutexattr *attr = (const struct pthread_mutexattr *)_attr;
	*type = attr->type;
	return 0;
}