29 #include "../my_config.h" 33 #define EXIT_OK 0 // all that was asked is done 34 #define EXIT_SYNTAX 1 // syntax error on command line 35 #define EXIT_ERROR 2 // error not related to the data treated 37 #define EXIT_BUG 3 // detected a condition that should never happen 38 #define EXIT_USER_ABORT 4 // user asked to abort (or question in non 40 #define EXIT_DATA_ERROR 5 // error in data treated (could not save/restore/ 43 #define EXIT_SCRIPT_ERROR 6 // error around the execution of a user command 45 #define EXIT_LIBDAR 7 // error calling libdar. Arguments given to libdar 47 #define EXIT_LIMITINT 8 // limitinit overflow 49 #define EXIT_UNKNOWN_ERROR 9 51 #define EXIT_COMPILATION 10 // feature not activated at compilation time 52 #define EXIT_SAVED_MODIFIED 11 // some files have been modified at the time they were saved 54 #define EXTENSION "dar" 58 #define __VERSION__ "unknown" 65 #define CC_NAT "unknown" 73 using cli_callback = S_I (*)(std::shared_ptr<user_interaction> & dialog, int,
char *
const [],
const char **env);
75 extern void dar_suite_reset_signal_handler();
92 const char *getopt_string,
94 const struct option *long_options,
99 extern std::string dar_suite_command_line_features();
int dar_suite_global(int argc, char *const argv[], const char **env, const char *getopt_string, char stop_scan, cli_callback call)
common routine for all dar command-line tools to initialize environment and convert uncaught exceptio...
the main file of the libdar API definitions
libdar namespace encapsulate all libdar symbols