initial checkin
[util-vserver.git] / util-vserver / lib / vserver.h
index 5485446..c9cd1f0 100644 (file)
 #ifndef H_VSERVER_SYSCALL_H
 #define H_VSERVER_SYSCALL_H
 
+#include <sys/types.h>
+#include <unistd.h>
+
+#define CTX_NOCTX      ((ctx_t)(-1))
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -32,6 +37,10 @@ int call_set_ctxlimit (int res, long limit);
 
 void   vserver_init();
 
+  ctx_t                getctx(pid_t pid);
+
+#define getcctx()      (getctx(getpid()))
+
 #ifdef __cplusplus
 }
 #endif