vfprintf typing problem

David Miller davem@davemloft.net
Mon Apr 2 06:33:00 GMT 2012


From: Paul Eggert <eggert@cs.ucla.edu>
Date: Sun, 01 Apr 2012 22:53:02 -0700

> On 04/01/2012 10:20 PM, David Miller wrote:
> 
>> +		__set_errno (ERANGE);
> 
> This should be EOVERFLOW, no?  Similarly for the other
> uses of ERANGE.

ERANGE for individual object overflows, EOVERFLOW for
overall total length overflow.  I'm just following the
existing convention and this is codified in the testsuite.

If you want to add an error signalling mechanism for
the printf parser, that sounds like a great idea, but
certainly not something I signed up for. :-)




More information about the Libc-alpha mailing list