[vala] posix: add execv(p) and sigqueue methods, make sigval_t a simple type
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] posix: add execv(p) and sigqueue methods, make sigval_t a simple type
- Date: Mon, 30 Apr 2012 09:01:36 +0000 (UTC)
commit d771d37aaa9b75c87c013a9795a701942734c44c
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]