9fans archive / 2000 / 04 / 25 /    prev next

From: gdb@dbs... gdb@dbs...
Subject: [9fans] truncate syscall
Date: Mon, 10 Apr 2000 12:23:44 -0400

Yeah wstat, that is what I thought.
Since I have already gone there perhaps I could add that too.  Is there any interest in this functionality?

>---- Original Message ---
>From: "Russ Cox" <rsc@pla...>
>To: 9fans@cse...
>Cc: 
>Subject: Re: [9fans] truncate syscall
>
>  does somebody know if there is a [f]truncate syscall in Plan 9? Or it it is not
>  there, may be someone could suggest the similar functionality?
>There is none, and there is no way to
>implement it, as 9P does not support
>such a thing.  I suppose if you were
>really dying to have it, you could make
>wstat pay attention to the length, but
>that would be a departure from the
>9P definition.
>Russ