From: Enrico Scholz Date: Thu, 16 Oct 2003 02:33:37 +0000 (+0000) Subject: added lots of S_CTX_INFO_* macros X-Git-Tag: VERSION_0_10~1250 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bc47a4762c849492da3c2a63404d5ed2ba11b50;p=util-vserver.git added lots of S_CTX_INFO_* macros git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@160 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/lib/vserver.h b/util-vserver/lib/vserver.h index c81a2a4..ebad12c 100644 --- a/util-vserver/lib/vserver.h +++ b/util-vserver/lib/vserver.h @@ -23,7 +23,38 @@ #include #include -#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" {