From: Julian Andres Klode Date: Sun, 30 Aug 2009 11:42:33 +0000 (+0200) Subject: posix: Introduce ftruncate() and truncate() X-Git-Tag: 0.7.6~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1bcc433b214ede476b3d459a06f529782afaadc;p=thirdparty%2Fvala.git posix: Introduce ftruncate() and truncate() Signed-off-by: Julian Andres Klode --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index 9fcac11a9..b285f5ac3 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -1580,6 +1580,11 @@ namespace Posix { [CCode (cheader_filename = "unistd.h")] public int sync (); + [CCode (cheader_filename = "unistd.h")] + public int ftruncate(int fd, off_t length); + [CCode (cheader_filename = "unistd.h")] + public int truncate(string path, off_t length); + [SimpleType] [CCode (cname = "cc_t", cheader_filename = "termios.h")] [IntegerType (rank = 3, min = 0, max = 255)]