diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-09-18 12:19:28 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-09-18 12:19:28 +0000 |
commit | 85f4a8612bc01c07db9ab660d729f42ec5c035b2 (patch) | |
tree | 01911f6468364af850c74167a49ed1c218c38816 /lib | |
parent | 7dada02ae62f74704c640e5a492cbe3d015d6b0b (diff) | |
download | FreeBSD-src-85f4a8612bc01c07db9ab660d729f42ec5c035b2.zip FreeBSD-src-85f4a8612bc01c07db9ab660d729f42ec5c035b2.tar.gz |
pthread api should return error code in return value, not in errno.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkse/thread/thr_sigmask.c | 3 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_sigmask.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/libkse/thread/thr_sigmask.c b/lib/libkse/thread/thr_sigmask.c index 24a5134..70463a5 100644 --- a/lib/libkse/thread/thr_sigmask.c +++ b/lib/libkse/thread/thr_sigmask.c @@ -93,8 +93,7 @@ _pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) /* Trap invalid actions: */ default: /* Return an invalid argument: */ - errno = EINVAL; - ret = -1; + ret = EINVAL; break; } SIG_CANTMASK(curthread->sigmask); diff --git a/lib/libpthread/thread/thr_sigmask.c b/lib/libpthread/thread/thr_sigmask.c index 24a5134..70463a5 100644 --- a/lib/libpthread/thread/thr_sigmask.c +++ b/lib/libpthread/thread/thr_sigmask.c @@ -93,8 +93,7 @@ _pthread_sigmask(int how, const sigset_t *set, sigset_t *oset) /* Trap invalid actions: */ default: /* Return an invalid argument: */ - errno = EINVAL; - ret = -1; + ret = EINVAL; break; } SIG_CANTMASK(curthread->sigmask); |