X-Authentication-Warning: new-smtp1.ihug.com.au: Host p31-max47.syd.ihug.com.au [203.173.145.31] claimed to be acceleron Message-ID: <012501c11f40$1b082090$0a02a8c0@acceleron> From: "Andrew Cottrell" To: "Eli Zaretskii" , "Charles Sandmann" Cc: Subject: Fw: Windows 2000 /dev/null permission query Date: Tue, 7 Aug 2001 21:54:15 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Reply-To: djgpp-workers AT delorie DOT com Email problems. I have to send this again. Sorry if people get multiple copies. > > Alternatively, we could use function 7143h to set file times directly, > > without opening it. Since this function is reported to sometimes fail > > on Windows 98 and ME, we should use this alternative only on W2K/XP > > (detectable by their DOS version, 5.50, together with LFN support). > > Assuming that 7143h doesn't have any surprised (a bold assumption, I > > know ;-), this would completely avoid the problem with LFN vs non-LFN > > handles. > Function 7143 works on my Win2K box, but due to buggy Win 9x implementation > this does not work on Win98. > > Previous info on 7143 issue: > Done some digging at Bill's home and only found the following interesting > page on Interrupt 21 function 7143 sub-functions 5 and 7 issue with Win > 98/98SE/ME: > http://support.microsoft.com/support/kb/articles/Q277/6/28.ASP > > Output of testing: > -rw-r--r-- 1 AC root 4 Aug 24 2001 new.txt > > 5700 call time cx = 0xB733 date dx = 0x2B18 r.x.flags = 0x0002 r.x.ax = > 0x5700 > 7143 call time cx = 0xB734 date di = 0x2B18 r.x.flags = 0x0002 r.x.ax = > 0x7143 > Creation time 10 milliseconds (si)= 0x00BC > NEW date (di)= 0x2B19 > 7143 07 call time cx = 0xB734 date di = 0x2B19 r.x.flags = 0x0002 r.x.ax = > 0x7143 > Creation time 10 milliseconds (si)= 0x00BC > 7143 03 call time cx = 0xB734 date di = 0x2B19 r.x.flags = 0x0002 r.x.ax = > 0x7143 > Creation time 10 milliseconds (si)= 0x00BC > > -rw-r--r-- 1 AC root 4 Aug 25 2001 new.txt > > One advantage of this is that it would be probably quicker on NT as it one > interrupt call and does not require any file handlers etc.... > > Now for the hard question: > Which way should we go to fix utime? > Use 7143 or use SFN handles? My gut feel is to use the 7143 > function on Win2K where LFN is set. > > Not being up to date with NT 4.0 support and the LFN drivers/services what > would occur on NT 4.0? Should LFN bet set or not set? > No flames please on the next question as I don't like asking, but it would > make the change easier to implement: Does NT 4.0 LFN support matter? > > Now to have a look at 71A6h support. Got 30 mins before a series final on > TV. > > Andrew