Date: Tue, 23 Jul 1996 23:40:42 -0400 Message-Id: <199607240340.XAA26870@delorie.com> From: DJ Delorie To: Demmer AT LStM DOT Ruhr-Uni-Bochum DOT De CC: djgpp-workers AT delorie DOT com In-reply-to: (DEMMER AT brain1 DOT lstm DOT ruhr-uni-bochum DOT de) Subject: Re: open() / _open() bug > I think there is a subtle bug in open()/_open(): > The higher bits of omode are masked out before a possibly existing > ! r.x.bx = oflag & 0xff; /* :TOM: new open() doesn't mask out upper bits, > ! ** so we have to do it here. > ! */ Charles - what does Win95 expect in BH? Can we just leave it unmasked, or will the spare bits we use confuse it? > ! r.h.al = oflag & 0xff; /* :TOM: see above */ I think this is unneeded - al is a byte register.