123456789101112131415161718192021222324252627282930313233343536373839 |
- #include <errno.h>
- #include "pthreadP.h"
- int
- pthread_rwlockattr_setpshared (
- pthread_rwlockattr_t *attr,
- int pshared)
- {
- struct pthread_rwlockattr *iattr;
- if (pshared != PTHREAD_PROCESS_SHARED
- && __builtin_expect (pshared != PTHREAD_PROCESS_PRIVATE, 0))
- return EINVAL;
- iattr = (struct pthread_rwlockattr *) attr;
- iattr->pshared = pshared;
- return 0;
- }
|