[klibc] isatty: allow errno to be set

The specification for isatty() *does* specify that errno is set if the
file descriptor is not a terminal.  Since we also have to propagate
errors on real errors (e.g. EBADF) this makes the implementation
really simple...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
1 file changed