Date: Mon, 26 Mar 2001 09:18:24 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Martin Str|mberg cc: djgpp-workers AT delorie DOT com Subject: Re: Bug 323 In-Reply-To: <200103251451.QAA18175@mother.ludd.luth.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 25 Mar 2001, Martin Str|mberg wrote: > "On Tue, 30 Jan 2001, Martin Str|mberg wrote: > > > -extern char *__file_handle_modes; > > +extern unsigned short *__file_handle_modes; > > Please don't! This immediately breaks all existing libraries compiled > with previous versions of this header. > > Do we really need a short for each handle? Did we use up all the 8 > bits in the current definition?" Ah, that one. Thanks for the reminder. Well, I see two possibilities. Either use one of the unused bits in __file_handle_mode (we really only use O_TEXT and O_BINARY, even though we smack all the lower 8 bits of the open mode into it), or use the new fd_properties facility introduced by Mark recently.