From d04af54d5b0bf34c71c4695716e480a171b5a32b Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 18 Mar 2009 20:35:09 +0000 Subject: Changes that support FreeBSD 7.2 --- srcx/util.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'srcx/util.h') diff --git a/srcx/util.h b/srcx/util.h index c98dad1..cc359b1 100644 --- a/srcx/util.h +++ b/srcx/util.h @@ -44,11 +44,16 @@ struct xprison; int translate_jail_name(const char* str); int running_in_jail(); -size_t get_jail_sysctl(struct xprison** xp); -void free_jail_sysctl(size_t len, struct xprison* xp); +typedef struct jails { + void *data; + size_t length; + struct xprison *last; +} jails; -int kvm_prepare_jail(struct xprison* xp); -struct xprison* find_jail(const char* str, size_t len, struct xprison* xp); +void jails_load(jails *jls); +struct xprison* jails_next(jails *jls); +struct xprison* jails_find(jails *jls, const char *str); +void jails_done(jails *jls); #define JAIL_RUN_CONSOLE 0x00000001 /* Output stuff to the jail console if available */ #define JAIL_RUN_STDOUT 0x00000002 /* Output to stdout */ -- cgit v1.2.3