Changeset 539 in MondoRescue for trunk/mondo/mondo/common/my-stuff.h
- Timestamp:
- May 13, 2006, 7:38:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/my-stuff.h
r518 r539 1 /* $Id$ */ 2 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 3 11 #define HAVE_MALLOC 1 12 */ 4 13 5 14 // Extra info for ACLs and SELINUX users … … 26 35 * Create the illusion of a Boolean type. 27 36 */ 28 #define bool int37 #define bool unsigned char 29 38 #define TRUE 1 30 39 #define FALSE 0 … … 34 43 #include <config.h> 35 44 #endif 45 /* BERLIOS 46 * Useful ? 47 */ 36 48 37 49 #ifndef __FreeBSD__ … … 47 59 48 60 #include <stdlib.h> 61 /* BERLIOS 49 62 #ifndef __USE_FILE_OFFSET64 50 63 #define __USE_FILE_OFFSET64 … … 53 66 #define __USE_LARGEFILE64 54 67 #endif 68 */ 55 69 #include <sys/stat.h> 56 70 #include <fcntl.h> … … 64 78 #include <signal.h> 65 79 #endif 66 //#include <curses.h>67 80 #include <newt.h> 68 81 #include <ctype.h> … … 70 83 #ifndef S_SPLINT_S 71 84 #include <pthread.h> 72 #endif73 85 #include <assert.h> 74 86 75 #include "../../config.h" 76 87 /* 77 88 #if defined(DEBUG) && !__cplusplus 78 89 int count; 79 char trace_log[255]; /*buffer for logging */90 char trace_log[255]; 80 91 char *trace_log_ptr; 81 #endif /* DEBUG */82 83 #define IA64_BOOT_SIZE "8192" /* Should be coherent with mindi */ 84 #define STD_PREFIX "mondorescue" /* Should be coherent with mindi */92 #endif 93 */ 94 95 #define STD_PREFIX "mondorescue" 85 96 86 97 /** … … 129 140 #define CRC_M16 0xA001 ///< Mask for crc16. 130 141 #define CRC_MTT 0x1021 ///< Mask for crc-ccitt. 131 132 #define FALSE 0 ///< The ubiquitous FALSE macro.133 #define TRUE 1 ///< The even more ubiquitous TRUE macro.134 142 135 143 #define SCREEN_LENGTH 25 ///< The default size of the screen.
Note:
See TracChangeset
for help on using the changeset viewer.