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:
Jeff Johnston 2006-01-09 20:01:09 +00:00
parent 0da7297ef1
commit 64ae8ab5f0
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-01-09 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdio/freopen.c: Switch to use isatty instead of _isatty.
* libc/stdio64/freopen64.c: Ditto.
2006-01-09 Eric Blake <ebb9@byu.net>
* libc/stdio/freopen.c (_freopen_r): Accept NULL filename.

View File

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

View File

@ -164,7 +164,7 @@ _DEFUN (_freopen64_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