projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
implement pthread_rwlockattr_* (essentially no-ops)
[musl]
/
src
/
thread
/
pthread_rwlockattr_setpshared.c
diff --git a/src/thread/pthread_rwlockattr_setpshared.c
b/src/thread/pthread_rwlockattr_setpshared.c
new file mode 100644
(file)
index 0000000..
1f47f09
--- /dev/null
+++ b/
src/thread/pthread_rwlockattr_setpshared.c
@@ -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;
+}