From b9281f68d1556fed1659289b092c2e561e8b8c49 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Thu, 16 Oct 2003 14:01:44 +0000 Subject: [PATCH] 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 --- util-vserver/lib/vserver.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 1.8.1.5