X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fgetxidtype.c;fp=lib%2Fgetxidtype.c;h=a5c04638c53e05a95725d5e4a5ebbbb4371479fa;hb=2822ba293eb308225c50d346930c47bf98d9927b;hp=090854b95516820ad0d89a7d6a1fe1f5084d0a39;hpb=2894fc5a4c8335e4d7221311fed0556f33f8047c;p=util-vserver.git diff --git a/lib/getxidtype.c b/lib/getxidtype.c index 090854b..a5c0463 100644 --- a/lib/getxidtype.c +++ b/lib/getxidtype.c @@ -1,4 +1,4 @@ -// $Id: getxidtype.c 2415 2006-12-08 13:24:49Z dhozac $ --*- c -*-- +// $Id: getxidtype.c,v 1.1 2005/03/09 14:38:51 ensc Exp $ --*- c -*-- // Copyright (C) 2005 Enrico Scholz // @@ -21,21 +21,14 @@ #endif #include "vserver.h" -#include "internal.h" +#include "virtual.h" vcXidType vc_getXIDType(xid_t xid) { - static xid_t MIN_D_CONTEXT = 0; - const xid_t MAX_S_CONTEXT = 65535; - if (MIN_D_CONTEXT == 0 && (utilvserver_checkCompatConfig() & VC_VCI_NO_DYNAMIC) == 0) - MIN_D_CONTEXT = 49152; - else - MIN_D_CONTEXT = MAX_S_CONTEXT; - - if (xid==0) return vcTYPE_MAIN; - if (xid==1) return vcTYPE_WATCH; - if (xid>1 && xid=MIN_D_CONTEXT && xid1 && xid=MIN_D_CONTEXT && xid