summaryrefslogtreecommitdiff
path: root/src/thread/pthread_mutexattr_settype.c
blob: cd7a80e342c69981f6f3095e17dfb88739c38281 (plain)
1
2
3
4
5
6
7
8
#include "pthread_impl.h"

int pthread_mutexattr_settype(pthread_mutexattr_t *a, int type)
{
	if ((unsigned)type > 2) return EINVAL;
	a->__attr = (a->__attr & ~3) | type;
	return 0;
}