]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
posix.vapi: add {get|set}priority(2) and PRIO_ constants from resource.h
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Sat, 24 Oct 2009 12:30:31 +0000 (14:30 +0200)
committerJürg Billeter <j@bitron.ch>
Sat, 31 Oct 2009 13:12:56 +0000 (14:12 +0100)
Signed-off-by: Michael 'Mickey' Lauer <mickey@vanille-media.de>
vapi/posix.vapi

index c36a152e5020f20974c8d68d7b67e6bd6f89ad96..af9227f80c35a85627b3faf74a336bb9aace5fa1 100644 (file)
@@ -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")]