[vala] posix: Add pread and pwrite POSIX compliant functions.



commit 20144d31796cadd08b43285b2d143d611181f543
Author: Anatol Pomozov <anatol pomozov gmail com>
Date:   Fri Dec 17 21:49:16 2010 +0100

    posix: Add pread and pwrite POSIX compliant functions.
    
    Fixes bug 636734.

 vapi/posix.vapi |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 762e25b..32da7af 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1525,6 +1525,8 @@ namespace Posix {
 	[CCode (cheader_filename = "unistd.h")]
 	public ssize_t read (int fd, void* buf, size_t count);
 	[CCode (cheader_filename = "unistd.h")]
+	public ssize_t pread (int fd, void* buf, size_t count, off_t offset);
+	[CCode (cheader_filename = "unistd.h")]
 	public ssize_t readlink (string path, char[] buf);
 	[CCode (cheader_filename = "unistd.h,sys/types.h")]
 	public int setgid (gid_t gid);
@@ -1535,6 +1537,8 @@ namespace Posix {
 	[CCode (cheader_filename = "unistd.h")]
 	public ssize_t write (int fd, void* buf, size_t count);
 	[CCode (cheader_filename = "unistd.h")]
+	public ssize_t pwrite (int fd, void* buf, size_t count, off_t offset);
+	[CCode (cheader_filename = "unistd.h")]
 	public off_t lseek(int fildes, off_t offset, int whence);
 
 	[CCode (cheader_filename = "unistd.h")]



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