From: Michael 'Mickey' Lauer Date: Fri, 15 May 2009 13:13:24 +0000 (+0200) Subject: posix: Add bind(2) X-Git-Tag: 0.7.3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a45f25655ec11fb6d78db0f0d8348fd9e1649a2d;p=thirdparty%2Fvala.git posix: Add bind(2) This needs to use variable argument list since the actual parameters vary with the socket family. Signed-off-by: Michael 'Mickey' Lauer --- diff --git a/vapi/posix.vapi b/vapi/posix.vapi index 35b2bf8e9..68d299ac4 100644 --- a/vapi/posix.vapi +++ b/vapi/posix.vapi @@ -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);