diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-28 23:41:41 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-01-28 23:41:49 +0100 |
commit | 8fbd519e538ddedcbafe5f6732b16d5d8a1b7bf4 (patch) | |
tree | cc23ec943ec80266ec6e73e136facbbd897c8ee6 /os/src/isatty.c | |
parent | f595d9e7896e2a38b19522a34a6829c2fec011fb (diff) |
File IO embryo.
Diffstat (limited to 'os/src/isatty.c')
-rw-r--r-- | os/src/isatty.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/os/src/isatty.c b/os/src/isatty.c index baf78e4..69fef64 100644 --- a/os/src/isatty.c +++ b/os/src/isatty.c @@ -1,8 +1,15 @@ #include <unistd.h> #include <reent.h> +#include <errno.h> +#include "fio.h" #include "osdebug.h" -int _isatty_r(struct _reent * ptr, int fildes) { - DBGOUT("_isatty_r(%p, %d)\r\n", ptr, fildes); +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; return 0; } |