[libc][armlibc] Fix getchar error after exit vi
- _sys_istty() add stdio as tty - without this, after exit vi program getchar will return -1, I don't know why it works
This commit is contained in:
parent
0924d277f6
commit
48848c2917
|
@ -270,7 +270,10 @@ long _sys_flen(FILEHANDLE fh)
|
|||
|
||||
int _sys_istty(FILEHANDLE fh)
|
||||
{
|
||||
return 0;
|
||||
if((STDIN <= fh) && (fh <= STDERR))
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
int remove(const char *filename)
|
||||
|
|
Loading…
Reference in New Issue