From: Michael 'Mickey' Lauer Date: Thu, 27 May 2010 19:20:57 +0000 (+0200) Subject: linux: add non-posix sysconf(3) configuration names X-Git-Tag: 0.9.1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61e938df208635f2beb13cbe4532907d8ad95fae;p=thirdparty%2Fvala.git linux: add non-posix sysconf(3) configuration names --- diff --git a/vapi/linux.vapi b/vapi/linux.vapi index 8833c81fe..291df7fd4 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);