mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
syscalls: isatty: act more like mlibc expects
This commit is contained in:
@@ -24,8 +24,7 @@ syscallret syscall_isatty(int ifd){
|
|||||||
ret = vfs_isatty(fd->node);
|
ret = vfs_isatty(fd->node);
|
||||||
|
|
||||||
retv.errno = ret;
|
retv.errno = ret;
|
||||||
|
// don't care about return value
|
||||||
retv.ret = retv.errno == ENOTTY ? 0 : 1;
|
|
||||||
|
|
||||||
fd_release(fd);
|
fd_release(fd);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user