From: Enrico Scholz Date: Thu, 26 Feb 2004 13:01:53 +0000 (+0000) Subject: added CALL_VC_V13A macro (for API >= 0x00010012) X-Git-Tag: VERSION_0_10~564 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00b613b67ee77052df275631075fed51dfa0daad;hp=30537bb7ac4e4fa746c73295ecd712eb5a325379;p=util-vserver.git added CALL_VC_V13A macro (for API >= 0x00010012) use VC_DYNAMIC_XID instead of VC_RANDCTX git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1002 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/lib/vserver-internal.h b/util-vserver/lib/vserver-internal.h index e49b063..9e84248 100644 --- a/util-vserver/lib/vserver-internal.h +++ b/util-vserver/lib/vserver-internal.h @@ -84,6 +84,12 @@ # define CALL_VC_V13(F,...) CALL_VC_NOOP #endif +#ifdef VC_ENABLE_API_V13 +# define CALL_VC_V13A(F,...) CALL_VC_GENERAL(0x00010012, v13, F, __VA_ARGS__) +#else +# define CALL_VC_V13A(F,...) CALL_VC_NOOP +#endif + #ifdef VC_ENABLE_API_FSCOMPAT # define CALL_VC_FSCOMPAT(F,...) CALL_VC_GENERAL(0x00010000, fscompat, F, __VA_ARGS__) #else @@ -110,8 +116,8 @@ ((X)==(uint32_t)(-2)) ? VC_SAMECTX : \ (xid_t)(X)) -# define CTX_USER2KERNEL(X) (((X)==VC_RANDCTX) ? (uint32_t)(-1) : \ - ((X)==VC_SAMECTX) ? (uint32_t)(-2) : \ +# define CTX_USER2KERNEL(X) (((X)==VC_DYNAMIC_XID) ? (uint32_t)(-1) : \ + ((X)==VC_SAMECTX) ? (uint32_t)(-2) : \ (uint32_t)(X)) #else # define CTX_USER2KERNEL(X) (X)