[vala: 2/2] posix: add lseek binding
- From: Thijs Vermeir <tvermeir src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala: 2/2] posix: add lseek binding
- Date: Sat, 14 Mar 2009 07:39:05 -0400 (EDT)
commit 8d1bd59339e52b6be2cf4013554f34a38e8e4f1d
Author: Thijs Vermeir <thijsvermeir gmail com>
Date: Sat Mar 14 12:38:01 2009 +0100
posix: add lseek binding
---
vapi/posix.vapi | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index afc01bf..ed2d1cc 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -770,5 +770,14 @@ namespace Posix {
public ssize_t read (int fd, void* buf, size_t count);
[CCode (cheader_filename = "unistd.h")]
public ssize_t write (int fd, void* buf, size_t count);
+ [CCode (cheader_filename = "unistd.h")]
+ public off_t lseek(int fildes, off_t offset, int whence);
+
+ [CCode (cheader_filename = "unistd.h")]
+ public const int SEEK_SET;
+ [CCode (cheader_filename = "unistd.h")]
+ public const int SEEK_CUR;
+ [CCode (cheader_filename = "unistd.h")]
+ public const int SEEK_END;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]