This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: vfprintf typing problem


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. :-)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]