X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fsyscall_ctxcreate.c;h=77fad68d61dbe9e72cce49ec392d1d9c3db78dc3;hb=95e2774070e989fe9cf9f48dae5fa054e55e2a3e;hp=f3671599d82467c031c41a4246ddbc9a7c5bdf8f;hpb=2822ba293eb308225c50d346930c47bf98d9927b;p=util-vserver.git diff --git a/lib/syscall_ctxcreate.c b/lib/syscall_ctxcreate.c index f367159..77fad68 100644 --- a/lib/syscall_ctxcreate.c +++ b/lib/syscall_ctxcreate.c @@ -1,4 +1,4 @@ -// $Id: syscall_ctxcreate.c,v 1.1 2004/04/14 23:19:51 ensc Exp $ --*- c -*-- +// $Id: syscall_ctxcreate.c 2578 2007-08-08 20:05:26Z dhozac $ --*- c -*-- // Copyright (C) 2004 Enrico Scholz // @@ -21,17 +21,26 @@ #endif #include "vserver.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" -#include "linuxvirtual.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