added lots of S_CTX_INFO_* macros
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 16 Oct 2003 02:33:37 +0000 (02:33 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 16 Oct 2003 02:33:37 +0000 (02:33 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@160 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/lib/vserver.h

index c81a2a4..ebad12c 100644 (file)
 #include <stdlib.h>
 #include <sys/types.h>
 
-#define VC_NOCTX       ((ctx_t)(-1))
+#ifndef VC_NOCTX
+#  define VC_NOCTX     ((ctx_t)(-1))
+#endif
+
+#ifndef S_CTX_INFO_LOCK
+#  define S_CTX_INFO_LOCK      1
+#endif
+
+#ifndef S_CTX_INFO_SCHED
+#  define S_CTX_INFO_SCHED     2
+#endif
+
+#ifndef S_CTX_INFO_NPROC
+#  define S_CTX_INFO_NPROC     4
+#endif
+
+#ifndef S_CTX_INFO_PRIVATE
+#  define S_CTX_INFO_PRIVATE   8
+#endif
+
+#ifndef S_CTX_INFO_INIT
+#  define S_CTX_INFO_INIT      16
+#endif
+
+#ifndef S_CTX_INFO_HIDEINFO
+#  define S_CTX_INFO_HIDEINFO  32
+#endif
+
+#ifndef S_CTX_INFO_ULIMIT
+#  define S_CTX_INFO_ULIMIT    64
+#endif
+
 
 #ifdef __cplusplus
 extern "C" {