projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add missing ptrace requests and options to sys/ptrace.h
[musl]
/
src
/
thread
/
pthread_attr_setscope.c
diff --git
a/src/thread/pthread_attr_setscope.c
b/src/thread/pthread_attr_setscope.c
index
a970a81
..
46b520c
100644
(file)
--- a/
src/thread/pthread_attr_setscope.c
+++ b/
src/thread/pthread_attr_setscope.c
@@
-2,5
+2,12
@@
int pthread_attr_setscope(pthread_attr_t *a, int scope)
{
- return 0;
+ switch (scope) {
+ case PTHREAD_SCOPE_SYSTEM:
+ return 0;
+ case PTHREAD_SCOPE_PROCESS:
+ return ENOTSUP;
+ default:
+ return EINVAL;
+ }
}