Subject: Re: stdio FILE extension
To: None <tech-userlevel@netbsd.org>
From: MINOURA Makoto <minoura@netbsd.org>
List: tech-userlevel
Date: 10/13/2001 09:53:56
|> In <20011013.014025.125131835.yamt@mwd.biglobe.ne.jp>
|>  YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> wrote:

> no one is interested in this? ;-)
> overview:
> - rename FILE::_ub to _ext.
> - use FILE::_ext._base to point to file-associated extended
>   storage. (_ext._size is now unused.)
> - and use _ext._base->_ub instead of _ub.
> - extended storage is allocated when FILE itsself is allocated.
> - fputwc/fgetwc/ungetc/fwide is already implemented using it.
> - these changes may not break binary compatibility unless
>   applications use FILE::_ub directly.

Our another choice would be simply bumping libc major # to
add the new member to struct __sFILE, without any hacks.
It's cleaner and easier.

-- 
Minoura Makoto <minoura@netbsd.org>