Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Solaris: Do not read from errno when libc did not indicate error (#448)
errno is only guaranteed to be set correctly when the function's return value indicates that the function failed. Handle the case where an unexpected negative result is returned separately from the case where the function failed.
- Loading branch information