This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
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. :-)