Files
musl/src/thread/pthread_rwlockattr_setpshared.c

9 lines
170 B
C
Raw Normal View History

#include "pthread_impl.h"
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *a, int pshared)
{
if (pshared > 1U) return EINVAL;
*(int *)a = pshared;
return 0;
}