Mail Archives: djgpp-workers/2001/08/06/12:13:06
On Mon, 6 Aug 2001, Andrew Cottrell wrote:
> If in _open.c I use the SFN code ah = 0x3d, al = oflag or the 0x6C00 call
> then touch updates the time with the 5701 DPMI int and the int86 call.
>
> 5704 / 5705 and 5706/5707 appear to work with the mod in _open, but I need
> to check the files properties to ensure that they work.
If this comes through, I believe we have a (slightly kludgey) solution
for the utime problem: get the 8+3 short name from 7160h, open the file
using the short name with function 0x6c via __dpmi_int, then call 57xx as
usual.
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.
- Raw text -