use new ensc_wrappers/ headers
[util-vserver.git] / util-vserver / src / vps.c
index a02b09f..1d8e4de 100644 (file)
 #endif
 
 #include "util.h"
-#include "wrappers.h"
-#include "wrappers-vserver.h"
 #include "pathconfig.h"
 
 #include <lib/vserver.h>
 #include <lib/fmt.h>
 #include <assert.h>
+#include <fcntl.h>
+
+#define ENSC_WRAPPERS_VSERVER  1
+#define ENSC_WRAPPERS_STDLIB   1
+#define ENSC_WRAPPERS_UNISTD   1
+#define ENSC_WRAPPERS_FCNTL    1
+#include <wrappers.h>
 
 #define CTXNR_WIDTH    5
 #define HUNK_SIZE      0x4000
@@ -96,7 +101,7 @@ extractCtx(char *pid_str)
   while (*pid_str==' ') ++pid_str;
   pid = atoi(pid_str);
 
-  return vc_X_getctx(pid);
+  return vc_get_task_xid(pid);
 }
 
 static char const *
@@ -217,7 +222,7 @@ int main(int argc, char *argv[])
     if (strcmp(argv[1], "--version")==0) showVersion();
   }
     
-  if (vc_X_getctx(0)!=1)
+  if (vc_get_task_xid(0)!=1)
     Evc_new_s_context(1, vc_get_securecaps(), 0);
 
   Epipe(p);