[Vala] [PATCH 2/2] vapi/posix.vapi: 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 cfc9bb3..0c4c0f8 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1576,6 +1576,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(const char *path, off_t length);
+
        [SimpleType]
        [CCode (cname = "cc_t", cheader_filename = "termios.h")]
        [IntegerType (rank = 3, min = 0, max = 255)]
-- 
1.6.3.3




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