www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/08/12:01:27

From: "Wojciech Galazka" <wojciech DOT galazka AT polkomtel DOT com DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: fstat works incorrectly under Windows NT
Date: Sat, 8 Apr 2000 17:02:19 +0200
Organization: http://news.icm.edu.pl/
Lines: 31
Message-ID: <8cnhoc$8au$1@sunsite.icm.edu.pl>
References: <8chqb5$78u$1 AT sunsite DOT icm DOT edu DOT pl> <38ECE535 DOT D0414969 AT is DOT elta DOT co DOT il> <8ck9k5$ob6$1 AT sunsite DOT icm DOT edu DOT pl> <38EE01E9 DOT 3EA52F8A AT is DOT elta DOT co DOT il>
NNTP-Posting-Host: plus273.polkomtel.com.pl
Mime-Version: 1.0
X-Trace: sunsite.icm.edu.pl 955206220 8542 212.2.97.146 (8 Apr 2000 15:03:40 GMT)
X-Complaints-To: abuse AT news DOT icm DOT edu DOT pl
NNTP-Posting-Date: 8 Apr 2000 15:03:40 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote in a message <38EE01E9 DOT 3EA52F8A AT is DOT elta DOT co DOT il>...
>Wojciech Galazka wrote:
>>
>
>> For an already existing file the return for st_dev is 3 (dirve d:) but
for a
>> newly created file the result is 0 so the code fails. The new file was
>> created within ln.c code using Win32 call, and not int 21h, AH=6C call
>> hovewer
>
>Sorry, I don't understand: how did Win32 calls enter the picture?  Are you
>telling that these problems only happen when ln runs under your LFN driver?

Hi,

Thanks for the suggestions.
I checked ln sources once again and it turns out that ln didn't want to work
under the LFN driver only. It works when the driver is not installed. .The
newest version of LFN  I'm working on completely bypasses int 21h AX=6Ch
call and creates/opens files using Win32 CreateFile() call. It turns out
that DOS file handles returned by the LFN driver under some circumstances
are not recognized by int 21h, AX=4400h used by get_dev_info() call. which
returns 0 instead.

I'm working on this right now and wonder if the SFT layout under Windows NT
is anywhere documented ....




- Raw text -


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