Changeset 1074 in MondoRescue for trunk/mondo/src/include
- Timestamp:
- Jan 25, 2007, 4:18:12 PM (18 years ago)
- Location:
- trunk/mondo/src/include
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/include/mr_conf.h
r852 r1074 19 19 /*initialization and closing*/ 20 20 extern int mr_conf_open(const char *filename); 21 extern void mr_conf_close( );21 extern void mr_conf_close(void); 22 22 23 23 /*read integer number after string str in the current file*/ -
trunk/mondo/src/include/mr_err.h
r900 r1074 11 11 /* functions (public methods) */ 12 12 13 extern void mr_exit(int errorcode, const char *message);14 extern void mr_log_exit(int errorcode, const char *message);13 extern inline void mr_exit(int errorcode, const char *message); 14 extern inline void mr_log_exit(int errorcode, const char *message); 15 15 16 16 #endif /* MR_ERR_H */ -
trunk/mondo/src/include/mr_mem.h
r900 r1074 9 9 #define MR_MEM_H 10 10 11 #ifndef _GNU_SOURCE 12 #define _GNU_SOURCE 13 #endif 14 #include <stdarg.h> 15 11 16 /* functions (public methods) */ 12 17 13 extern void mr_free(char *allocated); 14 extern void mr_allocstr(char *alloc, const char *orig); 15 extern void mr_asprintf(char **alloc, const char *fmt, ...); 16 extern void mr_vasprintf(char **alloc, const char *fmt, va_list ap); 17 extern void mr_getline(char **lineptr, size_t *n, FILE *stream); 18 extern void *mr_malloc(size_t size); 18 extern inline void mr_free(char *allocated); 19 extern inline void mr_allocstr(char *alloc, const char *orig); 20 extern inline void mr_asprintf(char **alloc, const char *fmt, ...); 21 extern inline void mr_getline(char **lineptr, size_t *n, FILE *stream); 22 extern inline void *mr_malloc(size_t size); 19 23 20 24 #endif /* MR_MEM_H */ -
trunk/mondo/src/include/mr_msg.h
r900 r1074 9 9 #define MR_MSG_H 10 10 11 #ifndef _GNU_SOURCE 12 #define _GNU_SOURCE 13 #endif 14 #include <stdarg.h> 15 11 16 /* functions (public methods) */ 12 17 13 extern void _mr_msg(int debug, const char *file, const char *function, int line, const char *fmt, ...);14 15 #define mr_msg(level, format, args...) _mr_msg(level, __FILE__, __FUNCTION__, __LINE__, format, ## args) 18 extern inline void mr_msg(int debug, const char *fmt, ...); 19 extern void mr_msg_init(const char *configfile, int loglevel); 20 extern void mr_msg_close(void); 16 21 17 22 #endif /* MR_MSG_H */ -
trunk/mondo/src/include/mr_str.h
r900 r1074 11 11 /* functions (public methods) */ 12 12 13 extern char *mr_strtok(char *instr, const char *delims, int *lastpos);14 extern char *mr_stresc(char *instr, char *toesc, const char escchr);13 extern inline char *mr_strtok(char *instr, const char *delims, int *lastpos); 14 extern inline char *mr_stresc(char *instr, char *toesc, const char escchr); 15 15 16 16 #endif /* MR_STR_H */ -
trunk/mondo/src/include/my-stuff.h
r973 r1074 8 8 #define _MY_STUFF_H_ 9 9 10 /* BERLIOS11 #define HAVE_MALLOC 112 */13 14 10 // Extra info for ACLs and SELINUX users 15 11 #define STAR_ACL_SZ "-xfflags -acl" 16 //#define STAR_ACL_SZ "-xfflags" 17 //#define STAR_ACL_SZ "" 18 // Enable the first line and disable the second if you are a Fedora Core 2 user 12 13 /*The number of lines of log output to keep at the bottom of the screen.*/ 14 #define NOOF_ERR_LINES 6 15 16 #define paranoid_free(exp) mr_free(exp) 19 17 20 18 /** … … 53 51 54 52 #include <stdlib.h> 55 /* BERLIOS56 #ifndef __USE_FILE_OFFSET6457 #define __USE_FILE_OFFSET6458 #endif59 #ifndef __USE_LARGEFILE6460 #define __USE_LARGEFILE6461 #endif62 */63 53 #include <sys/stat.h> 64 54 #include <fcntl.h> … … 79 69 #endif 80 70 #include <assert.h> 81 82 /*83 #if defined(DEBUG) && !__cplusplus84 int count;85 char trace_log[255];86 char *trace_log_ptr;87 #endif88 */89 71 90 72 #define STD_PREFIX "mondorescue" … … 210 192 211 193 /** 212 * @c mkisofs command to generate a bootable CD using LILO, except for -o option and the directory to image.213 */214 // -b images/mindi-boot.2880.img215 216 /**217 * @c mkisofs command to generate a bootable CD using ELILO, except for -o option and the directory to image.218 */219 // -b images/mindi-boot.2880.img220 // Should replace 8192 by IA64_BOOT_SIZE221 222 /**223 194 * The stub name of the temporary ISO image to create, burn, and remove. 224 195 */ … … 332 303 #define VANILLA_SCSI_CDROM "/dev/cd0" 333 304 #define VANILLA_SCSI_TAPE "/dev/sa" 305 #define VANILLA_USB_DEVICE "/dev/tobegivenbyfreebsdguru" 334 306 #define DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE "/dev/vinum/" 335 307 #define RAID_DEVICE_STUB DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE … … 341 313 #define VANILLA_SCSI_CDROM "/dev/scd0" 342 314 #define VANILLA_SCSI_TAPE "/dev/st" 315 #define VANILLA_USB_DEVICE "/dev/hda" 343 316 #define DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE "/dev/md" 344 317 #define RAID_DEVICE_STUB DONT_KNOW_HOW_TO_EVALUATE_THIS_DEVICE_TYPE
Note:
See TracChangeset
for help on using the changeset viewer.