bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

use __freading in glibc 2.7


From: Bruno Haible
Subject: use __freading in glibc 2.7
Date: Sat, 13 Oct 2007 13:33:53 +0200
User-agent: KMail/1.5.4

The __freading behaviour in glibc has been fixed for glibc 2.7, including a
unit test that verifies this behaviour. So, it's safe to use this glibc
function now.

2007-10-13  Bruno Haible  <address@hidden>

        * lib/freading.h (freading): Enable the use of __freading for
        glibc >= 2.7.
        * lib/freading.c (freading): Likewise.

*** lib/freading.h.orig 2007-10-13 13:31:06.000000000 +0200
--- lib/freading.h      2007-10-13 13:31:06.000000000 +0200
***************
*** 32,38 ****
  
     STREAM must not be wide-character oriented.  */
  
! #if HAVE___FREADING && !defined __GLIBC__ /* Solaris >= 7, not glibc >= 2.2  
*/
  
  # include <stdio_ext.h>
  # define freading(stream) (__freading (stream) != 0)
--- 32,39 ----
  
     STREAM must not be wide-character oriented.  */
  
! #if HAVE___FREADING && (!defined __GLIBC__ || __GLIBC__ > 2 || (__GLIBC__ == 
2 && __GLIBC_MINOR__ >= 7))
! /* Solaris >= 7, not glibc >= 2.2, but glibc >= 2.7  */
  
  # include <stdio_ext.h>
  # define freading(stream) (__freading (stream) != 0)
*** lib/freading.c.orig 2007-10-13 13:31:06.000000000 +0200
--- lib/freading.c      2007-10-13 13:31:06.000000000 +0200
***************
*** 19,27 ****
  /* Specification.  */
  #include "freading.h"
  
! /* Don't use glibc's __freading function, see
     <http://sourceware.org/bugzilla/show_bug.cgi?id=4359>  */
! #if !(HAVE___FREADING && !defined __GLIBC__)
  
  bool
  freading (FILE *fp)
--- 19,27 ----
  /* Specification.  */
  #include "freading.h"
  
! /* Don't use glibc's __freading function in glibc < 2.7, see
     <http://sourceware.org/bugzilla/show_bug.cgi?id=4359>  */
! #if !(HAVE___FREADING && (!defined __GLIBC__ || __GLIBC__ > 2 || (__GLIBC__ 
== 2 && __GLIBC_MINOR__ >= 7)))
  
  bool
  freading (FILE *fp)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]