Changeset 541 in MondoRescue for branches/stable/mondo/mondo/common/my-stuff.h
- Timestamp:
- May 13, 2006, 8:47:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/mondo/common/my-stuff.h
r538 r541 1 /* 2 * Common defines across the project 3 * 4 * $Id$ 5 */ 6 7 #ifndef _MY_STUFF_H_ 8 #define _MY_STUFF_H_ 9 10 /* BERLIOS 1 /* my-stuff.h 2 $Id$ 3 . 4 5 6 07/14 7 - ARCH_THREADS is now 2; buffers, 4 8 9 07/10 10 - added acl, xattr stuff 11 12 06/19 13 - added AUX_VER 14 15 06/14 16 - added DO_MBR_PLEASE 17 18 04/17 19 - replaced INTERNAL_TAPE_BLK_SIZE with g_internal_tape_block_size 20 and DEFAULT_INTERNAL_TAPE_BLOCK_SIZE 21 22 04/13 23 - log_msg is now calling standard_log_debug_msg, not the alias (log_debug_msg) 24 25 04/03/2004 26 - added star and SELINUX support 27 28 11/20/2003 29 - boot from isolinux.bin, not mindi-boot.2880.img 30 31 11/15 32 - reduced SLICE_SIZE from 8192 to 4096 33 34 10/08 35 - set p-i-h volsize to 1GB 36 37 10/21 38 - added MNT_CDROM and FREELOADER 39 40 10/11 41 - added DEFAULT_DVD_DISK_SIZE 42 - added PARTIMAGE_DEBUG_LEVEL 43 44 09/27 45 - better logging 46 47 09/24 48 - added MR_LOGFILE="/tmp/mondo-restore.log" 49 50 09/22 51 - added bool, FALSE, TRUE 52 53 09/20 54 - increasd PPCFG_RAMDISK_SIZE to 150 55 56 09/12 57 - reduced MAX_STR_LEN from 512 to 460 58 59 09/10 60 - moved PPCFG_RAMDISK_SIZE here 61 62 09/05 63 - better config.h stuff 64 65 06/05 66 - changed fgrep to grep 67 68 05/19 69 - added CP_BIN 70 71 05/05 72 - added #include <sys/param.h> and sys/sem.h and ioctl.h 73 74 05/03 75 - added kill_anything_like_this() 76 77 04/24/2003 78 - added *STUB #define's 79 80 11/22/2002 81 - added INTERNAL_TAPE_BLK_SIZE 82 83 10/10 84 - use #define to create XMondo-friendly log file name if appropriate 85 86 08/30 87 - changed ARBITRARY_MAXIMUM to 512 88 89 08/26 90 - set MAX_STR_LEN at 512 but halved it within many _structures_ 91 - changed ARBITRARY_MAXIMUM to 128 92 93 08/08 94 - added '#include <signal.h>' 95 - added WELCOME_STRING 96 97 06/19 98 - changed tape block size from 8192 to 65536 99 100 04/08 101 - added manual_cd_tray flag to bkpinfo 102 103 03/31 104 - added restore_path to struct s_bkpinfo 105 106 03/21 107 - updated version# to 1.42 108 109 02/20 110 - added bkpinfo->using_cdstream 111 112 02/06 113 - added MONDO_VERSION 114 115 02/02 116 - added MONDO_CFG_FILE 117 - added SLICE_SIZE 118 119 01/31 120 - removed MINDI_HOME: it is unnecessary 121 - replaced MONDO_HOME with variable g_mondo_home 122 123 01/25 124 - added MONDO_HOME, MINDI_HOME 125 126 01/21 127 - added s_node{} structure 128 129 01/17 130 - added sys/shm.h, types.h, ipc.h 131 132 01/02/2002 133 - added that groovy bkpinfo{} stuff 134 135 11/29/2001 136 - added raidlist{} struct 137 138 08/27 139 - stuff 140 */ 141 11 142 #define HAVE_MALLOC 1 12 */ 143 13 144 14 145 // Extra info for ACLs and SELINUX users … … 27 158 * Create the illusion of a Boolean type. 28 159 */ 29 #define bool unsigned char160 #define bool int 30 161 #define TRUE 1 31 162 #define FALSE 0 32 163 #endif 33 164 34 /* BERLIOS 165 #ifndef _MY_STUFF_H_ 166 #define _MY_STUFF_H_ 167 35 168 #ifdef HAVE_CONFIG_H 36 169 #include <config.h> 37 170 #endif 38 */39 171 40 172 #ifndef __FreeBSD__ … … 49 181 #include <stdio.h> 50 182 #include <stdlib.h> 51 /* BERLIOS52 183 #ifndef __USE_FILE_OFFSET64 53 184 #define __USE_FILE_OFFSET64 … … 56 187 #define __USE_LARGEFILE64 57 188 #endif 58 */59 189 #include <sys/stat.h> 60 190 #include <fcntl.h> … … 66 196 #include <unistd.h> 67 197 #include <signal.h> 198 //#include <curses.h> 68 199 #include <newt.h> 69 200 #include <ctype.h> … … 72 203 #include <assert.h> 73 204 74 /*75 205 #if defined(DEBUG) && !__cplusplus 76 206 int count; 77 char trace_log[255]; 207 char trace_log[255]; /*buffer for logging */ 78 208 char *trace_log_ptr; 79 #endif 80 */ 81 82 #define STD_PREFIX "mondorescue" 209 #endif /* DEBUG */ 210 211 #define IA64_BOOT_SIZE "8192" /* Should be coherent with mindi */ 212 #define STD_PREFIX "mondorescue" /* Should be coherent with mindi */ 83 213 84 214 /** … … 123 253 #define CRC_M16 0xA001 ///< Mask for crc16. 124 254 #define CRC_MTT 0x1021 ///< Mask for crc-ccitt. 255 256 #define FALSE 0 ///< The ubiquitous FALSE macro. 257 #define TRUE 1 ///< The even more ubiquitous TRUE macro. 125 258 126 259 #define SCREEN_LENGTH 25 ///< The default size of the screen. … … 212 345 * @c growisofs command to generate a bootable DVD using isolinux, except for the directory to image. 213 346 */ 214 #define MONDO_GROWISOFS_REGULAR_SYSLINUX "growisofs - use-the-force-luke -J -no-emul-boot -boot-load-size 4 -b isolinux.bin --boot-info-table -c boot.cat -boot-load-size 4 -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL_Version -V _CD#_ -v"347 #define MONDO_GROWISOFS_REGULAR_SYSLINUX "growisofs -speed=1 -use-the-force-luke -J -no-emul-boot -boot-load-size 4 -b isolinux.bin --boot-info-table -c boot.cat -boot-load-size 4 -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL_Version -V _CD#_ -v" 215 348 216 349 /** 217 350 * @c growisofs command to generate a bootable DVD using LILO, except for the directory to image. 218 351 */// -b images/mindi-boot.2880.img 219 #define MONDO_GROWISOFS_REGULAR_ELILO "growisofs - use-the-force-luke -no-emul-boot -b images/mindi-boot.2880.img -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v"352 #define MONDO_GROWISOFS_REGULAR_ELILO "growisofs -speed=1 -use-the-force-luke -no-emul-boot -b images/mindi-boot.2880.img -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v" 220 353 221 354 /** 222 355 * @c growisofs command to generate a bootable DVD using LILO, except for the directory to image. 223 356 */// -b images/mindi-boot.2880.img 224 #define MONDO_GROWISOFS_REGULAR_LILO "growisofs - no-emul-boot -b isolinux.bin -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v"357 #define MONDO_GROWISOFS_REGULAR_LILO "growisofs -speed=1 -no-emul-boot -b isolinux.bin -c boot.cat -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v" 225 358 226 359 /** 227 360 * @c growisofs command to generate a nonbootable DVD, except for the directory to image. 228 361 */ 229 #define MONDO_GROWISOFS_NONBOOT "growisofs - use-the-force-luke -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v"362 #define MONDO_GROWISOFS_NONBOOT "growisofs -speed=1 -use-the-force-luke -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V _CD#_ -v" 230 363 231 364 /** 232 365 * Welcome string displayed at the top of the newt interface. 233 366 */ 234 #define WELCOME_STRING _("W E L C O M E T O M O N D O R E S C U E")367 #define WELCOME_STRING "W E L C O M E T O M O N D O R E S C U E" 235 368 236 369 /** … … 393 526 #define DEFAULT_MR_LOGLEVEL 4 394 527 395 #ifdef ENABLE_NLS396 # include <libintl.h>397 # undef _398 # define _(String) dgettext (PACKAGE, String)399 # ifdef gettext_noop400 # define N_(String) gettext_noop (String)401 # else402 # define N_(String) (String)403 # endif404 #else405 # define textdomain(String) (String)406 # define gettext(String) (String)407 # define dgettext(Domain,Message) (Message)408 # define dcgettext(Domain,Message,Type) (Message)409 # define bindtextdomain(Domain,Directory) (Domain)410 # define _(String) (String)411 # define N_(String) (String)412 413 #endif414 415 416 417 528 #endif /* _MY_STUFF_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.