From de7c77f60f210a6b06d98ad044cb6f8adb6e8732 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Fri, 27 Feb 2004 17:59:38 +0000 Subject: [PATCH] added vc_isSupported() cleanups git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1030 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/vserver.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/util-vserver/lib/vserver.h b/util-vserver/lib/vserver.h index a64deaa..0d5e293 100644 --- a/util-vserver/lib/vserver.h +++ b/util-vserver/lib/vserver.h @@ -137,13 +137,13 @@ extern "C" { /** Sets the ipv4root information. * \precondition: nb<16 */ int vc_set_ipv4root(uint32_t bcast, size_t nb, struct vc_ip_mask_pair const *ips); - - /* rlimit related functions */ - typedef uint64_t vc_limit_t; xid_t vc_create_context(xid_t xid); int vc_migrate_context(xid_t xid); + /* rlimit related functions */ + typedef uint64_t vc_limit_t; + struct vc_rlimit { vc_limit_t min; vc_limit_t soft; @@ -231,7 +231,14 @@ extern "C" { if (vc_get_iattr(filename, &res, 0,0)==-1) return VC_NOCTX; return res; } - + + + typedef enum { vcFEATURE_VKILL, vcFEATURE_IATTR, vcFEATURE_RLIMIT, + vcFEATURE_COMPAT, vcFEATURE_MIGRATE, vcFEATURE_NAMESPACE, + vcFEATURE_SCHED, vcFEATURE_VINFO, vcFEATURE_VHI } + vcFeatureSet; + + bool vc_isSupported(vcFeatureSet); /* The management part */ -- 1.8.1.5