Set a files timestamp or copy a file with identical date

Dean_Swan at Mitel.COM Dean_Swan at Mitel.COM
Tue May 10 23:56:48 UTC 2005


I don't know about VMMaker being all that simple.  The bit about not 
actually cleaning out the build tree before VMMaker generates the new C 
sources on a Windoze machine is quite a problem, and God help you if you 
inadvertently have an older version of the platform specific (i.e. 
Windows) stuff in there that doesn't match up with your current version of 

It left such an unpleasant taste in my mouth that I still haven't gone 
back to try to sort it out.  Actually, since I got an iBook G4 to replace 
my ailing Sony Vaio laptop, I haven't paid much attention to Windows at 
all, but I do still want to get a usable VM running on my iPaq 2210. 
Yoshiki's VM's don't seem to play nice with Pocket PC 2003.  I always end 
up having to reset the iPaq to get out of Squeak.  I suspect it might have 
something to do with the way he initializes GAPI.


Tim Rowledge <tim at>
Sent by: squeak-dev-bounces at
05/10/2005 03:22 PM
Please respond to The general-purpose Squeak developers list

        To:     squeak-dev at
        Subject:        Re: Re[2]: Set a files timestamp or copy a file with identical date

Herbert König <herbertkoenig at> wrote:

> TR> For usage, scan the VMMaker code for
> TR> VMMaker>primitiveCopyFileNamed:to: for
> TR> example.
> I've understood that I need to find the (slang? C?) code for the
> primitive, so where can that be found?
The function you need is in a vm plugin, so code for it will exist in two
a) the Slang code that is part of the VMMaker package. In particular, look 
the FileCopyPlugin class. Note that it seems incomplete, but see also...
b) the platforms tree as downloaded from the SVN server, in particular the

Now, as we've mentioned it won't be there for windows yet, so you'd have 
read the other platform implementations to get the idea. All you need to 
do is
implement sqInt sqCopyFilesizetosize(char *srcName, sqInt srcNameSize, 
*dstName, sqInt dstNameSize) and build the plugin.

This _ought_ to be doable by reading the relevant swiki pages so please 
try it
that way and please make notes about what isn't explained etc so we can 
the doc. Only by outside reviewers providing feedback can it get better.

> I've read the VMMAKER article on the swiki and for now I fear that
> would be the only way to go?
Why the fear? VMMaker is incredibly simple to use; load it from SqueakMap,
worldmenu>open>vmmaker, press a button.  All I could do to make it simpler
would be to pre-press the button for you ;-)

[*] there are a few plugins whose code is not in the VMMaker package. 
to worry about right now.

Tim Rowledge, tim at,
Useful random insult:- Nine pence in the shilling.

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Squeak-dev mailing list