Re: [Vala] [PATCH 2/2] vapi/posix.vapi: Introduce ftruncate() and truncate().

2009-09-16 Thread Julian Andres Klode
On Sun, Aug 30, 2009 at 01:42:33PM +0200, Julian Andres Klode wrote: Signed-off-by: Julian Andres Klode j...@jak-linux.org --- vapi/posix.vapi |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/vapi/posix.vapi b/vapi/posix.vapi index cfc9bb3..0c4c0f8 100644 ---

Re: [Vala] [PATCH 2/2] vapi/posix.vapi: Introduce ftruncate() and truncate().

2009-09-16 Thread Jürg Billeter
On Wed, 2009-09-16 at 16:44 +0200, Julian Andres Klode wrote: There has been no answer to my 2 patches yet, so I ask again. Having mmap() and file truncation support is kind of needed for maintaining a binary cache on the disk. And writing a package manager[1] without such a cache would be

Re: [Vala] [PATCH 2/2] vapi/posix.vapi: Introduce ftruncate() and truncate().

2009-09-16 Thread Julian Andres Klode
On Wed, Sep 16, 2009 at 05:07:50PM +0200, Jürg Billeter wrote: On Sun, Aug 30, 2009 at 01:42:33PM +0200, Julian Andres Klode wrote: + [CCode (cheader_filename = unistd.h)] + public int truncate(const char *path, off_t length); I've changed this to `string path' and applied both patches,