]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Introduce ftruncate() and truncate()
authorJulian Andres Klode <jak@jak-linux.org>
Sun, 30 Aug 2009 11:42:33 +0000 (13:42 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 16 Sep 2009 15:03:39 +0000 (17:03 +0200)
Signed-off-by: Julian Andres Klode <jak@jak-linux.org>
vapi/posix.vapi

index 9fcac11a9195c0ca90da8c2272ab082380866f62..b285f5ac3d02948db0364fd39aa498e67deba4e9 100644 (file)
@@ -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)]