#include "wrappers.h"
#include <vserver.h>
-inline static UNUSED void
-Evc_new_s_context(ctx_t ctx, unsigned int remove_cap, unsigned int flags)
+inline static UNUSED xid_t
+Evc_new_s_context(xid_t ctx, unsigned int remove_cap, unsigned int flags)
{
- FatalErrnoError(vc_new_s_context(ctx,remove_cap,flags)==-1,
- "vc_new_s_context()");
+ register xid_t res = vc_new_s_context(ctx,remove_cap,flags);
+ FatalErrnoError(res==VC_NOCTX, "vc_new_s_context()");
+ return res;
+}
+
+inline static UNUSED xid_t
+Evc_get_task_xid(pid_t pid)
+{
+ register xid_t res = vc_get_task_xid(pid);
+ FatalErrnoError(res==VC_NOCTX, "vc_get_task_xid()");
+ return res;
}
#endif // H_UTIL_VSERVER_SRC_WRAPPERS_VSERVER_H