static inline ALWAYSINLINE int
vc_get_version_internal(int cat)
{
- return sys_vserver(VC_CMD(VERSION, 0, 0), cat, 0);
+ return vserver(VC_CMD(VERSION, 0, 0), cat, 0);
}
#endif // H_UTIL_VSERVER_LIB_GETVERSION_INTERNAL_H
msg.remove_cap = remove_cap;
msg.flags = flags;
- return sys_vserver(VC_CMD(COMPAT, 1, 1), CTX_USER2KERNEL(ctx), &msg);
+ return vserver(VC_CMD(COMPAT, 1, 1), CTX_USER2KERNEL(ctx), &msg);
}
static inline ALWAYSINLINE int
msg.ip_mask_pair[i].mask = ips[i].mask;
}
- return sys_vserver(VC_CMD(COMPAT, 2, 3), nb, &msg);
+ return vserver(VC_CMD(COMPAT, 2, 3), nb, &msg);
}
static inline ALWAYSINLINE int
.sig = sig
};
- return sys_vserver(VC_CMD(PROCTRL, 1, 0), ctx, ¶m);
+ return vserver(VC_CMD(PROCTRL, 1, 0), ctx, ¶m);
}
int rc;
vc_lim.id = resource;
- rc = sys_vserver(VC_CMD(RLIMIT, 1, 0), CTX_USER2KERNEL(ctx), &vc_lim);
+ rc = vserver(VC_CMD(RLIMIT, 1, 0), CTX_USER2KERNEL(ctx), &vc_lim);
lim->min = KERN2USR(vc_lim.minimum);
lim->soft = KERN2USR(vc_lim.softlimit);
lim->hard = KERN2USR(vc_lim.maximum);
vc_lim.softlimit = USR2KERN(lim->soft);
vc_lim.maximum = USR2KERN(lim->hard);
- return sys_vserver(VC_CMD(RLIMIT, 2, 0), CTX_USER2KERNEL(ctx), &vc_lim);
+ return vserver(VC_CMD(RLIMIT, 2, 0), CTX_USER2KERNEL(ctx), &vc_lim);
}
static inline ALWAYSINLINE int
(void)tmp;
- rc = sys_vserver(VC_CMD(RLIMIT, 3, 0), CTX_USER2KERNEL(ctx), &vc_lim);
+ rc = vserver(VC_CMD(RLIMIT, 3, 0), CTX_USER2KERNEL(ctx), &vc_lim);
lim->min = vc_lim.minimum;
lim->soft = vc_lim.softlimit;
lim->hard = vc_lim.maximum;
#include <asm/unistd.h>
#include <errno.h>
-#ifndef __NR_sys_vserver
-# define __NR_sys_vserver 273
+#ifndef __NR_vserver
+# define __NR_vserver 273
#endif
#define VC_PREFIX 0)
#ifndef HAVE_SYS_VIRTUAL_CONTEXT
#if defined(__pic__) && defined(__i386)
inline static UNUSED ALWAYSINLINE
-int sys_vserver(uint32_t cmd, uint32_t id, void *data)
+int vserver(uint32_t cmd, uint32_t id, void *data)
{
- return syscall(__NR_sys_vserver, cmd, id, data);
+ return syscall(__NR_vserver, cmd, id, data);
}
#else
inline static UNUSED ALWAYSINLINE
-_syscall3(int, sys_vserver,
+_syscall3(int, vserver,
uint32_t, cmd, uint32_t, id, void *, data)
#endif
#endif