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


Ignore:
Timestamp:
May 13, 2006, 6:39:55 PM (18 years ago)
Author:
bcornec
Message:

Begining of modifications => DOS NOT WORK FOR NOW.
This is done to be merged in trunk. stable will later point back to current 2.0.8 content

Use of mindi conf file in mindi + /var/cache/mindi as a default place
Use of mondo conf file in mondo + separation of messages.
Ultimate goal is to have a cleaner design of files vs functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/common/my-stuff.h

    r511 r538  
    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
     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
     11#define HAVE_MALLOC 1
    14012*/
    141 
    142 #define HAVE_MALLOC 1
    143 
    14413
    14514// Extra info for ACLs and SELINUX users
     
    15827 * Create the illusion of a Boolean type.
    15928 */
    160 #define bool int
     29#define bool unsigned char
    16130#define TRUE 1
    16231#define FALSE 0
    16332#endif
    16433
    165 #ifndef _MY_STUFF_H_
    166 #define _MY_STUFF_H_
    167 
     34/* BERLIOS
    16835#ifdef HAVE_CONFIG_H
    16936#include <config.h>
    17037#endif
     38*/
    17139
    17240#ifndef __FreeBSD__
     
    18149#include <stdio.h>
    18250#include <stdlib.h>
     51/* BERLIOS
    18352#ifndef  __USE_FILE_OFFSET64
    18453#define  __USE_FILE_OFFSET64
     
    18756#define  __USE_LARGEFILE64
    18857#endif
     58*/
    18959#include <sys/stat.h>
    19060#include <fcntl.h>
     
    19666#include <unistd.h>
    19767#include <signal.h>
    198 //#include <curses.h>
    19968#include <newt.h>
    20069#include <ctype.h>
     
    20372#include <assert.h>
    20473
    205 #include "../../config.h"
    206 
     74/*
    20775#if defined(DEBUG) && !__cplusplus
    20876int count;
    209 char trace_log[255];            /*buffer for logging */
     77char trace_log[255];
    21078char *trace_log_ptr;
    211 #endif                          /* DEBUG */
    212 
    213 #define IA64_BOOT_SIZE "8192"   /* Should be coherent with mindi */
    214 #define STD_PREFIX "mondorescue"    /* Should be coherent with mindi */
     79#endif
     80*/
     81
     82#define STD_PREFIX "mondorescue"
    21583
    21684/**
     
    255123#define CRC_M16 0xA001          ///< Mask for crc16.
    256124#define CRC_MTT 0x1021          ///< Mask for crc-ccitt.
    257 
    258 #define FALSE 0                 ///< The ubiquitous FALSE macro.
    259 #define TRUE 1                  ///< The even more ubiquitous TRUE macro.
    260125
    261126#define SCREEN_LENGTH 25        ///< The default size of the screen.
Note: See TracChangeset for help on using the changeset viewer.