pthread api should return error code in return value, not in errno.

This commit is contained in:
David Xu 2003-09-18 12:19:28 +00:00
parent 9bab25e9e2
commit 68c1e83721
2 changed files with 2 additions and 4 deletions

View File

@ -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);

View File

@ -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);