2006-01-09 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/freopen.c: Switch to use isatty instead of _isatty. * libc/stdio64/freopen64.c: Ditto.
This commit is contained in:
@ -164,7 +164,7 @@ _DEFUN(_freopen_r, (ptr, file, mode, fp),
|
||||
/*
|
||||
* F_SETFL doesn't change textmode. Don't mess with modes of ttys.
|
||||
*/
|
||||
if (0 <= f && ! _isatty (f)
|
||||
if (0 <= f && ! isatty (f)
|
||||
&& setmode (f, flags & (O_BINARY | O_TEXT)) == -1)
|
||||
f = -1;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user