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 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.
Joerg
Home |
Main Index |
Thread Index |
Old Index