Index: fusl/src/thread/pthread_attr_setscope.c |
diff --git a/fusl/src/thread/pthread_attr_setscope.c b/fusl/src/thread/pthread_attr_setscope.c |
new file mode 100644 |
index 0000000000000000000000000000000000000000..46b520c0412c99a22d5e608ff4074a35301f4122 |
--- /dev/null |
+++ b/fusl/src/thread/pthread_attr_setscope.c |
@@ -0,0 +1,13 @@ |
+#include "pthread_impl.h" |
+ |
+int pthread_attr_setscope(pthread_attr_t *a, int scope) |
+{ |
+ switch (scope) { |
+ case PTHREAD_SCOPE_SYSTEM: |
+ return 0; |
+ case PTHREAD_SCOPE_PROCESS: |
+ return ENOTSUP; |
+ default: |
+ return EINVAL; |
+ } |
+} |