[vala] POSIX binding: add sigaction function



commit 8aa6e75df29135533c2d9f98765cc84e6c585cee
Author: Adrien Bustany <abustany gnome org>
Date:   Wed Mar 3 15:58:16 2010 -0300

    POSIX binding: add sigaction function

 vapi/posix.vapi |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index feb5cf7..2a49667 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -902,6 +902,14 @@ namespace Posix {
 	[CCode (cname = "pid_t", default_value = "0", cheader_filename = "sys/types.h")]
 	public struct pid_t {
 	}
+
+	[CCode (cname = "struct sigaction", cheader_filename = "signal.h")]
+	public struct sigaction_t {
+		sighandler_t sa_handler;
+		sigset_t     sa_mask;
+		int          sa_flags;
+	}
+
 	[CCode (cheader_filename = "signal.h")]
 	public int kill (pid_t pid, int signum);
 	[CCode (cheader_filename = "signal.h")]
@@ -926,6 +934,8 @@ namespace Posix {
 	public int sigpending (sigset_t sigset);
 	[CCode (cheader_filename = "signal.h")]
 	public int sigwait (sigset_t sigset, out int sig);
+	[CCode (cheader_filename = "signal.h")]
+	public int sigaction (int signum, sigaction_t? act, out sigaction_t? oldact);
 
 	[CCode (has_target = false, cheader_filename = "signal.h")]
 	public delegate void sighandler_t (int signal);



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