From a0b082cb3a96d0a02ac454b1afd267f1295b606b Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 19 May 2005 18:05:18 +0000 Subject: [PATCH] vc_isSupported() et.al: added VWAIT feature git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2096 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/issupported.c | 1 + util-vserver/lib/issupportedstring.c | 2 +- util-vserver/lib/vserver.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/util-vserver/lib/issupported.c b/util-vserver/lib/issupported.c index a0c8baf..7bf981a 100644 --- a/util-vserver/lib/issupported.c +++ b/util-vserver/lib/issupported.c @@ -40,6 +40,7 @@ vc_isSupported(vcFeatureSet feature) case vcFEATURE_IATTR : return ver >= 0x00010011; case vcFEATURE_MIGRATE : return ver >= 0x00010012; case vcFEATURE_NAMESPACE : return ver >= 0x00010012; + case vcFEATURE_VWAIT : return ver >= 0x00010025; case vcFEATURE_SCHED : return ver >= 0x00020000; // todo default : assert(false); } diff --git a/util-vserver/lib/issupportedstring.c b/util-vserver/lib/issupportedstring.c index 596337d..a2f1a05 100644 --- a/util-vserver/lib/issupportedstring.c +++ b/util-vserver/lib/issupportedstring.c @@ -33,7 +33,7 @@ static struct { } FEATURES[] = { DECL(VKILL), DECL(IATTR), DECL(RLIMIT), DECL(COMPAT), DECL(MIGRATE), DECL(NAMESPACE), DECL(SCHED), DECL(VINFO), - DECL(VHI), DECL(VSHELPER0), DECL(VSHELPER) + DECL(VHI), DECL(VSHELPER0), DECL(VSHELPER), DECL(VWAIT) }; bool diff --git a/util-vserver/lib/vserver.h b/util-vserver/lib/vserver.h index 10238ca..61c5ab2 100644 --- a/util-vserver/lib/vserver.h +++ b/util-vserver/lib/vserver.h @@ -711,7 +711,7 @@ extern "C" { typedef enum { vcFEATURE_VKILL, vcFEATURE_IATTR, vcFEATURE_RLIMIT, vcFEATURE_COMPAT, vcFEATURE_MIGRATE, vcFEATURE_NAMESPACE, vcFEATURE_SCHED, vcFEATURE_VINFO, vcFEATURE_VHI, - vcFEATURE_VSHELPER0, vcFEATURE_VSHELPER } + vcFEATURE_VSHELPER0, vcFEATURE_VSHELPER, vcFEATURE_VWAIT } vcFeatureSet; bool vc_isSupported(vcFeatureSet) VC_ATTR_CONST; -- 1.8.1.5