[vala] posix.vapi: add pid_t and kill
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] posix.vapi: add pid_t and kill
- Date: Sat, 7 Mar 2009 16:22:36 -0500 (EST)
commit fccc1a0d06b75bb47de8239aa875726f95fb5cd5
Author: Hans Baier <hansfbaier googlemail com>
Date: Fri Mar 6 01:38:41 2009 +0100
posix.vapi: add pid_t and kill
Signed-off-by: Hans Baier <hansfbaier googlemail com>
---
vapi/posix.vapi | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 2f8a8ef..38ab008 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -355,6 +355,14 @@ namespace Posix {
[CCode (cheader_filename = "signal.h")]
public const int SIGSTKFLT;
+ [SimpleType]
+ [IntegerType (rank = 6)]
+ [CCode (cname = "pid_t", default_value = "0", cheader_filename = "sys/types.h")]
+ public struct pid_t {
+ }
+ [CCode (cheader_filename = "signal.h")]
+ public int kill (pid_t pid, int signum);
+
public static delegate void sighandler_t (int signal);
[CCode (cheader_filename = "signal.h")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]