aboutsummaryrefslogtreecommitdiff
path: root/src/thread/pthread_mutexattr_setpshared.c
blob: c2a09b48ce975296c068ca47d0de5de7d785dd67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "pthread_impl.h"

int pthread_mutexattr_setpshared(pthread_mutexattr_t *a, int pshared)
{
	if (pshared > 1U) return EINVAL;
	a->__attr &= ~128U;
	a->__attr |= pshared<<7;
	return 0;
}


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