Disk ARchive
2.4.5
|
00001 /*********************************************************************/ 00002 // dar - disk archive - a backup/restoration program 00003 // Copyright (C) 2002-2052 Denis Corbin 00004 // 00005 // This program is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU General Public License 00007 // as published by the Free Software Foundation; either version 2 00008 // of the License, or (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program; if not, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 // 00019 // to contact the author : dar.linux@free.fr 00020 /*********************************************************************/ 00021 // $Id$ 00022 // 00023 /*********************************************************************/ 00024 // 00025 #ifndef DAR_SUITE_HPP 00026 #define DAR_SUITE_HPP 00027 00028 #define EXIT_OK 0 // all that was asked is done 00029 #define EXIT_SYNTAX 1 // syntax error on command line 00030 #define EXIT_ERROR 2 // error not related to the data treated 00031 // (lack of memory, hardware problem, etc.) 00032 #define EXIT_BUG 3 // detected a condition that should never happen 00033 #define EXIT_USER_ABORT 4 // user asked to abort (or question in non 00034 // interactive mode) 00035 #define EXIT_DATA_ERROR 5 // error in data treated (could not save/restore/ 00036 // compare all data due for example to bad access permission. Comparison 00037 // mismatch of some files, archive testing failed etc...) 00038 #define EXIT_SCRIPT_ERROR 6 // error around the execution of a user command 00039 // using -E or -F options 00040 00041 #define EXTENSION "dar" 00042 00043 00045 #ifndef __VERSION__ 00046 #define __VERSION__ "unknown" 00047 #endif 00048 00050 #ifdef __GNUC__ 00051 #define CC_NAT "GNUC" 00052 #else 00053 #define CC_NAT "unknown" 00054 #endif 00055 00056 extern int dar_suite_global(int argc, char *argv[], const char **env, int (*call)(int, char *[], const char **env)); 00057 extern const char *dar_suite_version(); 00058 00059 00060 #endif