tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: short _file in stdio -> fd leak

On Mar 13, 2008, at 10:58 AM, Joerg Sonnenberger wrote:

On Thu, Mar 13, 2008 at 07:00:52AM -0500, James Chacon wrote:
I stared at the FILE struct for a bit and there's no buffer space anywhere in this. If there had been a spare couple bytes somewhere we could have
split the int potentially and dealt with it that way.

No, even that would break the ABI. The problem is that fileno is a macro
by default and therefore older code can be expected to depend on the
current _file.

Crap...Ok, annoying.


Home | Main Index | Thread Index | Old Index