diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-29 03:15:44 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-29 03:15:44 +0100 |
commit | 499e349afa57536ce80497aa99f61c5492e3733e (patch) | |
tree | fe3308c344659e800172cfaad9793918f24ae4b1 /os/src/isatty.c | |
parent | 5754656f65205ff1fd9b23c2a85778b3671caf68 (diff) |
More filesystem stuff working. devfs is now in place with stdin, stdout, and stderr.
Diffstat (limited to 'os/src/isatty.c')
-rw-r--r-- | os/src/isatty.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/os/src/isatty.c b/os/src/isatty.c index 69fef64..051284f 100644 --- a/os/src/isatty.c +++ b/os/src/isatty.c @@ -2,14 +2,12 @@ #include <reent.h> #include <errno.h> #include "fio.h" -#include "osdebug.h" int _isatty_r(struct _reent * reent, int fd) { - DBGOUT("_isatty_r(%p, %d)\r\n", reent, fd); -// if (!fio_is_open(fd)) { -// reent->_errno = EBADF; -// return 0; -// } -// reent->_errno = EINVAL; + if (!fio_is_open(fd)) { + reent->_errno = EBADF; + return 0; + } + reent->_errno = EINVAL; return 0; } |