implement pthread_condattr_* interfaces
[musl] / src / thread / pthread_condattr_getpshared.c
diff --git a/src/thread/pthread_condattr_getpshared.c b/src/thread/pthread_condattr_getpshared.c
new file mode 100644 (file)
index 0000000..b620976
--- /dev/null
@@ -0,0 +1,7 @@
+#include "pthread_impl.h"
+
+int pthread_condattr_getpshared(const pthread_condattr_t *a, int *pshared)
+{
+       *pshared = *a>>31;
+       return 0;
+}