delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/13/05:43:27

Date: Mon, 13 Aug 2001 12:42:04 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
Message-Id: <2561-Mon13Aug2001124204+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9
CC: djgpp-workers AT delorie DOT com, sandmann AT clio DOT rice DOT edu
In-reply-to: <00af01c12197$68628570$0a02a8c0@acceleron> (acottrel@ihug.com.au)
Subject: Re: Windows 2000 patch for utime.c v1
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010808181731 DOT 27271C-100000 AT is> <007701c120c6$2d72db80$0a02a8c0 AT acceleron> <7458-Thu09Aug2001183844+0300-eliz AT is DOT elta DOT co DOT il> <00af01c12197$68628570$0a02a8c0 AT acceleron>
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

> From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
> Date: Fri, 10 Aug 2001 22:24:29 +1000
> >
> > Btw, did they work on directories, i.e. could you change the time
> > stamp of a directory?
> Yes I could change the time stamp of a directory on Win 2K.

So at least we gained something by switching to 7143h.

> On Win 98 when I tested it I could not change the timestamp of a directory.

Windows 9X (and DOS) don't allow to change the timestamp of a
directory.  Function 7143h silently does nothing for a directory on
those systems, while functions of the 57xx family cannot be used on a
directory because they require a file handle, and you cannot `open' a
directory.

> Should setting time on a directory fail?

It should fail if the OS doesn't let us do that.  So it should succeed
on W2K and XP, but fail on other systems.  If you build `touch' with
the latest patch to `utime', do you see this behavior?

> To save time again i have attached an updated utime.c patch that fails when
> trying to set the time on a directory as occurs with the exisiting code on
> Win 9x.

Sorry, I don't understand: this code doesn't do anything special for
directories.  What change against the previous version of this code
stopped the support for directories?

- Raw text -


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