From 656d1247d0af473b1aef86d6dd0a5457145815f3 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Tue, 14 Oct 2003 00:07:08 +0000 Subject: [PATCH] implemented new API git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@113 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/vserver.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/util-vserver/lib/vserver.h b/util-vserver/lib/vserver.h index 5485446..e54457b 100644 --- a/util-vserver/lib/vserver.h +++ b/util-vserver/lib/vserver.h @@ -19,18 +19,21 @@ #ifndef H_VSERVER_SYSCALL_H #define H_VSERVER_SYSCALL_H +#include +#include + #ifdef __cplusplus extern "C" { #endif -int call_new_s_context(int nbctx, int ctxs[], int remove_cap, int flags); -int call_set_ipv4root (unsigned long ip[], int nb, - unsigned long bcast, unsigned long mask[]); -int call_chrootsafe (const char *dir); -int has_chrootsafe(); -int call_set_ctxlimit (int res, long limit); + struct vc_ip_mask_pair { + uint32_t ip; + uint32_t mask; + }; -void vserver_init(); + int vc_new_s_context(ctx_t ctx, unsigned int remove_cap, unsigned int flags); + int vc_set_ipv4root(uint32_t bcast, size_t nb, struct vc_ip_mask_pair const *ips); + int vc_chrootsafe(char const *dir); #ifdef __cplusplus } -- 1.8.1.5