[Vala] [PATCH] Add standard C/POSIX methods exit() and abort().
- From: "Michael B. Trausch" <mike trausch us>
- To: vala-list gnome org
- Subject: [Vala] [PATCH] Add standard C/POSIX methods exit() and abort().
- Date: Sun, 5 Apr 2009 03:44:19 -0400
Hello, here is a patch that adds exit() and abort() to posix.vapi:
---
vapi/posix.vapi | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index d9633a2..03b5d85 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -368,6 +368,11 @@ namespace Posix {
[CCode (cheader_filename = "signal.h")]
public sighandler_t signal (int signum, sighandler_t? handler);
+ [CCode (cheader_filename = "stdlib.h")]
+ public void abort ();
+ [CCode (cheader_filename = "stdlib.h")]
+ public void exit (int status);
+
[CCode (cheader_filename = "string.h")]
public int memcmp (void* s1, void* s2, size_t n);
[CCode (cheader_filename = "string.h")]
--
1.6.0.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]