Fixed how errno is handled with isatty()
authorPaul Pearce <pearce@eecs.berkeley.edu>
Thu, 4 Jun 2009 02:08:46 +0000 (22:08 -0400)
committerKevin Klues <klueska@cs.berkeley.edu>
Fri, 5 Jun 2009 01:24:39 +0000 (18:24 -0700)
commit22d7c2bf086b3091636f860fdae32df7c39d15c4
tree01c55c6ba3f65913600c8998195d71df4051e550
parent9794e9a8f0218a5b98a4e1c13efd6b7d6cfb64bb
Fixed how errno is handled with isatty()

For some reason, isatty() defines an error response to be a return value of 0, not -1. In that case
errno is set. I modified parts of newlib_backend.c to handle this unique case.
user/apps/parlib/file_error.c
user/parlib/src/newlib_backend.c