file truncate

Lee Salzman lsalzman1 at cox.net
Thu Jul 29 17:33:20 PDT 2004


I would prefer this be done a little differently. ftruncate() is a part
of the unix standard, but is not ANSI C. The openNew: primitive in fact
already truncates files by using the fopen() mode "w+b", so not separate
truncate primitive is necessary.

Lee

On Thu, Jul 29, 2004 at 05:40:41PM +0200, Lendvai Attila wrote:
> 
> hi!
> 
> this is a file truncate patch + some bugfixes.
> 
> a bit distracting, maybe we should forget it until the vm bootstrap
> works.
> 
> ah, and of course I couldn't test it. the reason I made it is that the
> generators are appending/leaving garbage at the end of the files...
> 
> and currently the vm generation only works if there is a vm.c/h.
> therefore there's a withNewNamed:do: in the patch, too.
> 
> bye,
> 
> - 101
> 





More information about the Slate mailing list