]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: add lseek binding
authorThijs Vermeir <thijsvermeir@gmail.com>
Sat, 14 Mar 2009 11:38:01 +0000 (12:38 +0100)
committerThijs Vermeir <thijsvermeir@gmail.com>
Sat, 14 Mar 2009 11:38:01 +0000 (12:38 +0100)
vapi/posix.vapi

index afc01bff54c3af6e522848ca311b3a2ab65fc114..ed2d1cc78614a48ca73a8b8fad759d77c7da089b 100644 (file)
@@ -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;
 }