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
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