X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Flib%2Fvserver-internal.h;h=32cb55a91a856714371e94455f9cb7385506d76f;hb=c8a5f78c6350e9adae32fbcad8e4fbae95766604;hp=01e21702253c016e8a4e8a889ee9e723d68016b9;hpb=935d6d9a143ff146edd78e4f09145abe3ee8c187;p=util-vserver.git diff --git a/util-vserver/lib/vserver-internal.h b/util-vserver/lib/vserver-internal.h index 01e2170..32cb55a 100644 --- a/util-vserver/lib/vserver-internal.h +++ b/util-vserver/lib/vserver-internal.h @@ -26,8 +26,8 @@ #include #include -#ifndef __NR_sys_virtual_context -# define __NR_sys_virtual_context 273 +#ifndef __NR_sys_vserver +# define __NR_sys_vserver 273 #endif #define VC_PREFIX 0) @@ -88,10 +88,18 @@ extern "C" { #endif #ifndef HAVE_SYS_VIRTUAL_CONTEXT -static UNUSED -_syscall3(int, sys_virtual_context, +#if defined(__pic__) && defined(__i386) +inline static UNUSED ALWAYSINLINE +int sys_vserver(uint32_t cmd, uint32_t id, void *data) +{ + return syscall(__NR_sys_vserver, cmd, id, data); +} +#else +inline static UNUSED ALWAYSINLINE +_syscall3(int, sys_vserver, uint32_t, cmd, uint32_t, id, void *, data) #endif +#endif size_t utilvserver_uint2str(char *buf, size_t len, unsigned int val, unsigned char base);