d79eccd6dd
The implementation of posix_openpt on Linux can fail in a few extra ways if the appropriate pseudo filesystems are not mounted etc. In some of these cases we have to explicitly set errno.