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:
		@@ -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.
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user