added vc_X_getinitpid() pseudo-syscall
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 16 Oct 2003 14:01:44 +0000 (14:01 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 16 Oct 2003 14:01:44 +0000 (14:01 +0000)
removed vc_X_getcctx() since it is obsoleted by vc_X_getctx(0) now

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@175 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/vserver.h

index ebad12c..c4b5f76 100644 (file)
@@ -83,12 +83,12 @@ extern "C" {
   int  vc_chrootsafe(char const *dir);
 
 
-    /** Returns the context of the given process. */
+    /** Returns the context of the given process. pid==0 means the current process. */
   ctx_t        vc_X_getctx(pid_t pid);
 
-    /** Returns the context of the current process. */
-#define vc_X_getcctx()         (vc_X_getctx(getpid()))
-    
+    /** Returns the pid of the 'init' process */
+  pid_t        vc_X_getinitpid(pid_t pid);
+  
 #ifdef __cplusplus
 }
 #endif