mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 06:02:04 +00:00
10 lines
171 B
C
10 lines
171 B
C
![]() |
#include "pthread_impl.h"
|
||
|
|
||
|
int pthread_mutexattr_setrobust(pthread_mutexattr_t *a, int robust)
|
||
|
{
|
||
|
if (robust > 1U) return EINVAL;
|
||
|
*a &= ~4;
|
||
|
*a |= robust*4;
|
||
|
return 0;
|
||
|
}
|