mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 14:11:56 +00:00
10 lines
185 B
C
10 lines
185 B
C
![]() |
#include "pthread_impl.h"
|
||
|
|
||
|
int pthread_mutexattr_setpshared(pthread_mutexattr_t *a, int pshared)
|
||
|
{
|
||
|
if (pshared > 1U) return EINVAL;
|
||
|
*a &= 0x7fffffff;
|
||
|
*a |= pshared<<31;
|
||
|
return 0;
|
||
|
}
|