X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsyscall_ctxcreate.c;h=541213e2db8025ec7b1015abcfe15ec00970d339;hb=13a83fe9e08e8667ee42c62d0631ca8ebbed7e89;hp=747546b072892df218f690233b01de7b5d249e95;hpb=9c78378bebc1a9f3d400f422df8ede9efea57dea;p=util-vserver.git diff --git a/lib/syscall_ctxcreate.c b/lib/syscall_ctxcreate.c index 747546b..541213e 100644 --- a/lib/syscall_ctxcreate.c +++ b/lib/syscall_ctxcreate.c @@ -21,17 +21,26 @@ #endif #include "vserver.h" -#include "vserver-internal.h" #include "virtual.h" +#if defined(VC_ENABLE_API_V13) && defined(VC_ENABLE_API_V21) +# define VC_MULTIVERSION_SYSCALL 1 +#endif +#include "vserver-internal.h" + #if defined(VC_ENABLE_API_V13) # include "syscall_ctxcreate-v13.hc" #endif -#if defined(VC_ENABLE_API_V13) +#if defined(VC_ENABLE_API_V21) +# include "syscall_ctxcreate-v21.hc" +#endif + +#if defined(VC_ENABLE_API_V13) || defined(VC_ENABLE_API_V21) xid_t -vc_ctx_create(xid_t xid) +vc_ctx_create(xid_t xid, struct vc_ctx_flags *flags) { - CALL_VC(CALL_VC_V13A(vc_ctx_create, xid)); + CALL_VC(CALL_VC_V21 (vc_ctx_create, xid, flags), + CALL_VC_V13A(vc_ctx_create, xid, flags)); } #endif