delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/04/15/10:20:52

Date: Sun, 15 Apr 2001 18:22:40 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>
cc: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Subject: Re: _creatnew() failing
In-Reply-To: <200104151316.PAA07985@mother.ludd.luth.se>
Message-ID: <Pine.SUN.3.91.1010415181804.20107C@is>
MIME-Version: 1.0
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019