From: Enrico Scholz Date: Fri, 17 Oct 2003 20:30:37 +0000 (+0000) Subject: - added Evc_X_getctx() wrapper X-Git-Tag: VERSION_0_10~1214 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=324cacc025cfd097a6183532ebc6d32b85005453;p=util-vserver.git - added Evc_X_getctx() wrapper git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@196 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/src/wrappers-vserver.h b/util-vserver/src/wrappers-vserver.h index a01eb04..0b40c57 100644 --- a/util-vserver/src/wrappers-vserver.h +++ b/util-vserver/src/wrappers-vserver.h @@ -29,4 +29,12 @@ Evc_new_s_context(ctx_t ctx, unsigned int remove_cap, unsigned int flags) "vc_new_s_context()"); } +inline static UNUSED ctx_t +Evc_X_getctx(pid_t pid) +{ + register ctx_t res = vc_X_getctx(pid); + FatalErrnoError(res==VC_NOCTX, "vc_X_getctx()"); + return res; +} + #endif // H_UTIL_VSERVER_SRC_WRAPPERS_VSERVER_H