Updates lilo.conf.5 manpage
[rrq/maintain_lilo.git] / src / config.h
1 /* config.h  -  Configurable parameters */
2 /*
3 Copyright 1992-1998 Werner Almesberger.
4 Copyright 1999-2006 John Coffman.
5 All rights reserved.
6
7 Licensed under the terms contained in the file 'COPYING' in the 
8 source directory.
9
10 */
11
12
13 #ifndef CONFIG_H
14 #define CONFIG_H
15
16 /* undefine LCF_DEVMAPPER if the library is not present */
17 #ifdef LCF_DEVMAPPER
18 # ifndef HAS_LIBDEVMAPPER_H
19 #  undef LCF_DEVMAPPER
20 # endif
21 #endif
22
23 #if !__MSDOS__
24 #if !defined(__GLIBC__) || (__GLIBC__ < 2) || \
25          !defined(__GLIBC_MINOR__) || (__GLIBC_MINOR__ < 1)
26 # warning "glibc version 2.1 or later is recommended"
27 #endif /* !__MSDOS__ */
28
29 #define TMP_DEV     "/tmp/dev.%d" /* temporary devices are created here */
30 #define MAX_TMP_DEV 50 /* highest temp. device number */
31
32 #ifdef LCF_OLD_DIRSTR
33 #define LILO_DIR    "/etc/lilo" /* base directory for LILO files */
34 #define BACKUP_DIR  LILO_DIR /* boot sector and partition table backups */
35 #define DFL_CONFIG  LILO_DIR "/config" /* default configuration file */
36 #define DFL_DISKTAB LILO_DIR "/disktab" /* LILO's disk parameter table */
37 #define MAP_FILE    LILO_DIR "/map" /* default map file */
38 #define MAP_TMP_APP "~" /* temporary file appendix */
39 #define DFL_BOOT    LILO_DIR "/boot.b" /* default boot loader */
40 #define DFL_CHAIN   LILO_DIR "/chain.b" /* default chain loader */
41 #define DFL_MBR     LILO_DIR "/mbr.b"   /* default MBR */
42 #else
43 #define CFG_DIR     "/etc"              /* location of configuration files */
44 #define BOOT_DIR    "/boot"             /* location of boot files */
45 #define BACKUP_DIR  BOOT_DIR /* boot sector and partition table backups */
46 #define DFL_CONFIG  CFG_DIR "/lilo.conf"/* default configuration file */
47 #define DFL_DISKTAB CFG_DIR "/disktab"  /* LILO's disk parameter table */
48 #define MAP_FILE    BOOT_DIR "/map"     /* default map file */
49 #define MAP_TMP_APP "~"                 /* temporary file appendix */
50 #define DFL_BOOT    BOOT_DIR "/boot.b"  /* default boot loader */
51 #define DFL_CHAIN   BOOT_DIR "/chain.b" /* default chain loader */
52 #define DFL_MBR     BOOT_DIR "/mbr.b"   /* default MBR */
53 #define DFL_KEYTAB  BOOT_DIR "/us.ktl"  /* default keytable */
54 #endif
55
56 #define DEV_DIR         "/dev"  /* devices directory (/dev/mem &c.) */
57 #define DEV_DISK_DIR    DEV_DIR /* disk devices are here */
58                                 /* alternate might be "/dev/disk" */
59
60 #else /* MSDOS */
61 #define CFG_DIR     "C:\\ETC"           /* location of configuration files */
62 #define BOOT_DIR    "C:\\BOOT"          /* location of boot files */
63 #define BACKUP_DIR  BOOT_DIR /* boot sector and partition table backups */
64 #define DFL_CONFIG  CFG_DIR "\\LILO.CNF"/* default configuration file */
65 #define MAP_FILE    BOOT_DIR "\\MAP"    /* default map file */
66
67 #endif
68
69 #define MAX_LINE    1024 /* maximum disk parameter table line length */
70
71 #endif