[BUG] file Truncate is it really busted?
David T. Lewis
lewis at mail.msen.com
Fri Nov 23 14:48:30 UTC 2001
On Fri, Nov 23, 2001 at 12:56:19AM -0800, John M McIntosh wrote:
> MMm well I think I added truncate so I'm wondering if it's really
> busted on non-mac platforms.
<snip>
> But really on Unix f->file points to a FILE structure, but ftruncate
> needs a file descriptor (an integer).
>
Yes, it's broken on Linux. It gives a "primitive has failed" error.
I tried your fixed version and it works fine.
- Dave
p.s. "ftruncate()" is certainly a misleading name. All of the other
"fwhatever()" calls expect to use a FILE structure.
More information about the Squeak-dev
mailing list
|