[patch] remove atoff

Eric Blake eblake@redhat.com
Fri Aug 26 16:34:00 GMT 2011

On 08/26/2011 09:38 AM, Marco atzeri wrote:
> On 8/26/2011 4:10 PM, Ralf Corsepius wrote:
>> On 08/26/2011 04:00 PM, Steven Abner wrote:
>>> On Aug 26, 2011, at 9:44 AM, Ralf Corsepius wrote:
>>>> it's not covered by any current standard
> Atof was reported on the C standard draft
> http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf

atof(), yes (and it's also part of POSIX).  But atoff() is not in C (not 
even in the C1x draft in document n1516).  The question here is about 

Portable programs should not be using atoff().  However, cygwin is 
exporting it, and remoing atoff() _will_ break applications linked 
against cygwin1.dll.

You can remove the declarations from headers, so that new apps won't use 
it, but you may NOT remove the function itself, without breaking shared 
library clients of newlib like cygwin.

Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

More information about the Newlib mailing list