mirror of
https://github.com/fluencelabs/musl
synced 2025-06-29 06:32:16 +00:00
implement pthread_rwlockattr_* (essentially no-ops)
This commit is contained in:
8
src/thread/pthread_rwlockattr_setpshared.c
Normal file
8
src/thread/pthread_rwlockattr_setpshared.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user