lintian doesn't like orphan packages with uploaders...
[debian/amanda] / common-src / amanda.h
index 510ba076515b3b63c599304d3fbb6a95a850511f..d44a765545f8c47003605f3e44f5c5799a51488a 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Amanda, The Advanced Maryland Automatic Network Disk Archiver
  * Copyright (c) 1991-1999 University of Maryland at College Park
+ * Copyright (c) 2007-2012 Zmanda, Inc.  All Rights Reserved.
  * All Rights Reserved.
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
@@ -450,27 +451,11 @@ char *debug_vstrextend(const char *file, int line, char **oldstr, ...);
 #define agets(f)             debug_agets(__FILE__,__LINE__,(f))
 #define areads(f)            debug_areads(__FILE__,__LINE__,(f))
 
-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);
+/* 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);
 
 time_t unctime(char *timestr);