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

int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *a, int pshared)
{
	if (pshared > 1U) return EINVAL;
	*(int *)a = pshared;
	return 0;
}