projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
math: add double precision error handling functions
[musl]
/
src
/
thread
/
pthread_barrierattr_setpshared.c
diff --git
a/src/thread/pthread_barrierattr_setpshared.c
b/src/thread/pthread_barrierattr_setpshared.c
index
b391461
..
c2d2929
100644
(file)
--- a/
src/thread/pthread_barrierattr_setpshared.c
+++ b/
src/thread/pthread_barrierattr_setpshared.c
@@
-2,6
+2,7
@@
int pthread_barrierattr_setpshared(pthread_barrierattr_t *a, int pshared)
{
+ if (pshared > 1U) return EINVAL;
a->__attr = pshared ? INT_MIN : 0;
return 0;
}