29 #include "../my_config.h"
32 #define EXIT_OK 0 // all that was asked is done
33 #define EXIT_SYNTAX 1 // syntax error on command line
34 #define EXIT_ERROR 2 // error not related to the data treated
36 #define EXIT_BUG 3 // detected a condition that should never happen
37 #define EXIT_USER_ABORT 4 // user asked to abort (or question in non
39 #define EXIT_DATA_ERROR 5 // error in data treated (could not save/restore/
42 #define EXIT_SCRIPT_ERROR 6 // error around the execution of a user command
44 #define EXIT_LIBDAR 7 // error calling libdar. Arguments given to libdar
46 #define EXIT_LIMITINT 8 // limitinit overflow
48 #define EXIT_UNKNOWN_ERROR 9
50 #define EXIT_COMPILATION 10 // feature not activated at compilation time
51 #define EXIT_SAVED_MODIFIED 11 // some files have been modified at the time they were saved
53 #define EXTENSION "dar"
57 #define __VERSION__ "unknown"
64 #define CC_NAT "unknown"
67 using namespace libdar;
72 extern void dar_suite_reset_signal_handler();
87 const char *getopt_string,
89 const struct option *long_options,
91 int (*call)(shell_interaction & dialog,
int,
char *
const [],
const char **env));
93 extern std::string dar_suite_command_line_features();
int dar_suite_global(int argc, char *const argv[], const char **env, const char *getopt_string, int(*call)(shell_interaction &dialog, int, char *const [], const char **env))
user_interaction class for command_line tools