[vala] linux: add non-posix sysconf(3) configuration names
- From: Michael Lauer <mlauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] linux: add non-posix sysconf(3) configuration names
- Date: Thu, 27 May 2010 19:21:22 +0000 (UTC)
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]