[vala/0.6] posix: Add socketpair and pipe bindings



commit 40621dc1c54e5037e2df01a2553d856f8fa5c8eb
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Mon Mar 23 22:39:23 2009 +0100

    posix: Add socketpair and pipe bindings
    
    Signed-off-by: Michael 'Mickey' Lauer <mlauer vanille-media de>
---
 vapi/posix.vapi |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index ff376bd..56e3bab 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -615,6 +615,9 @@ namespace Posix {
 	[CCode (cheader_filename = "sys/socket.h")]
 	public int socket (int domain, int type, int protocol);
 
+	[CCode (cheader_filename = "sys/socket.h")]
+	public int socketpair (int domain, int type, int protocol, int[] sv);
+
 	[CCode (cheader_filename = "sys/stat.h")]
 	public const mode_t S_IFMT;
 	[CCode (cheader_filename = "sys/stat.h")]
@@ -801,6 +804,8 @@ namespace Posix {
 	[CCode (cheader_filename = "unistd.h")]
 	public int execl (string path, params string[] arg);
 	[CCode (cheader_filename = "unistd.h")]
+	public int pipe ([CCode (array_length = false, null_terminated = false)] int[] pipefd);
+	[CCode (cheader_filename = "unistd.h")]
 	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);



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