From: Bart Oldeman Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP/LFNs/DOSEMU Date: Mon, 21 Jul 2003 04:52:20 +0000 (UTC) Organization: BT Openworld Lines: 25 Message-ID: References: <2593-Mon21Jul2003063204+0300-eliz AT elta DOT co DOT il> NNTP-Posting-Host: dial81-131-20-252.in-addr.btopenworld.com Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: hercules.btinternet.com 1058763140 13280 81.131.20.252 (21 Jul 2003 04:52:20 GMT) X-Complaints-To: news-complaints AT lists DOT btinternet DOT com NNTP-Posting-Date: Mon, 21 Jul 2003 04:52:20 +0000 (UTC) In-Reply-To: <2593-Mon21Jul2003063204+0300-eliz@elta.co.il> X-X-Sender: enbeo AT enm-bo-lt DOT localdomain To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 21 Jul 2003, Eli Zaretskii wrote: > > From: Bart Oldeman > > > All functions are implemented except for > > case 0xa6: /* get file info by handle */ > > case 0xa9: /* server create or open file */ > > case 0xaa: /* create/terminate/query subst */ > > this is enough for DJGPP -- I tested by compiling the LIBC. > > I'm surprised: I thought we use 0xa6. you do, in src/libc/posix/sys/stat/fstat.c, but just as a means to "try harder" if SFT methods fail (as far as I can quickly see in the source code, I may miss something here). What DOSEMU does for an "open" is to create the file if necessary and then generate the corresponding short filename and forward the request to the DOS that runs in DOSEMU using int21/ah=6c. This DOS will then call DOSEMU again using int2f/ax=11xx (network redirector) but assign the SFT for that file, assign a handle, and so on. Subsequently DJGPP's fstat can use that SFT. Bart