[vala] posix: Add shutdown() and shutdown constants.



commit c0a40628daf30849427dddeeb8c2f3b343bc6d36
Author: Luca Bruno <lucabru src gnome org>
Date:   Sat Jan 15 10:57:54 2011 +0100

    posix: Add shutdown() and shutdown constants.
    
    Fixes bug 638916.

 vapi/posix.vapi |   36 +++++++++++++++++++++++-------------
 1 files changed, 23 insertions(+), 13 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 260f66a..af15a27 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1266,25 +1266,35 @@ namespace Posix {
 	public const int AF_INET6;
 	[CCode (cheader_filename = "sys/socket.h")]
 	public const int AF_UNIX;
+
+	[CCode (cheader_filename = "sys/socket.h")]
+	public const int SHUT_RD;
+	[CCode (cheader_filename = "sys/socket.h")]
+	public const int SHUT_WR;
+	[CCode (cheader_filename = "sys/socket.h")]
+	public const int SHUT_RDWR;
+
 	[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
 	public int accept (int sfd, ... );
-    [CCode (cheader_filename = "sys/socket.h", sentinel = "")]
+	[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
 	public int bind (int sockfd, ...);
 	[CCode (cheader_filename = "sys/socket.h",  sentinel = "")]
 	public int connect(int sfd, ... );
-    [CCode (cheader_filename = "sys/socket.h")]
-    public int getsockopt (int sockfd, int level, int optname, void* optval, out socklen_t optlen);
-    [CCode (cheader_filename = "sys/socket.h")]
+	[CCode (cheader_filename = "sys/socket.h")]
+	public int getsockopt (int sockfd, int level, int optname, void* optval, out socklen_t optlen);
+	[CCode (cheader_filename = "sys/socket.h")]
 	public int listen (int sfd, int backlog);
-    [CCode (cheader_filename = "sys/socket.h")]
-    public ssize_t send (int sockfd, void* buf, size_t len, int flags);
-    [CCode (cheader_filename = "sys/socket.h", sentinel = "")]
-    public ssize_t sendto (int sockfd, void* buf, size_t len, int flags, ...);
-    [CCode (cheader_filename = "sys/socket.h", sentinel = "")]
-    public ssize_t sendmsg (int sockfd, ...);
-    [CCode (cheader_filename = "sys/socket.h")]
-    public int setsockopt(int sockfd, int level, int optname, void* optval, socklen_t optlen);
-    [CCode (cheader_filename = "sys/socket.h")]
+	[CCode (cheader_filename = "sys/socket.h")]
+	public ssize_t send (int sockfd, void* buf, size_t len, int flags);
+	[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
+	public ssize_t sendto (int sockfd, void* buf, size_t len, int flags, ...);
+	[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
+	public ssize_t sendmsg (int sockfd, ...);
+	[CCode (cheader_filename = "sys/socket.h")]
+	public int setsockopt (int sockfd, int level, int optname, void* optval, socklen_t optlen);
+	[CCode (cheader_filename = "sys/socket.h")]
+	public int shutdown (int sockfd, int how);
+	[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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]