]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Add socketpair and pipe bindings
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Mon, 23 Mar 2009 21:39:23 +0000 (22:39 +0100)
committerJürg Billeter <j@bitron.ch>
Sun, 12 Apr 2009 15:59:29 +0000 (17:59 +0200)
Signed-off-by: Michael 'Mickey' Lauer <mlauer@vanille-media.de>
vapi/posix.vapi

index ff376bd41a0f03d96d6f442d381af292d064bf1a..56e3babe752697fd1371f2e076516020c9185977 100644 (file)
@@ -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);