diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-13 10:36:25 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-13 10:36:25 +0000 |
commit | e324184c0509cc0db168ce29546e1b52800a79c6 (patch) | |
tree | 9d4f18b3cc1ab715b6ff91cc9e3e942d11dfc51f /util-linux | |
parent | 5f1b149d541ebba7cab841cb647f113248f9fb8f (diff) | |
download | busybox-w32-e324184c0509cc0db168ce29546e1b52800a79c6.tar.gz busybox-w32-e324184c0509cc0db168ce29546e1b52800a79c6.tar.bz2 busybox-w32-e324184c0509cc0db168ce29546e1b52800a79c6.zip |
s/#ifdef CONFIG_/#if ENABLE_/g
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/fbset.c | 14 | ||||
-rw-r--r-- | util-linux/hwclock.c | 2 | ||||
-rw-r--r-- | util-linux/ipcrm.c | 11 |
3 files changed, 15 insertions, 12 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c index 69986df25..a2b8b3800 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c | |||
@@ -37,7 +37,7 @@ enum { | |||
37 | CMD_INFO = 12, | 37 | CMD_INFO = 12, |
38 | CMD_CHANGE = 13, | 38 | CMD_CHANGE = 13, |
39 | 39 | ||
40 | #ifdef CONFIG_FEATURE_FBSET_FANCY | 40 | #if ENABLE_FEATURE_FBSET_FANCY |
41 | CMD_XRES = 100, | 41 | CMD_XRES = 100, |
42 | CMD_YRES = 101, | 42 | CMD_YRES = 101, |
43 | CMD_VXRES = 102, | 43 | CMD_VXRES = 102, |
@@ -130,7 +130,7 @@ static const struct cmdoptions_t { | |||
130 | { "-laced", 1, CMD_LACED }, | 130 | { "-laced", 1, CMD_LACED }, |
131 | { "-double", 1, CMD_DOUBLE }, | 131 | { "-double", 1, CMD_DOUBLE }, |
132 | { "-n", 0, CMD_CHANGE }, | 132 | { "-n", 0, CMD_CHANGE }, |
133 | #ifdef CONFIG_FEATURE_FBSET_FANCY | 133 | #if ENABLE_FEATURE_FBSET_FANCY |
134 | { "-all", 0, CMD_ALL }, | 134 | { "-all", 0, CMD_ALL }, |
135 | { "-xres", 1, CMD_XRES }, | 135 | { "-xres", 1, CMD_XRES }, |
136 | { "-yres", 1, CMD_YRES }, | 136 | { "-yres", 1, CMD_YRES }, |
@@ -158,7 +158,7 @@ static const struct cmdoptions_t { | |||
158 | { "", 0, 0 } | 158 | { "", 0, 0 } |
159 | }; | 159 | }; |
160 | 160 | ||
161 | #ifdef CONFIG_FEATURE_FBSET_READMODE | 161 | #if ENABLE_FEATURE_FBSET_READMODE |
162 | /* taken from linux/fb.h */ | 162 | /* taken from linux/fb.h */ |
163 | enum { | 163 | enum { |
164 | FB_VMODE_INTERLACED = 1, /* interlaced */ | 164 | FB_VMODE_INTERLACED = 1, /* interlaced */ |
@@ -173,7 +173,7 @@ enum { | |||
173 | static int readmode(struct fb_var_screeninfo *base, const char *fn, | 173 | static int readmode(struct fb_var_screeninfo *base, const char *fn, |
174 | const char *mode) | 174 | const char *mode) |
175 | { | 175 | { |
176 | #ifdef CONFIG_FEATURE_FBSET_READMODE | 176 | #if ENABLE_FEATURE_FBSET_READMODE |
177 | FILE *f; | 177 | FILE *f; |
178 | char buf[256]; | 178 | char buf[256]; |
179 | char *p = buf; | 179 | char *p = buf; |
@@ -286,7 +286,7 @@ static inline void showmode(struct fb_var_screeninfo *v) | |||
286 | vrate = hrate / (v->upper_margin + v->yres + v->lower_margin + v->vsync_len); | 286 | vrate = hrate / (v->upper_margin + v->yres + v->lower_margin + v->vsync_len); |
287 | } | 287 | } |
288 | printf("\nmode \"%ux%u-%u\"\n" | 288 | printf("\nmode \"%ux%u-%u\"\n" |
289 | #ifdef CONFIG_FEATURE_FBSET_FANCY | 289 | #if ENABLE_FEATURE_FBSET_FANCY |
290 | "\t# D: %.3f MHz, H: %.3f kHz, V: %.3f Hz\n" | 290 | "\t# D: %.3f MHz, H: %.3f kHz, V: %.3f Hz\n" |
291 | #endif | 291 | #endif |
292 | "\tgeometry %u %u %u %u %u\n" | 292 | "\tgeometry %u %u %u %u %u\n" |
@@ -295,7 +295,7 @@ static inline void showmode(struct fb_var_screeninfo *v) | |||
295 | "\trgba %u/%u,%u/%u,%u/%u,%u/%u\n" | 295 | "\trgba %u/%u,%u/%u,%u/%u,%u/%u\n" |
296 | "endmode\n\n", | 296 | "endmode\n\n", |
297 | v->xres, v->yres, (int) (vrate + 0.5), | 297 | v->xres, v->yres, (int) (vrate + 0.5), |
298 | #ifdef CONFIG_FEATURE_FBSET_FANCY | 298 | #if ENABLE_FEATURE_FBSET_FANCY |
299 | drate / 1e6, hrate / 1e3, vrate, | 299 | drate / 1e6, hrate / 1e3, vrate, |
300 | #endif | 300 | #endif |
301 | v->xres, v->yres, v->xres_virtual, v->yres_virtual, v->bits_per_pixel, | 301 | v->xres, v->yres, v->xres_virtual, v->yres_virtual, v->bits_per_pixel, |
@@ -360,7 +360,7 @@ int fbset_main(int argc, char **argv) | |||
360 | case CMD_CHANGE: | 360 | case CMD_CHANGE: |
361 | g_options |= OPT_CHANGE; | 361 | g_options |= OPT_CHANGE; |
362 | break; | 362 | break; |
363 | #ifdef CONFIG_FEATURE_FBSET_FANCY | 363 | #if ENABLE_FEATURE_FBSET_FANCY |
364 | case CMD_XRES: | 364 | case CMD_XRES: |
365 | varset.xres = xatou32(argv[1]); | 365 | varset.xres = xatou32(argv[1]); |
366 | break; | 366 | break; |
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 867721482..fcb7308fe 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c | |||
@@ -132,7 +132,7 @@ static void from_sys_clock(int utc) | |||
132 | write_rtc(tv.tv_sec, utc); | 132 | write_rtc(tv.tv_sec, utc); |
133 | } | 133 | } |
134 | 134 | ||
135 | #ifdef CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS | 135 | #if ENABLE_FEATURE_HWCLOCK_ADJTIME_FHS |
136 | # define ADJTIME_PATH "/var/lib/hwclock/adjtime" | 136 | # define ADJTIME_PATH "/var/lib/hwclock/adjtime" |
137 | #else | 137 | #else |
138 | # define ADJTIME_PATH "/etc/adjtime" | 138 | # define ADJTIME_PATH "/etc/adjtime" |
diff --git a/util-linux/ipcrm.c b/util-linux/ipcrm.c index 1e6206217..f49d28ee2 100644 --- a/util-linux/ipcrm.c +++ b/util-linux/ipcrm.c | |||
@@ -29,7 +29,10 @@ union semun { | |||
29 | }; | 29 | }; |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #ifndef CONFIG_IPCRM_DROP_LEGACY | 32 | #define IPCRM_LEGACY 1 |
33 | |||
34 | |||
35 | #if IPCRM_LEGACY | ||
33 | 36 | ||
34 | typedef enum type_id { | 37 | typedef enum type_id { |
35 | SHM, | 38 | SHM, |
@@ -70,7 +73,7 @@ static int remove_ids(type_id type, int argc, char **argv) | |||
70 | 73 | ||
71 | return nb_errors; | 74 | return nb_errors; |
72 | } | 75 | } |
73 | #endif /* #ifndef CONFIG_IPCRM_DROP_LEGACY */ | 76 | #endif /* IPCRM_LEGACY */ |
74 | 77 | ||
75 | 78 | ||
76 | int ipcrm_main(int argc, char **argv); | 79 | int ipcrm_main(int argc, char **argv); |
@@ -82,7 +85,7 @@ int ipcrm_main(int argc, char **argv) | |||
82 | /* if the command is executed without parameters, do nothing */ | 85 | /* if the command is executed without parameters, do nothing */ |
83 | if (argc == 1) | 86 | if (argc == 1) |
84 | return 0; | 87 | return 0; |
85 | #ifndef CONFIG_IPCRM_DROP_LEGACY | 88 | #if IPCRM_LEGACY |
86 | /* check to see if the command is being invoked in the old way if so | 89 | /* check to see if the command is being invoked in the old way if so |
87 | then run the old code. Valid commands are msg, shm, sem. */ | 90 | then run the old code. Valid commands are msg, shm, sem. */ |
88 | { | 91 | { |
@@ -113,7 +116,7 @@ int ipcrm_main(int argc, char **argv) | |||
113 | return 0; | 116 | return 0; |
114 | } | 117 | } |
115 | } | 118 | } |
116 | #endif /* #ifndef CONFIG_IPCRM_DROP_LEGACY */ | 119 | #endif /* IPCRM_LEGACY */ |
117 | 120 | ||
118 | /* process new syntax to conform with SYSV ipcrm */ | 121 | /* process new syntax to conform with SYSV ipcrm */ |
119 | while ((c = getopt(argc, argv, "q:m:s:Q:M:S:h?")) != -1) { | 122 | while ((c = getopt(argc, argv, "q:m:s:Q:M:S:h?")) != -1) { |