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:
parent
0da7297ef1
commit
64ae8ab5f0
|
@ -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>
|
2006-01-09 Eric Blake <ebb9@byu.net>
|
||||||
|
|
||||||
* libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
|
* libc/stdio/freopen.c (_freopen_r): Accept NULL filename.
|
||||||
|
|
|
@ -164,7 +164,7 @@ _DEFUN(_freopen_r, (ptr, file, mode, fp),
|
||||||
/*
|
/*
|
||||||
* F_SETFL doesn't change textmode. Don't mess with modes of ttys.
|
* 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)
|
&& setmode (f, flags & (O_BINARY | O_TEXT)) == -1)
|
||||||
f = -1;
|
f = -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -164,7 +164,7 @@ _DEFUN (_freopen64_r, (ptr, file, mode, fp),
|
||||||
/*
|
/*
|
||||||
* F_SETFL doesn't change textmode. Don't mess with modes of ttys.
|
* 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)
|
&& setmode (f, flags & (O_BINARY | O_TEXT)) == -1)
|
||||||
f = -1;
|
f = -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue