From: Michael 'Mickey' Lauer Date: Mon, 23 Mar 2009 21:39:23 +0000 (+0100) Subject: posix: Add socketpair and pipe bindings X-Git-Tag: 0.6.1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40621dc1c54e5037e2df01a2553d856f8fa5c8eb;p=thirdparty%2Fvala.git posix: Add socketpair and pipe bindings Signed-off-by: Michael 'Mickey' Lauer --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index ff376bd41..56e3babe7 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);