bug-gnulib
[Top][All Lists]
Advanced

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

Re: fpurge.c, freadahead.c, freading.c make wrong assumption


From: James Youngman
Subject: Re: fpurge.c, freadahead.c, freading.c make wrong assumption
Date: Thu, 13 Mar 2008 22:03:20 +0000

On Thu, Mar 13, 2008 at 7:24 PM, Roger Cornelius <address@hidden> wrote:
> findutils v4.3.9

What about more modern versions of findutils?

>  When _IOERR is defined, fpurge.c, freadahead.c, and freading.c wrongly
>  assume FILE struct members are named with a single leading "_"
>  character.  E.g., this section of code at line 95 of fpurge.c:
>
>  # elif defined _IOERR               /* AIX, HP-UX, IRIX, OSF/1, Solaris, 
> mingw */
>   fp->_ptr = fp->_base;
>   if (fp->_ptr != NULL)
>     fp->_cnt = 0;
>   return 0;
>  # elif defined __UCLIBC__           /* uClibc */
>
>
>  In the case of SCO OpenServer and Unixware, this assumption is wrong.
>  On these OS'es, FILE struct members are named using two leading "_"
>  characters.

This code is taken from gnulib and is included in quite a large number
of GPLed software projects.  Fixing it in gnulib will benefit a number
of projects.   You can get more information about gnulib at
https://savannah.gnu.org/projects/gnulib.

Thanks,
James.




reply via email to

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