-extern int debug_amtable_alloc(const char *file,
- int line,
- void **table,
- size_t *current,
- size_t elsize,
- size_t count,
- int bump,
- void (*init_func)(void *));
-
-#define amtable_alloc(t,c,s,n,b,f) debug_amtable_alloc(__FILE__, \
- __LINE__, \
- (t), \
- (c), \
- (s), \
- (n), \
- (b), \
- (f))
-
-extern void amtable_free(void **, size_t *);
-
-char ** safe_env(void);
-char * validate_regexp(const char *regex);
-char * validate_glob(const char *glob);
-char * clean_regex(const char *regex);
-int match(const char *regex, const char *str);
-int match_no_newline(const char *regex, const char *str);
-int match_glob(const char *glob, const char *str);
-char * glob_to_regex(const char *glob);
-int match_tar(const char *glob, const char *str);
-char * tar_to_regex(const char *glob);
-int match_host(const char *glob, const char *host);
-int match_disk(const char *glob, const char *disk);
-int match_datestamp(const char *dateexp, const char *datestamp);
-int match_level(const char *levelexp, const char *level);
+/* return a "safe" version of the current environment; pass this to execle */
+#define safe_env() safe_env_full(NULL)
+
+/* like safe_env, but optionally add additional environment variables */
+char ** safe_env_full(char **add);
+