aboutsummaryrefslogtreecommitdiff
path: root/src/thread/pthread_mutexattr_settype.c
blob: 91b1e22b4305eb5ad33a43b36a6fd634d1a527b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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;
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif