Date: Sun, 15 Apr 2001 18:22:40 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Martin Str|mberg cc: DJGPP-WORKERS Subject: Re: _creatnew() failing In-Reply-To: <200104151316.PAA07985@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, 15 Apr 2001, Martin Str|mberg wrote: > It has been hammered into me that unsupported INT21 functions do not > set the carry flag and only set AL to 0. ...except when documented otherwise. RBIL says that function 6Ch sets the carry flag when it fails. > FreeDOS claims to be DOZE 5.0 but it does not support INT21, > AX=0x6c00. So this _creatnew() happily thinks is has successfully > opened/created the file in question. RBIL says something similar about DRDOS: DR DOS reportedly does not support this function and does not return an "invalid function call" error when this function is used. I guess we need to test _os_flavor in addition to _osmajor, in this case.