[vala] posix: Add bind(2)
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] posix: Add bind(2)
- Date: Sun, 17 May 2009 06:14:14 -0400 (EDT)
commit a45f25655ec11fb6d78db0f0d8348fd9e1649a2d
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date: Fri May 15 15:13:24 2009 +0200
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 <mlauer vanille-media de>
---
vapi/posix.vapi | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 35b2bf8..68d299a 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]