]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix: Add bind(2)
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Fri, 15 May 2009 13:13:24 +0000 (15:13 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 17 May 2009 10:11:34 +0000 (12:11 +0200)
This needs to use variable argument list since the actual parameters
vary with the socket family.

Signed-off-by: Michael 'Mickey' Lauer <mlauer@vanille-media.de>
vapi/posix.vapi

index 35b2bf8e957d6397eb1f952b4dbe2b76928ca9d2..68d299ac41ac86e5407fffb90a085a8242565e9f 100644 (file)
@@ -884,6 +884,8 @@ namespace Posix {
        public const int AF_INET6;
        [CCode (cheader_filename = "sys/socket.h")]
        public const int AF_UNIX;
+       [CCode (cheader_filename = "sys/socket.h", sentinel = "")]
+       public int bind (int sockfd, ...);
        [CCode (cheader_filename = "sys/socket.h")]
        public int socket (int domain, int type, int protocol);