[vala/0.16] posix: add execv(p) and sigqueue methods,	make sigval_t a simple type
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [vala/0.16] posix: add execv(p) and sigqueue methods,	make sigval_t a simple type
- Date: Sat, 23 Jun 2012 15:51:19 +0000 (UTC)
commit 67c700bb55c35229e9fb79442ba496206aebe018
Author: Jesus Menendez-Castellano <jesus menendez castellano gmail com>
Date:   Mon Apr 30 01:34:41 2012 -0700
    posix: add execv(p) and sigqueue methods, make sigval_t a simple type
    
    Fixes bug 673391.
 vapi/posix.vapi |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index e4461a4..9329ace 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -1053,6 +1053,7 @@ namespace Posix {
 		int              sa_flags;
 	}
 
+	[SimpleType]
 	[CCode (cname = "sigval_t", cheader_filename = "signal.h")]
 	public struct sigval_t {
 		int   sival_int;
@@ -1100,6 +1101,8 @@ namespace Posix {
 	[CCode (cheader_filename = "signal.h")]
 	public int sigprocmask (int how, sigset_t sigset, sigset_t oset);
 	[CCode (cheader_filename = "signal.h")]
+	public int sigqueue (pid_t pid, int signum, sigval_t val);
+	[CCode (cheader_filename = "signal.h")]
 	public int sigsuspend (sigset_t sigset);
 	[CCode (cheader_filename = "signal.h")]
 	public int sigpending (sigset_t sigset);
@@ -1800,6 +1803,10 @@ namespace Posix {
 	[CCode (cheader_filename = "unistd.h")]
 	public int execlp (string path, params string[] arg);
 	[CCode (cheader_filename = "unistd.h")]
+	public int execv (string path, [CCode (array_length = false, null_terminated = true)] string[] arg);
+	[CCode (cheader_filename = "unistd.h")]
+	public int execvp (string path, [CCode (array_length = false, null_terminated = true)] string[] arg);
+	[CCode (cheader_filename = "unistd.h")]
 	public int pipe ([CCode (array_length = false, null_terminated = false)] int[] pipefd);
 	[CCode (cheader_filename = "unistd.h")]
 	public ssize_t read (int fd, void* buf, size_t count);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]