summaryrefslogtreecommitdiff
path: root/srcx/util.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-03-18 20:35:09 +0000
committerStef Walter <stef@memberwebs.com>2009-03-18 20:35:09 +0000
commitd04af54d5b0bf34c71c4695716e480a171b5a32b (patch)
treeabaa4cf9605b87b73aa1eee411d5a159daea0101 /srcx/util.h
parentf827273bd646a1ccb71bb9f7e252cd16e8085e04 (diff)
Changes that support FreeBSD 7.2
Diffstat (limited to 'srcx/util.h')
-rw-r--r--srcx/util.h13
1 files changed, 9 insertions, 4 deletions
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 */