]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
linux: add non-posix sysconf(3) configuration names
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>
Thu, 27 May 2010 19:20:57 +0000 (21:20 +0200)
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>
Thu, 27 May 2010 19:20:57 +0000 (21:20 +0200)
vapi/linux.vapi

index 8833c81fe65b90bb34b3211866a36729249355f6..291df7fd4c4372176683e48c1eb1d2c598e9ad0c 100644 (file)
@@ -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);