From dd5a7ee45312373b491b2c4676713aef4c8fb5af Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Fri, 7 Nov 2003 22:00:49 +0000 Subject: [PATCH] added V11 API git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@385 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/configure.ac | 3 ++- util-vserver/lib/vserver-internal.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/util-vserver/configure.ac b/util-vserver/configure.ac index a59df3c..d871d2c 100644 --- a/util-vserver/configure.ac +++ b/util-vserver/configure.ac @@ -70,13 +70,14 @@ AC_ARG_ENABLE([apis], [], [supported_apis=ALL]) -test x"$supported_apis" != xALL || supported_apis='legacy,compat' +test x"$supported_apis" != xALL || supported_apis='legacy,compat,v11' old_IFS=$IFS IFS=,; for i in $supported_apis; do case "$i" in compat) AC_DEFINE(VC_ENABLE_API_COMPAT, 1, [Enable support for compatibily syscall API]);; legacy) AC_DEFINE(VC_ENABLE_API_LEGACY, 1, [Enable support for old, /proc parsing API]);; + v11) AC_DEFINE(VC_ENABLE_API_V11, 1, [Enable support for API of vserver 1.1.x]);; *) AC_MSG_ERROR(['$i' is not a supported API]);; esac done diff --git a/util-vserver/lib/vserver-internal.h b/util-vserver/lib/vserver-internal.h index a4827e6..0bc887f 100644 --- a/util-vserver/lib/vserver-internal.h +++ b/util-vserver/lib/vserver-internal.h @@ -64,6 +64,11 @@ # define CALL_VC_LEGACY(F,...) CALL_VC_NOOP #endif +#ifdef VC_ENABLE_API_V11 +# define CALL_VC_V11(F,...) CALL_VC_GENERAL(0x00010000, v11, F, __VA_ARGS__) +#else +# define CALL_VC_V11(F,...) CALL_VC_NOOP +#endif -- 1.8.1.5