[vala] posix: Introduce ftruncate() and truncate()



commit b1bcc433b214ede476b3d459a06f529782afaadc
Author: Julian Andres Klode <jak jak-linux org>
Date:   Sun Aug 30 13:42:33 2009 +0200

    posix: Introduce ftruncate() and truncate()
    
    Signed-off-by: Julian Andres Klode <jak 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 9fcac11..b285f5a 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)]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]