[vala] linux: add non-posix sysconf(3) configuration names



commit 61e938df208635f2beb13cbe4532907d8ad95fae
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date:   Thu May 27 21:20:57 2010 +0200

    linux: add non-posix sysconf(3) configuration names

 vapi/linux.vapi |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 8833c81..291df7f 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -715,6 +715,16 @@ namespace Linux {
     [CCode (cheader_filename = "unistd.h")]
     public int sethostname (string name, size_t len);
 
+    // additional sysconf(3) constants
+    [CCode (cheader_filename = "unistd.h")]
+    public const int _SC_PHYS_PAGES;
+    [CCode (cheader_filename = "unistd.h")]
+    public const int _SC_AVPHYS_PAGES;
+    [CCode (cheader_filename = "unistd.h")]
+    public const int _SC_NPROCESSORS_CONF;
+    [CCode (cheader_filename = "unistd.h")]
+    public const int _SC_NPROCESSORS_ONLN;
+
     [CCode (cheader_filename = "arpa/inet.h")]
     public int inet_aton (string cp, out Posix.InAddr addr);
 



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