[vala] posix.vapi: add {get|set}priority(2) and PRIO_ constants from resource.h



commit 354f329983d7e8bda5b1b9ac3200050909501d9a
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Sat Oct 24 14:30:31 2009 +0200

    posix.vapi: add {get|set}priority(2) and PRIO_ constants from resource.h
    
    Signed-off-by: Michael 'Mickey' Lauer <mickey vanille-media de>

 vapi/posix.vapi |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index c36a152..af9227f 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -816,6 +816,13 @@ namespace Posix {
 	public unowned Passwd? getpwent ();
 	public void setpwent ();
 
+	[CCode (cheader_filename = "sys/resource.h")]
+	public const int PRIO_PROCESS;
+	[CCode (cheader_filename = "sys/resource.h")]
+	public const int PRIO_PGRP;
+	[CCode (cheader_filename = "sys/resource.h")]
+	public const int PRIO_USER;
+
 	[CCode (cheader_filename = "signal.h")]
 	public const int SIGABRT;
 	[CCode (cheader_filename = "signal.h")]
@@ -1440,6 +1447,11 @@ namespace Posix {
 		public long tv_nsec;
 	}
 
+	[CCode (cheader_filename = "sys/time.h,sys/resource.h")]
+	public int getpriority (int which, int who);
+	[CCode (cheader_filename = "sys/time.h,sys/resource.h")]
+	public int setpriority (int which, int who, int prio);
+
 	[CCode (cheader_filename = "unistd.h")]
 	public int close (int fd);
 	[CCode (cheader_filename = "unistd.h")]



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