summaryrefslogtreecommitdiff
path: root/src/thread/pthread_mutexattr_settype.c
blob: 4e85950ec72c2057e601bbcb0eb552a06521da16 (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 = (*a & ~3) | type;
	return 0;
}