[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:
gbcwbz 2018-12-23 19:15:20 +08:00
parent 0924d277f6
commit 48848c2917
1 changed files with 4 additions and 1 deletions

View File

@ -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)