Changeset 541 in MondoRescue for branches/stable/mondo/mondo/common/my-stuff.h


Ignore:
Timestamp:
May 13, 2006, 8:47:23 PM (18 years ago)
Author:
bcornec
Message:

Stable is reverted to r436 (2.0.7) to put it in line with 2.0.8 and start from there over

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
     607/14
     7- ARCH_THREADS is now 2; buffers, 4
     8
     907/10
     10- added acl, xattr stuff
     11
     1206/19
     13- added AUX_VER
     14
     1506/14
     16- added DO_MBR_PLEASE
     17
     1804/17
     19- replaced INTERNAL_TAPE_BLK_SIZE with g_internal_tape_block_size
     20  and DEFAULT_INTERNAL_TAPE_BLOCK_SIZE
     21
     2204/13
     23- log_msg is now calling standard_log_debug_msg, not the alias (log_debug_msg)
     24
     2504/03/2004
     26- added star and SELINUX support
     27
     2811/20/2003
     29- boot from isolinux.bin, not mindi-boot.2880.img
     30
     3111/15
     32- reduced SLICE_SIZE from 8192 to 4096
     33
     3410/08
     35- set p-i-h volsize to 1GB
     36
     3710/21
     38- added MNT_CDROM and FREELOADER
     39
     4010/11
     41- added DEFAULT_DVD_DISK_SIZE
     42- added PARTIMAGE_DEBUG_LEVEL
     43
     4409/27
     45- better logging
     46
     4709/24
     48- added MR_LOGFILE="/tmp/mondo-restore.log"
     49
     5009/22
     51- added bool, FALSE, TRUE
     52
     5309/20
     54- increasd PPCFG_RAMDISK_SIZE to 150
     55
     5609/12
     57- reduced MAX_STR_LEN from 512 to 460
     58
     5909/10
     60- moved PPCFG_RAMDISK_SIZE here
     61
     6209/05
     63- better config.h stuff
     64
     6506/05
     66- changed fgrep to grep
     67
     6805/19
     69- added CP_BIN
     70
     7105/05
     72- added #include <sys/param.h> and sys/sem.h and ioctl.h
     73
     7405/03
     75- added kill_anything_like_this()
     76
     7704/24/2003
     78- added *STUB #define's
     79
     8011/22/2002
     81- added INTERNAL_TAPE_BLK_SIZE
     82
     8310/10
     84- use #define to create XMondo-friendly log file name if appropriate
     85
     8608/30
     87- changed ARBITRARY_MAXIMUM to 512
     88
     8908/26
     90- set MAX_STR_LEN at 512 but halved it within many _structures_
     91- changed ARBITRARY_MAXIMUM to 128
     92
     9308/08
     94- added '#include <signal.h>'
     95- added WELCOME_STRING
     96
     9706/19
     98- changed tape block size from 8192 to 65536
     99
     10004/08
     101- added manual_cd_tray flag to bkpinfo
     102
     10303/31
     104- added restore_path to struct s_bkpinfo
     105
     10603/21
     107- updated version# to 1.42
     108
     10902/20
     110- added bkpinfo->using_cdstream
     111
     11202/06
     113- added MONDO_VERSION
     114
     11502/02
     116- added MONDO_CFG_FILE
     117- added SLICE_SIZE
     118
     11901/31
     120- removed MINDI_HOME: it is unnecessary
     121- replaced MONDO_HOME with variable g_mondo_home
     122
     12301/25
     124- added MONDO_HOME, MINDI_HOME
     125
     12601/21
     127- added s_node{} structure
     128
     12901/17
     130- added sys/shm.h, types.h, ipc.h
     131
     13201/02/2002
     133- added that groovy bkpinfo{} stuff
     134
     13511/29/2001
     136- added raidlist{} struct
     137
     13808/27
     139- stuff
     140*/
     141
    11142#define HAVE_MALLOC 1
    12 */
     143
    13144
    14145// Extra info for ACLs and SELINUX users
     
    27158 * Create the illusion of a Boolean type.
    28159 */
    29 #define bool unsigned char
     160#define bool int
    30161#define TRUE 1
    31162#define FALSE 0
    32163#endif
    33164
    34 /* BERLIOS
     165#ifndef _MY_STUFF_H_
     166#define _MY_STUFF_H_
     167
    35168#ifdef HAVE_CONFIG_H
    36169#include <config.h>
    37170#endif
    38 */
    39171
    40172#ifndef __FreeBSD__
     
    49181#include <stdio.h>
    50182#include <stdlib.h>
    51 /* BERLIOS
    52183#ifndef  __USE_FILE_OFFSET64
    53184#define  __USE_FILE_OFFSET64
     
    56187#define  __USE_LARGEFILE64
    57188#endif
    58 */
    59189#include <sys/stat.h>
    60190#include <fcntl.h>
     
    66196#include <unistd.h>
    67197#include <signal.h>
     198//#include <curses.h>
    68199#include <newt.h>
    69200#include <ctype.h>
     
    72203#include <assert.h>
    73204
    74 /*
    75205#if defined(DEBUG) && !__cplusplus
    76206int count;
    77 char trace_log[255];
     207char trace_log[255];            /*buffer for logging */
    78208char *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 */
    83213
    84214/**
     
    123253#define CRC_M16 0xA001          ///< Mask for crc16.
    124254#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.
    125258
    126259#define SCREEN_LENGTH 25        ///< The default size of the screen.
     
    212345 * @c growisofs command to generate a bootable DVD using isolinux, except for the directory to image.
    213346 */
    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"
    215348
    216349/**
    217350 * @c growisofs command to generate a bootable DVD using LILO, except for the directory to image.
    218351     */// -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"
    220353
    221354/**
    222355 * @c growisofs command to generate a bootable DVD using LILO, except for the directory to image.
    223356     */// -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"
    225358
    226359/**
    227360 * @c growisofs command to generate a nonbootable DVD, except for the directory to image.
    228361 */
    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"
    230363
    231364/**
    232365 * Welcome string displayed at the top of the newt interface.
    233366 */
    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"
    235368
    236369/**
     
    393526#define DEFAULT_MR_LOGLEVEL 4
    394527
    395 #ifdef ENABLE_NLS 
    396 # include <libintl.h> 
    397 # undef _ 
    398 # define _(String) dgettext (PACKAGE, String)
    399 # ifdef gettext_noop 
    400 #  define N_(String) gettext_noop (String) 
    401 # else 
    402 #  define N_(String) (String) 
    403 # endif 
    404 #else 
    405 # 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 #endif
    414 
    415 
    416 
    417528#endif                          /* _MY_STUFF_H_ */
Note: See TracChangeset for help on using the changeset viewer.