From 887d8b57c4aa291919c8eec6b2af5a5f5259ac6d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 17 May 2004 17:52:45 +0000 Subject: Initial 5.2.x files --- srcx/util.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcx/util.h (limited to 'srcx/util.h') diff --git a/srcx/util.h b/srcx/util.h new file mode 100644 index 0000000..1ac02c5 --- /dev/null +++ b/srcx/util.h @@ -0,0 +1,19 @@ +#ifndef __UTIL_H__ +#define __UTIL_H__ + +int translate_jail_name(const char* str); +int running_in_jail(); + +/* Output stuff to the jail console if available */ +#define JAIL_OUT_CONSOLE 1 << 1 + +/* Output to stdout */ +#define JAIL_OUT_STDOUT 1 << 2 + +/* Output to stderr */ +#define JAIL_OUT_STDERR 1 << 3 + +int run_jail_command(const char* jail, const char* script, int opts); +int check_jail_command(const char* jail, const char* script); + +#endif __UTIL_H__ -- cgit v1.2.3