From: Enrico Scholz Date: Thu, 16 Oct 2003 14:01:44 +0000 (+0000) Subject: added vc_X_getinitpid() pseudo-syscall X-Git-Tag: VERSION_0_10~1235 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9281f68d1556fed1659289b092c2e561e8b8c49;p=util-vserver.git added vc_X_getinitpid() pseudo-syscall 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 --- diff --git a/util-vserver/lib/vserver.h b/util-vserver/lib/vserver.h index ebad12c..c4b5f76 100644 --- a/util-vserver/lib/vserver.h +++ b/util-vserver/lib/vserver.h @@ -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