added V11 API
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 7 Nov 2003 22:00:49 +0000 (22:00 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Fri, 7 Nov 2003 22:00:49 +0000 (22:00 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@385 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/configure.ac
util-vserver/lib/vserver-internal.h

index a59df3c..d871d2c 100644 (file)
@@ -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
index a4827e6..0bc887f 100644 (file)
 #  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