[PATCH] prevent retries on fclose/fflush after write errors

u-uclibc-qs50 at aetey.se u-uclibc-qs50 at aetey.se
Tue Mar 13 19:19:35 UTC 2012

On Tue, Mar 13, 2012 at 01:14:12PM -0400, Rich Felker wrote:
> SIZE_MAX to prevent applications from declaring objects of type
> FILE... :-)

:-) I guess you are right and nobody declares them.

> there's no correct/sane
> program that would be affected by this ABI change.

Actually I suspect that stdio macros might use stuff (like __bufpos)
which is located past the proposed new structure member, in which case
existing binaries would become incompatible with a patched library:

>>>  #endif /* __UCLIBC_HAS_WCHAR__ */
>>>  	int __filedes;
>>> +	int __errno_value;
>>>  #ifdef __STDIO_BUFFERS
>>>  	unsigned char *__bufstart;	/* pointer to buffer */
>>>  	unsigned char *__bufend;	/* pointer to 1 past end of buffer */
->      unsigned char *__bufpos;


More information about the uClibc mailing list