implement pthread_rwlockattr_* (essentially no-ops)

This commit is contained in:
Rich Felker
2011-03-07 16:43:25 -05:00
parent b4d40e44e3
commit cc2e0b45a6
4 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,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;
}