implement dummy pthread_attr_[gs]etschedparam functions
[musl] / src / thread / pthread_attr_setschedparam.c
diff --git a/src/thread/pthread_attr_setschedparam.c b/src/thread/pthread_attr_setschedparam.c
new file mode 100644 (file)
index 0000000..b305f2f
--- /dev/null
@@ -0,0 +1,7 @@
+#include "pthread_impl.h"
+
+int pthread_attr_setschedparam(pthread_attr_t *a, const struct sched_param *param)
+{
+       if (param->sched_priority) return ENOTSUP;
+       return 0;
+}