summaryrefslogblamecommitdiff
path: root/src/thread/pthread_mutexattr_setpshared.c
blob: 8c7a1e26b8943e7011d90cf07ad9eae74b21e8e5 (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                     

                                 

                 
#include "pthread_impl.h"

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