diff options
96 files changed, 158 insertions, 246 deletions
diff --git a/archival/ar.c b/archival/ar.c index 027cd6b5a..f4edeb087 100644 --- a/archival/ar.c +++ b/archival/ar.c | |||
@@ -16,7 +16,6 @@ | |||
16 | * between different systems | 16 | * between different systems |
17 | * http://www.unix-systems.org/single_unix_specification_v2/xcu/ar.html | 17 | * http://www.unix-systems.org/single_unix_specification_v2/xcu/ar.html |
18 | */ | 18 | */ |
19 | |||
20 | //config:config AR | 19 | //config:config AR |
21 | //config: bool "ar (9.5 kb)" | 20 | //config: bool "ar (9.5 kb)" |
22 | //config: default n # needs to be improved to be able to replace binutils ar | 21 | //config: default n # needs to be improved to be able to replace binutils ar |
@@ -46,6 +45,7 @@ | |||
46 | //config: This enables archive creation (-c and -r) with busybox ar. | 45 | //config: This enables archive creation (-c and -r) with busybox ar. |
47 | 46 | ||
48 | //applet:IF_AR(APPLET(ar, BB_DIR_USR_BIN, BB_SUID_DROP)) | 47 | //applet:IF_AR(APPLET(ar, BB_DIR_USR_BIN, BB_SUID_DROP)) |
48 | |||
49 | //kbuild:lib-$(CONFIG_AR) += ar.o | 49 | //kbuild:lib-$(CONFIG_AR) += ar.o |
50 | 50 | ||
51 | //usage:#define ar_trivial_usage | 51 | //usage:#define ar_trivial_usage |
diff --git a/archival/bbunzip.c b/archival/bbunzip.c index 20ab893da..944b397b3 100644 --- a/archival/bbunzip.c +++ b/archival/bbunzip.c | |||
@@ -4,9 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | #include "libbb.h" | ||
8 | #include "bb_archive.h" | ||
9 | |||
10 | //kbuild:lib-$(CONFIG_ZCAT) += bbunzip.o | 7 | //kbuild:lib-$(CONFIG_ZCAT) += bbunzip.o |
11 | //kbuild:lib-$(CONFIG_GUNZIP) += bbunzip.o | 8 | //kbuild:lib-$(CONFIG_GUNZIP) += bbunzip.o |
12 | //kbuild:lib-$(CONFIG_BZCAT) += bbunzip.o | 9 | //kbuild:lib-$(CONFIG_BZCAT) += bbunzip.o |
@@ -21,6 +18,9 @@ | |||
21 | /* gzip_main() too: */ | 18 | /* gzip_main() too: */ |
22 | //kbuild:lib-$(CONFIG_GZIP) += bbunzip.o | 19 | //kbuild:lib-$(CONFIG_GZIP) += bbunzip.o |
23 | 20 | ||
21 | #include "libbb.h" | ||
22 | #include "bb_archive.h" | ||
23 | |||
24 | /* Note: must be kept in sync with archival/lzop.c */ | 24 | /* Note: must be kept in sync with archival/lzop.c */ |
25 | enum { | 25 | enum { |
26 | OPT_STDOUT = 1 << 0, | 26 | OPT_STDOUT = 1 << 0, |
diff --git a/archival/bzip2.c b/archival/bzip2.c index d578eb7ad..d6fd9296d 100644 --- a/archival/bzip2.c +++ b/archival/bzip2.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * See README and LICENSE files in bz/ directory for more information | 6 | * See README and LICENSE files in bz/ directory for more information |
7 | * about bzip2 library code. | 7 | * about bzip2 library code. |
8 | */ | 8 | */ |
9 | |||
10 | //config:config BZIP2 | 9 | //config:config BZIP2 |
11 | //config: bool "bzip2 (18 kb)" | 10 | //config: bool "bzip2 (18 kb)" |
12 | //config: default y | 11 | //config: default y |
@@ -30,6 +29,7 @@ | |||
30 | //config: enabled. | 29 | //config: enabled. |
31 | 30 | ||
32 | //applet:IF_BZIP2(APPLET(bzip2, BB_DIR_USR_BIN, BB_SUID_DROP)) | 31 | //applet:IF_BZIP2(APPLET(bzip2, BB_DIR_USR_BIN, BB_SUID_DROP)) |
32 | |||
33 | //kbuild:lib-$(CONFIG_BZIP2) += bzip2.o | 33 | //kbuild:lib-$(CONFIG_BZIP2) += bzip2.o |
34 | 34 | ||
35 | //usage:#define bzip2_trivial_usage | 35 | //usage:#define bzip2_trivial_usage |
diff --git a/archival/cpio.c b/archival/cpio.c index f2165be3a..1d6cbd1e2 100644 --- a/archival/cpio.c +++ b/archival/cpio.c | |||
@@ -10,10 +10,6 @@ | |||
10 | * Doesn't check CRC's | 10 | * Doesn't check CRC's |
11 | * Only supports new ASCII and CRC formats | 11 | * Only supports new ASCII and CRC formats |
12 | */ | 12 | */ |
13 | #include "libbb.h" | ||
14 | #include "common_bufsiz.h" | ||
15 | #include "bb_archive.h" | ||
16 | |||
17 | //config:config CPIO | 13 | //config:config CPIO |
18 | //config: bool "cpio (14 kb)" | 14 | //config: bool "cpio (14 kb)" |
19 | //config: default y | 15 | //config: default y |
@@ -44,6 +40,7 @@ | |||
44 | //config: Passthrough mode. Rarely used. | 40 | //config: Passthrough mode. Rarely used. |
45 | 41 | ||
46 | //applet:IF_CPIO(APPLET(cpio, BB_DIR_BIN, BB_SUID_DROP)) | 42 | //applet:IF_CPIO(APPLET(cpio, BB_DIR_BIN, BB_SUID_DROP)) |
43 | |||
47 | //kbuild:lib-$(CONFIG_CPIO) += cpio.o | 44 | //kbuild:lib-$(CONFIG_CPIO) += cpio.o |
48 | 45 | ||
49 | //usage:#define cpio_trivial_usage | 46 | //usage:#define cpio_trivial_usage |
@@ -142,6 +139,10 @@ | |||
142 | -u, --unconditional Replace all files unconditionally | 139 | -u, --unconditional Replace all files unconditionally |
143 | */ | 140 | */ |
144 | 141 | ||
142 | #include "libbb.h" | ||
143 | #include "common_bufsiz.h" | ||
144 | #include "bb_archive.h" | ||
145 | |||
145 | enum { | 146 | enum { |
146 | OPT_EXTRACT = (1 << 0), | 147 | OPT_EXTRACT = (1 << 0), |
147 | OPT_TEST = (1 << 1), | 148 | OPT_TEST = (1 << 1), |
diff --git a/archival/dpkg.c b/archival/dpkg.c index 852e0cac2..58bc4dba3 100644 --- a/archival/dpkg.c +++ b/archival/dpkg.c | |||
@@ -25,7 +25,6 @@ | |||
25 | * bugs that need to be fixed | 25 | * bugs that need to be fixed |
26 | * - (unknown, please let me know when you find any) | 26 | * - (unknown, please let me know when you find any) |
27 | */ | 27 | */ |
28 | |||
29 | //config:config DPKG | 28 | //config:config DPKG |
30 | //config: bool "dpkg (44 kb)" | 29 | //config: bool "dpkg (44 kb)" |
31 | //config: default y | 30 | //config: default y |
@@ -38,6 +37,7 @@ | |||
38 | //config: you should use the official dpkg if possible. | 37 | //config: you should use the official dpkg if possible. |
39 | 38 | ||
40 | //applet:IF_DPKG(APPLET(dpkg, BB_DIR_USR_BIN, BB_SUID_DROP)) | 39 | //applet:IF_DPKG(APPLET(dpkg, BB_DIR_USR_BIN, BB_SUID_DROP)) |
40 | |||
41 | //kbuild:lib-$(CONFIG_DPKG) += dpkg.o | 41 | //kbuild:lib-$(CONFIG_DPKG) += dpkg.o |
42 | 42 | ||
43 | //usage:#define dpkg_trivial_usage | 43 | //usage:#define dpkg_trivial_usage |
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c index f6bf9eb04..dc4738d28 100644 --- a/archival/dpkg_deb.c +++ b/archival/dpkg_deb.c | |||
@@ -4,7 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | //config:config DPKG_DEB | 7 | //config:config DPKG_DEB |
9 | //config: bool "dpkg_deb" | 8 | //config: bool "dpkg_deb" |
10 | //config: default y | 9 | //config: default y |
diff --git a/archival/gzip.c b/archival/gzip.c index 9c53895e9..ac6633044 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -36,7 +36,6 @@ a: 85.1% -- replaced with a.gz | |||
36 | gzip: bogus: No such file or directory | 36 | gzip: bogus: No such file or directory |
37 | aa: 85.1% -- replaced with aa.gz | 37 | aa: 85.1% -- replaced with aa.gz |
38 | */ | 38 | */ |
39 | |||
40 | //config:config GZIP | 39 | //config:config GZIP |
41 | //config: bool "gzip (19 kb)" | 40 | //config: bool "gzip (19 kb)" |
42 | //config: default y | 41 | //config: default y |
@@ -81,6 +80,7 @@ aa: 85.1% -- replaced with aa.gz | |||
81 | //config: enabled. | 80 | //config: enabled. |
82 | 81 | ||
83 | //applet:IF_GZIP(APPLET(gzip, BB_DIR_BIN, BB_SUID_DROP)) | 82 | //applet:IF_GZIP(APPLET(gzip, BB_DIR_BIN, BB_SUID_DROP)) |
83 | |||
84 | //kbuild:lib-$(CONFIG_GZIP) += gzip.o | 84 | //kbuild:lib-$(CONFIG_GZIP) += gzip.o |
85 | 85 | ||
86 | //usage:#define gzip_trivial_usage | 86 | //usage:#define gzip_trivial_usage |
diff --git a/archival/lzop.c b/archival/lzop.c index 1bf954f4f..92411c23f 100644 --- a/archival/lzop.c +++ b/archival/lzop.c | |||
@@ -24,7 +24,6 @@ | |||
24 | 24 | ||
25 | "Minimalized" for busybox by Alain Knaff | 25 | "Minimalized" for busybox by Alain Knaff |
26 | */ | 26 | */ |
27 | |||
28 | //config:config LZOP | 27 | //config:config LZOP |
29 | //config: bool "lzop (13 kb)" | 28 | //config: bool "lzop (13 kb)" |
30 | //config: default y | 29 | //config: default y |
@@ -56,6 +55,7 @@ | |||
56 | // APPLET_ODDNAME:name main location suid_type help | 55 | // APPLET_ODDNAME:name main location suid_type help |
57 | //applet:IF_UNLZOP( APPLET_ODDNAME(unlzop, lzop, BB_DIR_USR_BIN, BB_SUID_DROP, unlzop)) | 56 | //applet:IF_UNLZOP( APPLET_ODDNAME(unlzop, lzop, BB_DIR_USR_BIN, BB_SUID_DROP, unlzop)) |
58 | //applet:IF_LZOPCAT(APPLET_ODDNAME(lzopcat, lzop, BB_DIR_USR_BIN, BB_SUID_DROP, lzopcat)) | 57 | //applet:IF_LZOPCAT(APPLET_ODDNAME(lzopcat, lzop, BB_DIR_USR_BIN, BB_SUID_DROP, lzopcat)) |
58 | |||
59 | //kbuild:lib-$(CONFIG_LZOP) += lzop.o | 59 | //kbuild:lib-$(CONFIG_LZOP) += lzop.o |
60 | //kbuild:lib-$(CONFIG_UNLZOP) += lzop.o | 60 | //kbuild:lib-$(CONFIG_UNLZOP) += lzop.o |
61 | //kbuild:lib-$(CONFIG_LZOPCAT) += lzop.o | 61 | //kbuild:lib-$(CONFIG_LZOPCAT) += lzop.o |
diff --git a/archival/tar.c b/archival/tar.c index 6cf3508ec..b6d5129d8 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -22,7 +22,6 @@ | |||
22 | * | 22 | * |
23 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 23 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
24 | */ | 24 | */ |
25 | |||
26 | //config:config TAR | 25 | //config:config TAR |
27 | //config: bool "tar (40 kb)" | 26 | //config: bool "tar (40 kb)" |
28 | //config: default y | 27 | //config: default y |
@@ -113,6 +112,7 @@ | |||
113 | //config: when extracting files from tar archives. | 112 | //config: when extracting files from tar archives. |
114 | 113 | ||
115 | //applet:IF_TAR(APPLET(tar, BB_DIR_BIN, BB_SUID_DROP)) | 114 | //applet:IF_TAR(APPLET(tar, BB_DIR_BIN, BB_SUID_DROP)) |
115 | |||
116 | //kbuild:lib-$(CONFIG_TAR) += tar.o | 116 | //kbuild:lib-$(CONFIG_TAR) += tar.o |
117 | 117 | ||
118 | #include <fnmatch.h> | 118 | #include <fnmatch.h> |
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c index b803e579a..f1c9287b5 100644 --- a/console-tools/dumpkmap.c +++ b/console-tools/dumpkmap.c | |||
@@ -5,7 +5,6 @@ | |||
5 | * Copyright (C) Arne Bernin <arne@matrix.loopback.org> | 5 | * Copyright (C) Arne Bernin <arne@matrix.loopback.org> |
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | * | ||
9 | */ | 8 | */ |
10 | //config:config DUMPKMAP | 9 | //config:config DUMPKMAP |
11 | //config: bool "dumpkmap (1.3 kb)" | 10 | //config: bool "dumpkmap (1.3 kb)" |
diff --git a/console-tools/reset.c b/console-tools/reset.c index 471ef9158..614806ba7 100644 --- a/console-tools/reset.c +++ b/console-tools/reset.c | |||
@@ -7,8 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | /* "Standard" version of this tool is in ncurses package */ | ||
11 | |||
12 | //config:config RESET | 10 | //config:config RESET |
13 | //config: bool "reset (275 bytes)" | 11 | //config: bool "reset (275 bytes)" |
14 | //config: default y | 12 | //config: default y |
@@ -25,6 +23,8 @@ | |||
25 | //usage:#define reset_full_usage "\n\n" | 23 | //usage:#define reset_full_usage "\n\n" |
26 | //usage: "Reset the screen" | 24 | //usage: "Reset the screen" |
27 | 25 | ||
26 | /* "Standard" version of this tool is in ncurses package */ | ||
27 | |||
28 | #include "libbb.h" | 28 | #include "libbb.h" |
29 | 29 | ||
30 | #define ESC "\033" | 30 | #define ESC "\033" |
diff --git a/coreutils/printf.c b/coreutils/printf.c index d1ff183d0..353cfc608 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
@@ -48,7 +48,6 @@ | |||
48 | //applet:IF_PRINTF(APPLET_NOFORK(printf, printf, BB_DIR_USR_BIN, BB_SUID_DROP, printf)) | 48 | //applet:IF_PRINTF(APPLET_NOFORK(printf, printf, BB_DIR_USR_BIN, BB_SUID_DROP, printf)) |
49 | 49 | ||
50 | //kbuild:lib-$(CONFIG_PRINTF) += printf.o | 50 | //kbuild:lib-$(CONFIG_PRINTF) += printf.o |
51 | |||
52 | //kbuild:lib-$(CONFIG_ASH_PRINTF) += printf.o | 51 | //kbuild:lib-$(CONFIG_ASH_PRINTF) += printf.o |
53 | //kbuild:lib-$(CONFIG_HUSH_PRINTF) += printf.o | 52 | //kbuild:lib-$(CONFIG_HUSH_PRINTF) += printf.o |
54 | 53 | ||
diff --git a/coreutils/shuf.c b/coreutils/shuf.c index d0caaa2ce..fdbd3e9b2 100644 --- a/coreutils/shuf.c +++ b/coreutils/shuf.c | |||
@@ -6,16 +6,16 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //config:config SHUF | 9 | //config:config SHUF |
11 | //config: bool "shuf (5.4 kb)" | 10 | //config: bool "shuf (5.4 kb)" |
12 | //config: default y | 11 | //config: default y |
13 | //config: help | 12 | //config: help |
14 | //config: Generate random permutations | 13 | //config: Generate random permutations |
15 | 14 | ||
16 | //kbuild:lib-$(CONFIG_SHUF) += shuf.o | ||
17 | //applet:IF_SHUF(APPLET_NOEXEC(shuf, shuf, BB_DIR_USR_BIN, BB_SUID_DROP, shuf)) | 15 | //applet:IF_SHUF(APPLET_NOEXEC(shuf, shuf, BB_DIR_USR_BIN, BB_SUID_DROP, shuf)) |
18 | 16 | ||
17 | //kbuild:lib-$(CONFIG_SHUF) += shuf.o | ||
18 | |||
19 | //usage:#define shuf_trivial_usage | 19 | //usage:#define shuf_trivial_usage |
20 | //usage: "[-e|-i L-H] [-n NUM] [-o FILE] [-z] [FILE|ARG...]" | 20 | //usage: "[-e|-i L-H] [-n NUM] [-o FILE] [-z] [FILE|ARG...]" |
21 | //usage:#define shuf_full_usage "\n\n" | 21 | //usage:#define shuf_full_usage "\n\n" |
diff --git a/editors/awk.c b/editors/awk.c index 2005329ad..d40c7816a 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //config:config AWK | 9 | //config:config AWK |
11 | //config: bool "awk (22 kb)" | 10 | //config: bool "awk (22 kb)" |
12 | //config: default y | 11 | //config: default y |
diff --git a/editors/cmp.c b/editors/cmp.c index ec86c0ce2..2a410fdec 100644 --- a/editors/cmp.c +++ b/editors/cmp.c | |||
@@ -6,10 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | /* BB_AUDIT SUSv3 (virtually) compliant -- uses nicer GNU format for -l. */ | ||
11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */ | ||
12 | |||
13 | //config:config CMP | 9 | //config:config CMP |
14 | //config: bool "cmp (5.4 kb)" | 10 | //config: bool "cmp (5.4 kb)" |
15 | //config: default y | 11 | //config: default y |
@@ -17,10 +13,10 @@ | |||
17 | //config: cmp is used to compare two files and returns the result | 13 | //config: cmp is used to compare two files and returns the result |
18 | //config: to standard output. | 14 | //config: to standard output. |
19 | 15 | ||
20 | //kbuild:lib-$(CONFIG_CMP) += cmp.o | ||
21 | |||
22 | //applet:IF_CMP(APPLET(cmp, BB_DIR_USR_BIN, BB_SUID_DROP)) | 16 | //applet:IF_CMP(APPLET(cmp, BB_DIR_USR_BIN, BB_SUID_DROP)) |
23 | 17 | ||
18 | //kbuild:lib-$(CONFIG_CMP) += cmp.o | ||
19 | |||
24 | //usage:#define cmp_trivial_usage | 20 | //usage:#define cmp_trivial_usage |
25 | //usage: "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]" | 21 | //usage: "[-l] [-s] FILE1 [FILE2" IF_DESKTOP(" [SKIP1 [SKIP2]]") "]" |
26 | //usage:#define cmp_full_usage "\n\n" | 22 | //usage:#define cmp_full_usage "\n\n" |
@@ -29,6 +25,9 @@ | |||
29 | //usage: "\n for all differing bytes" | 25 | //usage: "\n for all differing bytes" |
30 | //usage: "\n -s Quiet" | 26 | //usage: "\n -s Quiet" |
31 | 27 | ||
28 | /* BB_AUDIT SUSv3 (virtually) compliant -- uses nicer GNU format for -l. */ | ||
29 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */ | ||
30 | |||
32 | #include "libbb.h" | 31 | #include "libbb.h" |
33 | 32 | ||
34 | static const char fmt_eof[] ALIGN1 = "cmp: EOF on %s\n"; | 33 | static const char fmt_eof[] ALIGN1 = "cmp: EOF on %s\n"; |
diff --git a/editors/diff.c b/editors/diff.c index 2f254575c..1462a9b18 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -12,7 +12,6 @@ | |||
12 | * | 12 | * |
13 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 13 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
14 | */ | 14 | */ |
15 | |||
16 | /* | 15 | /* |
17 | * The following code uses an algorithm due to Harold Stone, | 16 | * The following code uses an algorithm due to Harold Stone, |
18 | * which finds a pair of longest identical subsequences in | 17 | * which finds a pair of longest identical subsequences in |
@@ -75,7 +74,6 @@ | |||
75 | * 3*(number of k-candidates installed), typically about | 74 | * 3*(number of k-candidates installed), typically about |
76 | * 6n words for files of length n. | 75 | * 6n words for files of length n. |
77 | */ | 76 | */ |
78 | |||
79 | //config:config DIFF | 77 | //config:config DIFF |
80 | //config: bool "diff (13 kb)" | 78 | //config: bool "diff (13 kb)" |
81 | //config: default y | 79 | //config: default y |
@@ -97,10 +95,10 @@ | |||
97 | //config: This option enables support for directory and subdirectory | 95 | //config: This option enables support for directory and subdirectory |
98 | //config: comparison. | 96 | //config: comparison. |
99 | 97 | ||
100 | //kbuild:lib-$(CONFIG_DIFF) += diff.o | ||
101 | |||
102 | //applet:IF_DIFF(APPLET(diff, BB_DIR_USR_BIN, BB_SUID_DROP)) | 98 | //applet:IF_DIFF(APPLET(diff, BB_DIR_USR_BIN, BB_SUID_DROP)) |
103 | 99 | ||
100 | //kbuild:lib-$(CONFIG_DIFF) += diff.o | ||
101 | |||
104 | //usage:#define diff_trivial_usage | 102 | //usage:#define diff_trivial_usage |
105 | //usage: "[-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2" | 103 | //usage: "[-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2" |
106 | //usage:#define diff_full_usage "\n\n" | 104 | //usage:#define diff_full_usage "\n\n" |
diff --git a/editors/patch.c b/editors/patch.c index 81316fae3..a51b7a502 100644 --- a/editors/patch.c +++ b/editors/patch.c | |||
@@ -21,7 +21,6 @@ | |||
21 | * -F fuzz (number, default 2) | 21 | * -F fuzz (number, default 2) |
22 | * [file] which file to patch | 22 | * [file] which file to patch |
23 | */ | 23 | */ |
24 | |||
25 | //config:config PATCH | 24 | //config:config PATCH |
26 | //config: bool "patch (9.1 kb)" | 25 | //config: bool "patch (9.1 kb)" |
27 | //config: default y | 26 | //config: default y |
diff --git a/editors/sed.c b/editors/sed.c index 7ed9937d2..9d800c2c3 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -12,7 +12,6 @@ | |||
12 | * | 12 | * |
13 | * Licensed under GPLv2, see file LICENSE in this source tree. | 13 | * Licensed under GPLv2, see file LICENSE in this source tree. |
14 | */ | 14 | */ |
15 | |||
16 | /* Code overview. | 15 | /* Code overview. |
17 | * | 16 | * |
18 | * Files are laid out to avoid unnecessary function declarations. So for | 17 | * Files are laid out to avoid unnecessary function declarations. So for |
@@ -29,7 +28,6 @@ | |||
29 | * | 28 | * |
30 | * sed_main() is where external code calls into this, with a command line. | 29 | * sed_main() is where external code calls into this, with a command line. |
31 | */ | 30 | */ |
32 | |||
33 | /* Supported features and commands in this version of sed: | 31 | /* Supported features and commands in this version of sed: |
34 | * | 32 | * |
35 | * - comments ('#') | 33 | * - comments ('#') |
@@ -55,7 +53,6 @@ | |||
55 | * http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html | 53 | * http://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html |
56 | * http://sed.sourceforge.net/sedfaq3.html | 54 | * http://sed.sourceforge.net/sedfaq3.html |
57 | */ | 55 | */ |
58 | |||
59 | //config:config SED | 56 | //config:config SED |
60 | //config: bool "sed (12 kb)" | 57 | //config: bool "sed (12 kb)" |
61 | //config: default y | 58 | //config: default y |
@@ -63,10 +60,10 @@ | |||
63 | //config: sed is used to perform text transformations on a file | 60 | //config: sed is used to perform text transformations on a file |
64 | //config: or input from a pipeline. | 61 | //config: or input from a pipeline. |
65 | 62 | ||
66 | //kbuild:lib-$(CONFIG_SED) += sed.o | ||
67 | |||
68 | //applet:IF_SED(APPLET(sed, BB_DIR_BIN, BB_SUID_DROP)) | 63 | //applet:IF_SED(APPLET(sed, BB_DIR_BIN, BB_SUID_DROP)) |
69 | 64 | ||
65 | //kbuild:lib-$(CONFIG_SED) += sed.o | ||
66 | |||
70 | //usage:#define sed_trivial_usage | 67 | //usage:#define sed_trivial_usage |
71 | //usage: "[-i[SFX]] [-nrE] [-f FILE]... [-e CMD]... [FILE]...\n" | 68 | //usage: "[-i[SFX]] [-nrE] [-f FILE]... [-e CMD]... [FILE]...\n" |
72 | //usage: "or: sed [-i[SFX]] [-nrE] CMD [FILE]..." | 69 | //usage: "or: sed [-i[SFX]] [-nrE] CMD [FILE]..." |
diff --git a/editors/vi.c b/editors/vi.c index c010f7999..60c73c0eb 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -5,7 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | |||
9 | /* | 8 | /* |
10 | * Things To Do: | 9 | * Things To Do: |
11 | * EXINIT | 10 | * EXINIT |
@@ -19,7 +18,6 @@ | |||
19 | * ":r !cmd" and "!cmd" to filter text through an external command | 18 | * ":r !cmd" and "!cmd" to filter text through an external command |
20 | * An "ex" line oriented mode- maybe using "cmdedit" | 19 | * An "ex" line oriented mode- maybe using "cmdedit" |
21 | */ | 20 | */ |
22 | |||
23 | //config:config VI | 21 | //config:config VI |
24 | //config: bool "vi (22 kb)" | 22 | //config: bool "vi (22 kb)" |
25 | //config: default y | 23 | //config: default y |
diff --git a/findutils/find.c b/findutils/find.c index 5857a3f44..d9a42b3c6 100644 --- a/findutils/find.c +++ b/findutils/find.c | |||
@@ -9,7 +9,6 @@ | |||
9 | * | 9 | * |
10 | * Licensed under GPLv2, see file LICENSE in this source tree. | 10 | * Licensed under GPLv2, see file LICENSE in this source tree. |
11 | */ | 11 | */ |
12 | |||
13 | /* findutils-4.1.20: | 12 | /* findutils-4.1.20: |
14 | * | 13 | * |
15 | * # find file.txt -exec 'echo {}' '{} {}' ';' | 14 | * # find file.txt -exec 'echo {}' '{} {}' ';' |
@@ -44,7 +43,6 @@ | |||
44 | * # find t z t z '(' -name '*t*' -o -name '*z*' ')' -o -print | 43 | * # find t z t z '(' -name '*t*' -o -name '*z*' ')' -o -print |
45 | * (no output) | 44 | * (no output) |
46 | */ | 45 | */ |
47 | |||
48 | /* Testing script | 46 | /* Testing script |
49 | * ./busybox find "$@" | tee /tmp/bb_find | 47 | * ./busybox find "$@" | tee /tmp/bb_find |
50 | * echo ================== | 48 | * echo ================== |
@@ -52,7 +50,6 @@ | |||
52 | * echo ================== | 50 | * echo ================== |
53 | * diff -u /tmp/std_find /tmp/bb_find && echo Identical | 51 | * diff -u /tmp/std_find /tmp/bb_find && echo Identical |
54 | */ | 52 | */ |
55 | |||
56 | //config:config FIND | 53 | //config:config FIND |
57 | //config: bool "find (14 kb)" | 54 | //config: bool "find (14 kb)" |
58 | //config: default y | 55 | //config: default y |
diff --git a/findutils/grep.c b/findutils/grep.c index 7c5f73d2f..f72175afb 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -17,7 +17,6 @@ | |||
17 | * | 17 | * |
18 | * (C) 2006 Jac Goudsmit added -o option | 18 | * (C) 2006 Jac Goudsmit added -o option |
19 | */ | 19 | */ |
20 | |||
21 | //config:config GREP | 20 | //config:config GREP |
22 | //config: bool "grep (8.5 kb)" | 21 | //config: bool "grep (8.5 kb)" |
23 | //config: default y | 22 | //config: default y |
diff --git a/init/bootchartd.c b/init/bootchartd.c index b5dd17439..373cde2d8 100644 --- a/init/bootchartd.c +++ b/init/bootchartd.c | |||
@@ -2,11 +2,6 @@ | |||
2 | /* | 2 | /* |
3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | //applet:IF_BOOTCHARTD(APPLET(bootchartd, BB_DIR_SBIN, BB_SUID_DROP)) | ||
7 | |||
8 | //kbuild:lib-$(CONFIG_BOOTCHARTD) += bootchartd.o | ||
9 | |||
10 | //config:config BOOTCHARTD | 5 | //config:config BOOTCHARTD |
11 | //config: bool "bootchartd (10 kb)" | 6 | //config: bool "bootchartd (10 kb)" |
12 | //config: default y | 7 | //config: default y |
@@ -46,6 +41,10 @@ | |||
46 | //config: Enable reading and parsing of $PWD/bootchartd.conf | 41 | //config: Enable reading and parsing of $PWD/bootchartd.conf |
47 | //config: and /etc/bootchartd.conf files. | 42 | //config: and /etc/bootchartd.conf files. |
48 | 43 | ||
44 | //applet:IF_BOOTCHARTD(APPLET(bootchartd, BB_DIR_SBIN, BB_SUID_DROP)) | ||
45 | |||
46 | //kbuild:lib-$(CONFIG_BOOTCHARTD) += bootchartd.o | ||
47 | |||
49 | #include "libbb.h" | 48 | #include "libbb.h" |
50 | #include "common_bufsiz.h" | 49 | #include "common_bufsiz.h" |
51 | /* After libbb.h, since it needs sys/types.h on some systems */ | 50 | /* After libbb.h, since it needs sys/types.h on some systems */ |
diff --git a/init/halt.c b/init/halt.c index 632c6cc56..c6c857f08 100644 --- a/init/halt.c +++ b/init/halt.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //config:config HALT | 9 | //config:config HALT |
11 | //config: bool "halt (3.7 kb)" | 10 | //config: bool "halt (3.7 kb)" |
12 | //config: default y | 11 | //config: default y |
diff --git a/init/init.c b/init/init.c index ab137a981..64e5c3e0b 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | //config:config INIT | 11 | //config:config INIT |
13 | //config: bool "init (9.3 kb)" | 12 | //config: bool "init (9.3 kb)" |
14 | //config: default y | 13 | //config: default y |
diff --git a/libbb/u_signal_names.c b/libbb/u_signal_names.c index b82a706d8..b3038e32d 100644 --- a/libbb/u_signal_names.c +++ b/libbb/u_signal_names.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //config:config FEATURE_RTMINMAX | 9 | //config:config FEATURE_RTMINMAX |
11 | //config: bool "Support RTMIN[+n] and RTMAX[-n] signal names" | 10 | //config: bool "Support RTMIN[+n] and RTMAX[-n] signal names" |
12 | //config: default y | 11 | //config: default y |
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c index adef2328d..ec11b30ca 100644 --- a/loginutils/addgroup.c +++ b/loginutils/addgroup.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * Copyright (C) 2007 by Tito Ragusa <farmatito@tiscali.it> | 7 | * Copyright (C) 2007 by Tito Ragusa <farmatito@tiscali.it> |
8 | * | 8 | * |
9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | * | ||
11 | */ | 10 | */ |
12 | //config:config ADDGROUP | 11 | //config:config ADDGROUP |
13 | //config: bool "addgroup (8.2 kb)" | 12 | //config: bool "addgroup (8.2 kb)" |
diff --git a/miscutils/beep.c b/miscutils/beep.c index b9b62f79b..0c8a8225e 100644 --- a/miscutils/beep.c +++ b/miscutils/beep.c | |||
@@ -5,7 +5,6 @@ | |||
5 | * Copyright (C) 2009 Bernhard Reutner-Fischer | 5 | * Copyright (C) 2009 Bernhard Reutner-Fischer |
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | * | ||
9 | */ | 8 | */ |
10 | //config:config BEEP | 9 | //config:config BEEP |
11 | //config: bool "beep (3 kb)" | 10 | //config: bool "beep (3 kb)" |
diff --git a/miscutils/less.c b/miscutils/less.c index c6c158a51..82092f600 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | /* | 9 | /* |
11 | * TODO: | 10 | * TODO: |
12 | * - Add more regular expression support - search modifiers, certain matches, etc. | 11 | * - Add more regular expression support - search modifiers, certain matches, etc. |
@@ -20,7 +19,6 @@ | |||
20 | * - the inp file pointer is used so that keyboard input works after | 19 | * - the inp file pointer is used so that keyboard input works after |
21 | * redirected input has been read from stdin | 20 | * redirected input has been read from stdin |
22 | */ | 21 | */ |
23 | |||
24 | //config:config LESS | 22 | //config:config LESS |
25 | //config: bool "less (15 kb)" | 23 | //config: bool "less (15 kb)" |
26 | //config: default y | 24 | //config: default y |
diff --git a/miscutils/nandwrite.c b/miscutils/nandwrite.c index 80a005821..72f028ed3 100644 --- a/miscutils/nandwrite.c +++ b/miscutils/nandwrite.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * TODO: add support for large (>4GB) MTD devices | 8 | * TODO: add support for large (>4GB) MTD devices |
9 | */ | 9 | */ |
10 | |||
11 | //config:config NANDWRITE | 10 | //config:config NANDWRITE |
12 | //config: bool "nandwrite (5.9 kb)" | 11 | //config: bool "nandwrite (5.9 kb)" |
13 | //config: default y | 12 | //config: default y |
diff --git a/miscutils/raidautorun.c b/miscutils/raidautorun.c index caf6e0821..d315c2734 100644 --- a/miscutils/raidautorun.c +++ b/miscutils/raidautorun.c | |||
@@ -5,7 +5,6 @@ | |||
5 | * Copyright (C) 2006 Bernhard Reutner-Fischer | 5 | * Copyright (C) 2006 Bernhard Reutner-Fischer |
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | * | ||
9 | */ | 8 | */ |
10 | //config:config RAIDAUTORUN | 9 | //config:config RAIDAUTORUN |
11 | //config: bool "raidautorun (1.4 kb)" | 10 | //config: bool "raidautorun (1.4 kb)" |
diff --git a/miscutils/rfkill.c b/miscutils/rfkill.c index 546928402..ae38c182d 100644 --- a/miscutils/rfkill.c +++ b/miscutils/rfkill.c | |||
@@ -1,12 +1,11 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * rfkill implementation for busybox | 3 | * rfkill implementation for busybox |
4 | * | 4 | * |
5 | * Copyright (C) 2010 Malek Degachi <malek-degachi@laposte.net> | 5 | * Copyright (C) 2010 Malek Degachi <malek-degachi@laposte.net> |
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //config:config RFKILL | 9 | //config:config RFKILL |
11 | //config: bool "rfkill (5.3 kb)" | 10 | //config: bool "rfkill (5.3 kb)" |
12 | //config: default n # doesn't build on Ubuntu 9.04 | 11 | //config: default n # doesn't build on Ubuntu 9.04 |
diff --git a/miscutils/setserial.c b/miscutils/setserial.c index f217c3beb..fd88ed106 100644 --- a/miscutils/setserial.c +++ b/miscutils/setserial.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | //config:config SETSERIAL | 10 | //config:config SETSERIAL |
12 | //config: bool "setserial (6.6 kb)" | 11 | //config: bool "setserial (6.6 kb)" |
13 | //config: default y | 12 | //config: default y |
diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c index d142d1144..1ef8fd90e 100644 --- a/miscutils/ubi_tools.c +++ b/miscutils/ubi_tools.c | |||
@@ -2,7 +2,6 @@ | |||
2 | * | 2 | * |
3 | * Licensed under GPLv2, see file LICENSE in this source tree. | 3 | * Licensed under GPLv2, see file LICENSE in this source tree. |
4 | */ | 4 | */ |
5 | |||
6 | //config:config UBIATTACH | 5 | //config:config UBIATTACH |
7 | //config: bool "ubiattach (4.7 kb)" | 6 | //config: bool "ubiattach (4.7 kb)" |
8 | //config: default y | 7 | //config: default y |
diff --git a/networking/hostname.c b/networking/hostname.c index d87f6562f..8e3238d99 100644 --- a/networking/hostname.c +++ b/networking/hostname.c | |||
@@ -9,7 +9,6 @@ | |||
9 | * | 9 | * |
10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
11 | */ | 11 | */ |
12 | |||
13 | //config:config HOSTNAME | 12 | //config:config HOSTNAME |
14 | //config: bool "hostname (5.6 kb)" | 13 | //config: bool "hostname (5.6 kb)" |
15 | //config: default y | 14 | //config: default y |
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index c2cfe82ec..5521e8a5a 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -16,7 +16,6 @@ | |||
16 | * | 16 | * |
17 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 17 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
18 | */ | 18 | */ |
19 | |||
20 | //config:config IFUP | 19 | //config:config IFUP |
21 | //config: bool "ifup (17 kb)" | 20 | //config: bool "ifup (17 kb)" |
22 | //config: default y | 21 | //config: default y |
diff --git a/networking/nameif.c b/networking/nameif.c index 1f2695495..91d50536a 100644 --- a/networking/nameif.c +++ b/networking/nameif.c | |||
@@ -9,7 +9,6 @@ | |||
9 | * | 9 | * |
10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 10 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
11 | */ | 11 | */ |
12 | |||
13 | //config:config NAMEIF | 12 | //config:config NAMEIF |
14 | //config: bool "nameif (6.6 kb)" | 13 | //config: bool "nameif (6.6 kb)" |
15 | //config: default y | 14 | //config: default y |
diff --git a/networking/nbd-client.c b/networking/nbd-client.c index cf1857231..bedb01a1c 100644 --- a/networking/nbd-client.c +++ b/networking/nbd-client.c | |||
@@ -3,20 +3,20 @@ | |||
3 | * | 3 | * |
4 | * Licensed under GPLv2, see file LICENSE in this source tree. | 4 | * Licensed under GPLv2, see file LICENSE in this source tree. |
5 | */ | 5 | */ |
6 | #include "libbb.h" | ||
7 | #include <netinet/tcp.h> | ||
8 | #include <linux/fs.h> | ||
9 | |||
10 | //applet:IF_NBDCLIENT(APPLET_NOEXEC(nbd-client, nbdclient, BB_DIR_USR_SBIN, BB_SUID_DROP, nbdclient)) | ||
11 | |||
12 | //kbuild:lib-$(CONFIG_NBDCLIENT) += nbd-client.o | ||
13 | |||
14 | //config:config NBDCLIENT | 6 | //config:config NBDCLIENT |
15 | //config: bool "nbd-client (4.6 kb)" | 7 | //config: bool "nbd-client (4.6 kb)" |
16 | //config: default y | 8 | //config: default y |
17 | //config: help | 9 | //config: help |
18 | //config: Network block device client | 10 | //config: Network block device client |
19 | 11 | ||
12 | //applet:IF_NBDCLIENT(APPLET_NOEXEC(nbd-client, nbdclient, BB_DIR_USR_SBIN, BB_SUID_DROP, nbdclient)) | ||
13 | |||
14 | //kbuild:lib-$(CONFIG_NBDCLIENT) += nbd-client.o | ||
15 | |||
16 | #include "libbb.h" | ||
17 | #include <netinet/tcp.h> | ||
18 | #include <linux/fs.h> | ||
19 | |||
20 | #define NBD_SET_SOCK _IO(0xab, 0) | 20 | #define NBD_SET_SOCK _IO(0xab, 0) |
21 | #define NBD_SET_BLKSIZE _IO(0xab, 1) | 21 | #define NBD_SET_BLKSIZE _IO(0xab, 1) |
22 | #define NBD_SET_SIZE _IO(0xab, 2) | 22 | #define NBD_SET_SIZE _IO(0xab, 2) |
diff --git a/networking/ping.c b/networking/ping.c index 7460e4414..774f8f3e0 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -24,28 +24,6 @@ | |||
24 | * This version is an adaptation of ping.c from busybox. | 24 | * This version is an adaptation of ping.c from busybox. |
25 | * The code was modified by Bart Visscher <magick@linux-fan.com> | 25 | * The code was modified by Bart Visscher <magick@linux-fan.com> |
26 | */ | 26 | */ |
27 | |||
28 | #include <net/if.h> | ||
29 | #include <netinet/ip_icmp.h> | ||
30 | #include "libbb.h" | ||
31 | #include "common_bufsiz.h" | ||
32 | |||
33 | #ifdef __BIONIC__ | ||
34 | /* should be in netinet/ip_icmp.h */ | ||
35 | # define ICMP_DEST_UNREACH 3 /* Destination Unreachable */ | ||
36 | # define ICMP_SOURCE_QUENCH 4 /* Source Quench */ | ||
37 | # define ICMP_REDIRECT 5 /* Redirect (change route) */ | ||
38 | # define ICMP_ECHO 8 /* Echo Request */ | ||
39 | # define ICMP_TIME_EXCEEDED 11 /* Time Exceeded */ | ||
40 | # define ICMP_PARAMETERPROB 12 /* Parameter Problem */ | ||
41 | # define ICMP_TIMESTAMP 13 /* Timestamp Request */ | ||
42 | # define ICMP_TIMESTAMPREPLY 14 /* Timestamp Reply */ | ||
43 | # define ICMP_INFO_REQUEST 15 /* Information Request */ | ||
44 | # define ICMP_INFO_REPLY 16 /* Information Reply */ | ||
45 | # define ICMP_ADDRESS 17 /* Address Mask Request */ | ||
46 | # define ICMP_ADDRESSREPLY 18 /* Address Mask Reply */ | ||
47 | #endif | ||
48 | |||
49 | //config:config PING | 27 | //config:config PING |
50 | //config: bool "ping (9.5 kb)" | 28 | //config: bool "ping (9.5 kb)" |
51 | //config: default y | 29 | //config: default y |
@@ -136,6 +114,27 @@ | |||
136 | //usage: "1 packets transmitted, 1 packets received, 0% packet loss\n" | 114 | //usage: "1 packets transmitted, 1 packets received, 0% packet loss\n" |
137 | //usage: "round-trip min/avg/max = 20.1/20.1/20.1 ms\n" | 115 | //usage: "round-trip min/avg/max = 20.1/20.1/20.1 ms\n" |
138 | 116 | ||
117 | #include <net/if.h> | ||
118 | #include <netinet/ip_icmp.h> | ||
119 | #include "libbb.h" | ||
120 | #include "common_bufsiz.h" | ||
121 | |||
122 | #ifdef __BIONIC__ | ||
123 | /* should be in netinet/ip_icmp.h */ | ||
124 | # define ICMP_DEST_UNREACH 3 /* Destination Unreachable */ | ||
125 | # define ICMP_SOURCE_QUENCH 4 /* Source Quench */ | ||
126 | # define ICMP_REDIRECT 5 /* Redirect (change route) */ | ||
127 | # define ICMP_ECHO 8 /* Echo Request */ | ||
128 | # define ICMP_TIME_EXCEEDED 11 /* Time Exceeded */ | ||
129 | # define ICMP_PARAMETERPROB 12 /* Parameter Problem */ | ||
130 | # define ICMP_TIMESTAMP 13 /* Timestamp Request */ | ||
131 | # define ICMP_TIMESTAMPREPLY 14 /* Timestamp Reply */ | ||
132 | # define ICMP_INFO_REQUEST 15 /* Information Request */ | ||
133 | # define ICMP_INFO_REPLY 16 /* Information Reply */ | ||
134 | # define ICMP_ADDRESS 17 /* Address Mask Request */ | ||
135 | # define ICMP_ADDRESSREPLY 18 /* Address Mask Reply */ | ||
136 | #endif | ||
137 | |||
139 | #if ENABLE_PING6 | 138 | #if ENABLE_PING6 |
140 | # include <netinet/icmp6.h> | 139 | # include <netinet/icmp6.h> |
141 | /* I see RENUMBERED constants in bits/in.h - !!? | 140 | /* I see RENUMBERED constants in bits/in.h - !!? |
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index 849ca1388..714555fa8 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * | 8 | * |
9 | * Licensed under GPLv2, see file LICENSE in this source tree. | 9 | * Licensed under GPLv2, see file LICENSE in this source tree. |
10 | */ | 10 | */ |
11 | |||
12 | //config:config UDHCPC6 | 11 | //config:config UDHCPC6 |
13 | //config: bool "udhcpc6" | 12 | //config: bool "udhcpc6" |
14 | //config: default n # not yet ready | 13 | //config: default n # not yet ready |
diff --git a/networking/vconfig.c b/networking/vconfig.c index 62a483865..8548c8c3b 100644 --- a/networking/vconfig.c +++ b/networking/vconfig.c | |||
@@ -6,9 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | /* BB_AUDIT SUSv3 N/A */ | ||
11 | |||
12 | //config:config VCONFIG | 9 | //config:config VCONFIG |
13 | //config: bool "vconfig (2.5 kb)" | 10 | //config: bool "vconfig (2.5 kb)" |
14 | //config: default y | 11 | //config: default y |
@@ -34,6 +31,8 @@ | |||
34 | #include "libbb.h" | 31 | #include "libbb.h" |
35 | #include <net/if.h> | 32 | #include <net/if.h> |
36 | 33 | ||
34 | /* BB_AUDIT SUSv3 N/A */ | ||
35 | |||
37 | /* Stuff from linux/if_vlan.h, kernel version 2.4.23 */ | 36 | /* Stuff from linux/if_vlan.h, kernel version 2.4.23 */ |
38 | enum vlan_ioctl_cmds { | 37 | enum vlan_ioctl_cmds { |
39 | ADD_VLAN_CMD, | 38 | ADD_VLAN_CMD, |
diff --git a/networking/wget.c b/networking/wget.c index e1b40d3fd..d1d85230c 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * Copyright (C) 2010 Bradley M. Kuhn <bkuhn@ebb.org> | 8 | * Copyright (C) 2010 Bradley M. Kuhn <bkuhn@ebb.org> |
9 | * Kuhn's copyrights are licensed GPLv2-or-later. File as a whole remains GPLv2. | 9 | * Kuhn's copyrights are licensed GPLv2-or-later. File as a whole remains GPLv2. |
10 | */ | 10 | */ |
11 | |||
12 | //config:config WGET | 11 | //config:config WGET |
13 | //config: bool "wget (35 kb)" | 12 | //config: bool "wget (35 kb)" |
14 | //config: default y | 13 | //config: default y |
diff --git a/networking/whois.c b/networking/whois.c index fd1cdf43e..f0ec86301 100644 --- a/networking/whois.c +++ b/networking/whois.c | |||
@@ -9,7 +9,6 @@ | |||
9 | * Add ipv6 support | 9 | * Add ipv6 support |
10 | * Add proxy support | 10 | * Add proxy support |
11 | */ | 11 | */ |
12 | |||
13 | //config:config WHOIS | 12 | //config:config WHOIS |
14 | //config: bool "whois (6.6 kb)" | 13 | //config: bool "whois (6.6 kb)" |
15 | //config: default y | 14 | //config: default y |
diff --git a/procps/iostat.c b/procps/iostat.c index fbf685568..8fb4594da 100644 --- a/procps/iostat.c +++ b/procps/iostat.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //config:config IOSTAT | 9 | //config:config IOSTAT |
11 | //config: bool "iostat (7.4 kb)" | 10 | //config: bool "iostat (7.4 kb)" |
12 | //config: default y | 11 | //config: default y |
diff --git a/procps/lsof.c b/procps/lsof.c index 8d3a23cc8..4917cf899 100644 --- a/procps/lsof.c +++ b/procps/lsof.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //config:config LSOF | 9 | //config:config LSOF |
11 | //config: bool "lsof (3.6 kb)" | 10 | //config: bool "lsof (3.6 kb)" |
12 | //config: default y | 11 | //config: default y |
diff --git a/procps/mpstat.c b/procps/mpstat.c index acaff4dc0..7ead1fa7d 100644 --- a/procps/mpstat.c +++ b/procps/mpstat.c | |||
@@ -6,18 +6,17 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //applet:IF_MPSTAT(APPLET(mpstat, BB_DIR_BIN, BB_SUID_DROP)) | ||
11 | /* shouldn't be noexec: "mpstat INTERVAL" runs indefinitely */ | ||
12 | |||
13 | //kbuild:lib-$(CONFIG_MPSTAT) += mpstat.o | ||
14 | |||
15 | //config:config MPSTAT | 9 | //config:config MPSTAT |
16 | //config: bool "mpstat (10 kb)" | 10 | //config: bool "mpstat (10 kb)" |
17 | //config: default y | 11 | //config: default y |
18 | //config: help | 12 | //config: help |
19 | //config: Per-processor statistics | 13 | //config: Per-processor statistics |
20 | 14 | ||
15 | //applet:IF_MPSTAT(APPLET(mpstat, BB_DIR_BIN, BB_SUID_DROP)) | ||
16 | /* shouldn't be noexec: "mpstat INTERVAL" runs indefinitely */ | ||
17 | |||
18 | //kbuild:lib-$(CONFIG_MPSTAT) += mpstat.o | ||
19 | |||
21 | #include "libbb.h" | 20 | #include "libbb.h" |
22 | #include <sys/utsname.h> /* struct utsname */ | 21 | #include <sys/utsname.h> /* struct utsname */ |
23 | 22 | ||
diff --git a/procps/nmeter.c b/procps/nmeter.c index 9463f94dc..166c8ab18 100644 --- a/procps/nmeter.c +++ b/procps/nmeter.c | |||
@@ -5,7 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Contact me: vda.linux@googlemail.com | 6 | * Contact me: vda.linux@googlemail.com |
7 | */ | 7 | */ |
8 | |||
9 | //config:config NMETER | 8 | //config:config NMETER |
10 | //config: bool "nmeter (10 kb)" | 9 | //config: bool "nmeter (10 kb)" |
11 | //config: default y | 10 | //config: default y |
diff --git a/procps/pmap.c b/procps/pmap.c index 5c2d1ad59..c8fa0d280 100644 --- a/procps/pmap.c +++ b/procps/pmap.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * Licensed under GPLv2 or later, see the LICENSE file in this source tree | 7 | * Licensed under GPLv2 or later, see the LICENSE file in this source tree |
8 | * for details. | 8 | * for details. |
9 | */ | 9 | */ |
10 | |||
11 | //config:config PMAP | 10 | //config:config PMAP |
12 | //config: bool "pmap (6 kb)" | 11 | //config: bool "pmap (6 kb)" |
13 | //config: default y | 12 | //config: default y |
@@ -15,6 +14,7 @@ | |||
15 | //config: Display processes' memory mappings. | 14 | //config: Display processes' memory mappings. |
16 | 15 | ||
17 | //applet:IF_PMAP(APPLET(pmap, BB_DIR_USR_BIN, BB_SUID_DROP)) | 16 | //applet:IF_PMAP(APPLET(pmap, BB_DIR_USR_BIN, BB_SUID_DROP)) |
17 | |||
18 | //kbuild:lib-$(CONFIG_PMAP) += pmap.o | 18 | //kbuild:lib-$(CONFIG_PMAP) += pmap.o |
19 | 19 | ||
20 | //usage:#define pmap_trivial_usage | 20 | //usage:#define pmap_trivial_usage |
diff --git a/procps/pwdx.c b/procps/pwdx.c index c72cf804a..6009e2aa3 100644 --- a/procps/pwdx.c +++ b/procps/pwdx.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | //config:config PWDX | 10 | //config:config PWDX |
12 | //config: bool "pwdx (3.5 kb)" | 11 | //config: bool "pwdx (3.5 kb)" |
13 | //config: default y | 12 | //config: default y |
diff --git a/procps/smemcap.c b/procps/smemcap.c index c15fef1c3..81f4cafad 100644 --- a/procps/smemcap.c +++ b/procps/smemcap.c | |||
@@ -7,11 +7,6 @@ | |||
7 | the GNU General Public License version 2 or later, incorporated | 7 | the GNU General Public License version 2 or later, incorporated |
8 | herein by reference. | 8 | herein by reference. |
9 | */ | 9 | */ |
10 | |||
11 | //applet:IF_SMEMCAP(APPLET(smemcap, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
12 | |||
13 | //kbuild:lib-$(CONFIG_SMEMCAP) += smemcap.o | ||
14 | |||
15 | //config:config SMEMCAP | 10 | //config:config SMEMCAP |
16 | //config: bool "smemcap (2.5 kb)" | 11 | //config: bool "smemcap (2.5 kb)" |
17 | //config: default y | 12 | //config: default y |
@@ -19,6 +14,10 @@ | |||
19 | //config: smemcap is a tool for capturing process data for smem, | 14 | //config: smemcap is a tool for capturing process data for smem, |
20 | //config: a memory usage statistic tool. | 15 | //config: a memory usage statistic tool. |
21 | 16 | ||
17 | //applet:IF_SMEMCAP(APPLET(smemcap, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
18 | |||
19 | //kbuild:lib-$(CONFIG_SMEMCAP) += smemcap.o | ||
20 | |||
22 | #include "libbb.h" | 21 | #include "libbb.h" |
23 | #include "bb_archive.h" | 22 | #include "bb_archive.h" |
24 | 23 | ||
diff --git a/procps/watch.c b/procps/watch.c index e58fd1f11..420e6d3d1 100644 --- a/procps/watch.c +++ b/procps/watch.c | |||
@@ -7,10 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | /* BB_AUDIT SUSv3 N/A */ | ||
12 | /* BB_AUDIT GNU defects -- only option -n is supported. */ | ||
13 | |||
14 | //config:config WATCH | 10 | //config:config WATCH |
15 | //config: bool "watch (4.1 kb)" | 11 | //config: bool "watch (4.1 kb)" |
16 | //config: default y | 12 | //config: default y |
@@ -35,6 +31,9 @@ | |||
35 | //usage: "Mon Dec 17 10:31:42 GMT 2000\n" | 31 | //usage: "Mon Dec 17 10:31:42 GMT 2000\n" |
36 | //usage: "Mon Dec 17 10:31:44 GMT 2000" | 32 | //usage: "Mon Dec 17 10:31:44 GMT 2000" |
37 | 33 | ||
34 | /* BB_AUDIT SUSv3 N/A */ | ||
35 | /* BB_AUDIT GNU defects -- only option -n is supported. */ | ||
36 | |||
38 | #include "libbb.h" | 37 | #include "libbb.h" |
39 | 38 | ||
40 | #define ESC "\033" | 39 | #define ESC "\033" |
diff --git a/runit/svlogd.c b/runit/svlogd.c index 739483356..dfd7e38a0 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c | |||
@@ -123,7 +123,6 @@ log message, you can use a pattern like this instead | |||
123 | 123 | ||
124 | -*: *: pid * | 124 | -*: *: pid * |
125 | */ | 125 | */ |
126 | |||
127 | //config:config SVLOGD | 126 | //config:config SVLOGD |
128 | //config: bool "svlogd (15 kb)" | 127 | //config: bool "svlogd (15 kb)" |
129 | //config: default y | 128 | //config: default y |
diff --git a/shell/cttyhack.c b/shell/cttyhack.c index 849fe9e48..ec1b6c429 100644 --- a/shell/cttyhack.c +++ b/shell/cttyhack.c | |||
@@ -4,12 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | #include "libbb.h" | ||
8 | |||
9 | //applet:IF_CTTYHACK(APPLET_NOEXEC(cttyhack, cttyhack, BB_DIR_BIN, BB_SUID_DROP, cttyhack)) | ||
10 | |||
11 | //kbuild:lib-$(CONFIG_CTTYHACK) += cttyhack.o | ||
12 | |||
13 | //config:config CTTYHACK | 7 | //config:config CTTYHACK |
14 | //config: bool "cttyhack (2.5 kb)" | 8 | //config: bool "cttyhack (2.5 kb)" |
15 | //config: default y | 9 | //config: default y |
@@ -54,6 +48,10 @@ | |||
54 | //config: | 48 | //config: |
55 | //config: # getty 115200 $(cttyhack) | 49 | //config: # getty 115200 $(cttyhack) |
56 | 50 | ||
51 | //applet:IF_CTTYHACK(APPLET_NOEXEC(cttyhack, cttyhack, BB_DIR_BIN, BB_SUID_DROP, cttyhack)) | ||
52 | |||
53 | //kbuild:lib-$(CONFIG_CTTYHACK) += cttyhack.o | ||
54 | |||
57 | //usage:#define cttyhack_trivial_usage | 55 | //usage:#define cttyhack_trivial_usage |
58 | //usage: "[PROG ARGS]" | 56 | //usage: "[PROG ARGS]" |
59 | //usage:#define cttyhack_full_usage "\n\n" | 57 | //usage:#define cttyhack_full_usage "\n\n" |
@@ -65,6 +63,8 @@ | |||
65 | //usage: "\nStarting interactive shell from boot shell script:" | 63 | //usage: "\nStarting interactive shell from boot shell script:" |
66 | //usage: "\n setsid cttyhack sh" | 64 | //usage: "\n setsid cttyhack sh" |
67 | 65 | ||
66 | #include "libbb.h" | ||
67 | |||
68 | #if !defined(__linux__) && !defined(TIOCGSERIAL) && !ENABLE_WERROR | 68 | #if !defined(__linux__) && !defined(TIOCGSERIAL) && !ENABLE_WERROR |
69 | # warning cttyhack will not be able to detect a controlling tty on this system | 69 | # warning cttyhack will not be able to detect a controlling tty on this system |
70 | #endif | 70 | #endif |
diff --git a/util-linux/fallocate.c b/util-linux/fallocate.c index 1a02a322f..8542586dc 100644 --- a/util-linux/fallocate.c +++ b/util-linux/fallocate.c | |||
@@ -4,7 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | //config:config FALLOCATE | 7 | //config:config FALLOCATE |
9 | //config: bool "fallocate (5 kb)" | 8 | //config: bool "fallocate (5 kb)" |
10 | //config: default y | 9 | //config: default y |
diff --git a/util-linux/fsfreeze.c b/util-linux/fsfreeze.c index 2e2257337..c485810aa 100644 --- a/util-linux/fsfreeze.c +++ b/util-linux/fsfreeze.c | |||
@@ -4,7 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Licensed under GPLv2, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | |||
8 | //config:config FSFREEZE | 7 | //config:config FSFREEZE |
9 | //config: bool "fsfreeze (3.6 kb)" | 8 | //config: bool "fsfreeze (3.6 kb)" |
10 | //config: default y | 9 | //config: default y |
diff --git a/util-linux/fstrim.c b/util-linux/fstrim.c index 4acfa567a..205d1e42b 100644 --- a/util-linux/fstrim.c +++ b/util-linux/fstrim.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | //config:config FSTRIM | 10 | //config:config FSTRIM |
12 | //config: bool "fstrim (5.5 kb)" | 11 | //config: bool "fstrim (5.5 kb)" |
13 | //config: default y | 12 | //config: default y |
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index 8acc4d21d..4b4eeafba 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -7,7 +7,6 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | |||
11 | //config:config MDEV | 10 | //config:config MDEV |
12 | //config: bool "mdev (16 kb)" | 11 | //config: bool "mdev (16 kb)" |
13 | //config: default y | 12 | //config: default y |
diff --git a/util-linux/mesg.c b/util-linux/mesg.c index 91c05317e..35c4ec13d 100644 --- a/util-linux/mesg.c +++ b/util-linux/mesg.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //config:config MESG | 9 | //config:config MESG |
11 | //config: bool "mesg (1.2 kb)" | 10 | //config: bool "mesg (1.2 kb)" |
12 | //config: default y | 11 | //config: default y |
diff --git a/util-linux/nsenter.c b/util-linux/nsenter.c index d91b0b509..c6933c8d5 100644 --- a/util-linux/nsenter.c +++ b/util-linux/nsenter.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * | 6 | * |
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | |||
10 | //config:config NSENTER | 9 | //config:config NSENTER |
11 | //config: bool "nsenter (8.6 kb)" | 10 | //config: bool "nsenter (8.6 kb)" |
12 | //config: default y | 11 | //config: default y |
diff --git a/util-linux/rdev.c b/util-linux/rdev.c index 7eb7413a8..97279ce61 100644 --- a/util-linux/rdev.c +++ b/util-linux/rdev.c | |||
@@ -6,7 +6,6 @@ | |||
6 | * Grant Erickson <gerickson@nuovations.com> | 6 | * Grant Erickson <gerickson@nuovations.com> |
7 | * | 7 | * |
8 | * Licensed under GPLv2, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2, see file LICENSE in this source tree. |
9 | * | ||
10 | */ | 9 | */ |
11 | //config:config RDEV | 10 | //config:config RDEV |
12 | //config: bool "rdev (1.4 kb)" | 11 | //config: bool "rdev (1.4 kb)" |
diff --git a/util-linux/taskset.c b/util-linux/taskset.c index 401a1bcb7..67df1cb73 100644 --- a/util-linux/taskset.c +++ b/util-linux/taskset.c | |||
@@ -5,7 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | |||
9 | //config:config TASKSET | 8 | //config:config TASKSET |
10 | //config: bool "taskset (4.1 kb)" | 9 | //config: bool "taskset (4.1 kb)" |
11 | //config: default y | 10 | //config: default y |
@@ -23,6 +22,7 @@ | |||
23 | //config: in this case. Otherwise, it is limited to sizeof(long). | 22 | //config: in this case. Otherwise, it is limited to sizeof(long). |
24 | 23 | ||
25 | //applet:IF_TASKSET(APPLET_NOEXEC(taskset, taskset, BB_DIR_USR_BIN, BB_SUID_DROP, taskset)) | 24 | //applet:IF_TASKSET(APPLET_NOEXEC(taskset, taskset, BB_DIR_USR_BIN, BB_SUID_DROP, taskset)) |
25 | |||
26 | //kbuild:lib-$(CONFIG_TASKSET) += taskset.o | 26 | //kbuild:lib-$(CONFIG_TASKSET) += taskset.o |
27 | 27 | ||
28 | //usage:#define taskset_trivial_usage | 28 | //usage:#define taskset_trivial_usage |
diff --git a/util-linux/volume_id/bcache.c b/util-linux/volume_id/bcache.c index 334a341c3..085c158db 100644 --- a/util-linux/volume_id/bcache.c +++ b/util-linux/volume_id/bcache.c | |||
@@ -7,14 +7,13 @@ | |||
7 | * Based on code fragments from bcache-tools by Kent Overstreet: | 7 | * Based on code fragments from bcache-tools by Kent Overstreet: |
8 | * http://evilpiepirate.org/git/bcache-tools.git | 8 | * http://evilpiepirate.org/git/bcache-tools.git |
9 | */ | 9 | */ |
10 | |||
11 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_BCACHE) += bcache.o | ||
12 | |||
13 | //config:config FEATURE_VOLUMEID_BCACHE | 10 | //config:config FEATURE_VOLUMEID_BCACHE |
14 | //config: bool "bcache filesystem" | 11 | //config: bool "bcache filesystem" |
15 | //config: default y | 12 | //config: default y |
16 | //config: depends on VOLUMEID | 13 | //config: depends on VOLUMEID |
17 | 14 | ||
15 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_BCACHE) += bcache.o | ||
16 | |||
18 | #include "volume_id_internal.h" | 17 | #include "volume_id_internal.h" |
19 | 18 | ||
20 | #define SB_LABEL_SIZE 32 | 19 | #define SB_LABEL_SIZE 32 |
diff --git a/util-linux/volume_id/btrfs.c b/util-linux/volume_id/btrfs.c index 338a48762..a3ddf9782 100644 --- a/util-linux/volume_id/btrfs.c +++ b/util-linux/volume_id/btrfs.c | |||
@@ -18,14 +18,13 @@ | |||
18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | */ | 20 | */ |
21 | |||
22 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_BTRFS) += btrfs.o | ||
23 | |||
24 | //config:config FEATURE_VOLUMEID_BTRFS | 21 | //config:config FEATURE_VOLUMEID_BTRFS |
25 | //config: bool "btrfs filesystem" | 22 | //config: bool "btrfs filesystem" |
26 | //config: default y | 23 | //config: default y |
27 | //config: depends on VOLUMEID | 24 | //config: depends on VOLUMEID |
28 | 25 | ||
26 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_BTRFS) += btrfs.o | ||
27 | |||
29 | #include "volume_id_internal.h" | 28 | #include "volume_id_internal.h" |
30 | 29 | ||
31 | #define BTRFS_UUID_SIZE 16 | 30 | #define BTRFS_UUID_SIZE 16 |
diff --git a/util-linux/volume_id/cramfs.c b/util-linux/volume_id/cramfs.c index c63223e2b..3468a5005 100644 --- a/util-linux/volume_id/cramfs.c +++ b/util-linux/volume_id/cramfs.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_CRAMFS) += cramfs.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_CRAMFS | 20 | //config:config FEATURE_VOLUMEID_CRAMFS |
24 | //config: bool "cramfs filesystem" | 21 | //config: bool "cramfs filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_CRAMFS) += cramfs.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct cramfs_super { | 29 | struct cramfs_super { |
diff --git a/util-linux/volume_id/exfat.c b/util-linux/volume_id/exfat.c index 14bf9d691..952b027d9 100644 --- a/util-linux/volume_id/exfat.c +++ b/util-linux/volume_id/exfat.c | |||
@@ -17,9 +17,6 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_EXFAT) += exfat.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_EXFAT | 20 | //config:config FEATURE_VOLUMEID_EXFAT |
24 | //config: bool "exFAT filesystem" | 21 | //config: bool "exFAT filesystem" |
25 | //config: default y | 22 | //config: default y |
@@ -29,6 +26,8 @@ | |||
29 | //config: for flash drives. It has many features from NTFS, but with less | 26 | //config: for flash drives. It has many features from NTFS, but with less |
30 | //config: overhead. exFAT is used on most SDXC cards for consumer electronics. | 27 | //config: overhead. exFAT is used on most SDXC cards for consumer electronics. |
31 | 28 | ||
29 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_EXFAT) += exfat.o | ||
30 | |||
32 | #include "volume_id_internal.h" | 31 | #include "volume_id_internal.h" |
33 | 32 | ||
34 | #define EXFAT_SB_OFFSET 0 | 33 | #define EXFAT_SB_OFFSET 0 |
diff --git a/util-linux/volume_id/ext.c b/util-linux/volume_id/ext.c index 473b3229a..f17faddb6 100644 --- a/util-linux/volume_id/ext.c +++ b/util-linux/volume_id/ext.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_EXT) += ext.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_EXT | 20 | //config:config FEATURE_VOLUMEID_EXT |
24 | //config: bool "Ext filesystem" | 21 | //config: bool "Ext filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_EXT) += ext.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | #include "bb_e2fs_defs.h" | 28 | #include "bb_e2fs_defs.h" |
30 | 29 | ||
diff --git a/util-linux/volume_id/f2fs.c b/util-linux/volume_id/f2fs.c index 3027f178e..e6100aec2 100644 --- a/util-linux/volume_id/f2fs.c +++ b/util-linux/volume_id/f2fs.c | |||
@@ -5,9 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Licensed under GPLv2, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | |||
9 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_F2FS) += f2fs.o | ||
10 | |||
11 | //config:config FEATURE_VOLUMEID_F2FS | 8 | //config:config FEATURE_VOLUMEID_F2FS |
12 | //config: bool "f2fs filesystem" | 9 | //config: bool "f2fs filesystem" |
13 | //config: default y | 10 | //config: default y |
@@ -18,6 +15,8 @@ | |||
18 | //config: known issues of the older log structured file systems, such as high | 15 | //config: known issues of the older log structured file systems, such as high |
19 | //config: cleaning overhead. | 16 | //config: cleaning overhead. |
20 | 17 | ||
18 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_F2FS) += f2fs.o | ||
19 | |||
21 | #include "volume_id_internal.h" | 20 | #include "volume_id_internal.h" |
22 | 21 | ||
23 | #define F2FS_MAGIC 0xF2F52010 // F2FS Magic Number | 22 | #define F2FS_MAGIC 0xF2F52010 // F2FS Magic Number |
diff --git a/util-linux/volume_id/fat.c b/util-linux/volume_id/fat.c index bc3433daf..b24ed098e 100644 --- a/util-linux/volume_id/fat.c +++ b/util-linux/volume_id/fat.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_FAT) += fat.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_FAT | 20 | //config:config FEATURE_VOLUMEID_FAT |
24 | //config: bool "fat filesystem" | 21 | //config: bool "fat filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_FAT) += fat.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | /* linux/msdos_fs.h says: */ | 29 | /* linux/msdos_fs.h says: */ |
diff --git a/util-linux/volume_id/hfs.c b/util-linux/volume_id/hfs.c index 78dae0790..05d16db34 100644 --- a/util-linux/volume_id/hfs.c +++ b/util-linux/volume_id/hfs.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_HFS) += hfs.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_HFS | 20 | //config:config FEATURE_VOLUMEID_HFS |
24 | //config: bool "hfs filesystem" | 21 | //config: bool "hfs filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_HFS) += hfs.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct hfs_finder_info{ | 29 | struct hfs_finder_info{ |
diff --git a/util-linux/volume_id/iso9660.c b/util-linux/volume_id/iso9660.c index 23072f87c..c771b01f5 100644 --- a/util-linux/volume_id/iso9660.c +++ b/util-linux/volume_id/iso9660.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_ISO9660) += iso9660.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_ISO9660 | 20 | //config:config FEATURE_VOLUMEID_ISO9660 |
24 | //config: bool "iso9660 filesystem" | 21 | //config: bool "iso9660 filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_ISO9660) += iso9660.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | #define ISO_SUPERBLOCK_OFFSET 0x8000 | 29 | #define ISO_SUPERBLOCK_OFFSET 0x8000 |
diff --git a/util-linux/volume_id/jfs.c b/util-linux/volume_id/jfs.c index 543d90fe5..5e523e236 100644 --- a/util-linux/volume_id/jfs.c +++ b/util-linux/volume_id/jfs.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_JFS) += jfs.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_JFS | 20 | //config:config FEATURE_VOLUMEID_JFS |
24 | //config: bool "jfs filesystem" | 21 | //config: bool "jfs filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_JFS) += jfs.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct jfs_super_block { | 29 | struct jfs_super_block { |
diff --git a/util-linux/volume_id/linux_raid.c b/util-linux/volume_id/linux_raid.c index 0db6e8662..db6209a4d 100644 --- a/util-linux/volume_id/linux_raid.c +++ b/util-linux/volume_id/linux_raid.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LINUXRAID) += linux_raid.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_LINUXRAID | 20 | //config:config FEATURE_VOLUMEID_LINUXRAID |
24 | //config: bool "linuxraid" | 21 | //config: bool "linuxraid" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LINUXRAID) += linux_raid.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct mdp_super_block { | 29 | struct mdp_super_block { |
diff --git a/util-linux/volume_id/linux_swap.c b/util-linux/volume_id/linux_swap.c index a35769dfc..78b339cf0 100644 --- a/util-linux/volume_id/linux_swap.c +++ b/util-linux/volume_id/linux_swap.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LINUXSWAP) += linux_swap.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_LINUXSWAP | 20 | //config:config FEATURE_VOLUMEID_LINUXSWAP |
24 | //config: bool "linux swap filesystem" | 21 | //config: bool "linux swap filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LINUXSWAP) += linux_swap.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct swap_header_v1_2 { | 29 | struct swap_header_v1_2 { |
diff --git a/util-linux/volume_id/luks.c b/util-linux/volume_id/luks.c index 4b80b7a6d..8e634d4ee 100644 --- a/util-linux/volume_id/luks.c +++ b/util-linux/volume_id/luks.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LUKS) += luks.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_LUKS | 20 | //config:config FEATURE_VOLUMEID_LUKS |
24 | //config: bool "luks filesystem" | 21 | //config: bool "luks filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_LUKS) += luks.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | #define LUKS_MAGIC_L 6 | 29 | #define LUKS_MAGIC_L 6 |
diff --git a/util-linux/volume_id/nilfs.c b/util-linux/volume_id/nilfs.c index 9d6c57fba..7a8b798df 100644 --- a/util-linux/volume_id/nilfs.c +++ b/util-linux/volume_id/nilfs.c | |||
@@ -18,9 +18,6 @@ | |||
18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | */ | 20 | */ |
21 | |||
22 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_NILFS) += nilfs.o | ||
23 | |||
24 | //config:config FEATURE_VOLUMEID_NILFS | 21 | //config:config FEATURE_VOLUMEID_NILFS |
25 | //config: bool "nilfs filesystem" | 22 | //config: bool "nilfs filesystem" |
26 | //config: default y | 23 | //config: default y |
@@ -37,6 +34,8 @@ | |||
37 | //config: filesystem for Linux desktop environment, or as a basis of advanced | 34 | //config: filesystem for Linux desktop environment, or as a basis of advanced |
38 | //config: storage appliances. | 35 | //config: storage appliances. |
39 | 36 | ||
37 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_NILFS) += nilfs.o | ||
38 | |||
40 | #include "volume_id_internal.h" | 39 | #include "volume_id_internal.h" |
41 | 40 | ||
42 | #define NILFS_UUID_SIZE 16 | 41 | #define NILFS_UUID_SIZE 16 |
diff --git a/util-linux/volume_id/ntfs.c b/util-linux/volume_id/ntfs.c index bf85f7ed3..22dd77fc7 100644 --- a/util-linux/volume_id/ntfs.c +++ b/util-linux/volume_id/ntfs.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_NTFS) += ntfs.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_NTFS | 20 | //config:config FEATURE_VOLUMEID_NTFS |
24 | //config: bool "ntfs filesystem" | 21 | //config: bool "ntfs filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_NTFS) += ntfs.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct ntfs_super_block { | 29 | struct ntfs_super_block { |
diff --git a/util-linux/volume_id/ocfs2.c b/util-linux/volume_id/ocfs2.c index 2dedac98b..235968b88 100644 --- a/util-linux/volume_id/ocfs2.c +++ b/util-linux/volume_id/ocfs2.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_OCFS2) += ocfs2.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_OCFS2 | 20 | //config:config FEATURE_VOLUMEID_OCFS2 |
24 | //config: bool "ocfs2 filesystem" | 21 | //config: bool "ocfs2 filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_OCFS2) += ocfs2.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | /* All these values are taken from ocfs2-tools's ocfs2_fs.h */ | 29 | /* All these values are taken from ocfs2-tools's ocfs2_fs.h */ |
diff --git a/util-linux/volume_id/reiserfs.c b/util-linux/volume_id/reiserfs.c index 369d4d9bb..d9fd8944d 100644 --- a/util-linux/volume_id/reiserfs.c +++ b/util-linux/volume_id/reiserfs.c | |||
@@ -18,14 +18,13 @@ | |||
18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | */ | 20 | */ |
21 | |||
22 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_REISERFS) += reiserfs.o | ||
23 | |||
24 | //config:config FEATURE_VOLUMEID_REISERFS | 21 | //config:config FEATURE_VOLUMEID_REISERFS |
25 | //config: bool "Reiser filesystem" | 22 | //config: bool "Reiser filesystem" |
26 | //config: default y | 23 | //config: default y |
27 | //config: depends on VOLUMEID | 24 | //config: depends on VOLUMEID |
28 | 25 | ||
26 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_REISERFS) += reiserfs.o | ||
27 | |||
29 | #include "volume_id_internal.h" | 28 | #include "volume_id_internal.h" |
30 | 29 | ||
31 | struct reiserfs_super_block { | 30 | struct reiserfs_super_block { |
diff --git a/util-linux/volume_id/romfs.c b/util-linux/volume_id/romfs.c index 95a65f9ef..bd74fda8d 100644 --- a/util-linux/volume_id/romfs.c +++ b/util-linux/volume_id/romfs.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_ROMFS) += romfs.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_ROMFS | 20 | //config:config FEATURE_VOLUMEID_ROMFS |
24 | //config: bool "romfs filesystem" | 21 | //config: bool "romfs filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_ROMFS) += romfs.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct romfs_super { | 29 | struct romfs_super { |
diff --git a/util-linux/volume_id/squashfs.c b/util-linux/volume_id/squashfs.c index e3ffce35e..4b65afd8b 100644 --- a/util-linux/volume_id/squashfs.c +++ b/util-linux/volume_id/squashfs.c | |||
@@ -5,9 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Licensed under GPLv2, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | |||
9 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_SQUASHFS) += squashfs.o | ||
10 | |||
11 | //config:config FEATURE_VOLUMEID_SQUASHFS | 8 | //config:config FEATURE_VOLUMEID_SQUASHFS |
12 | //config: bool "SquashFS filesystem" | 9 | //config: bool "SquashFS filesystem" |
13 | //config: default y | 10 | //config: default y |
@@ -18,6 +15,8 @@ | |||
18 | //config: device/memory systems (e.g. embedded systems) where low overhead is | 15 | //config: device/memory systems (e.g. embedded systems) where low overhead is |
19 | //config: needed. | 16 | //config: needed. |
20 | 17 | ||
18 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_SQUASHFS) += squashfs.o | ||
19 | |||
21 | #include "volume_id_internal.h" | 20 | #include "volume_id_internal.h" |
22 | 21 | ||
23 | struct squashfs_superblock { | 22 | struct squashfs_superblock { |
diff --git a/util-linux/volume_id/sysv.c b/util-linux/volume_id/sysv.c index cd4cd906b..be41f8048 100644 --- a/util-linux/volume_id/sysv.c +++ b/util-linux/volume_id/sysv.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_SYSV) += sysv.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_SYSV | 20 | //config:config FEATURE_VOLUMEID_SYSV |
24 | //config: bool "sysv filesystem" | 21 | //config: bool "sysv filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_SYSV) += sysv.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | #define SYSV_NICINOD 100 | 29 | #define SYSV_NICINOD 100 |
diff --git a/util-linux/volume_id/ubifs.c b/util-linux/volume_id/ubifs.c index 7512b84b0..aee53f9dd 100644 --- a/util-linux/volume_id/ubifs.c +++ b/util-linux/volume_id/ubifs.c | |||
@@ -5,9 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Licensed under GPLv2, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | |||
9 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_UBIFS) += ubifs.o | ||
10 | |||
11 | //config:config FEATURE_VOLUMEID_UBIFS | 8 | //config:config FEATURE_VOLUMEID_UBIFS |
12 | //config: bool "UBIFS filesystem" | 9 | //config: bool "UBIFS filesystem" |
13 | //config: default y | 10 | //config: default y |
@@ -16,6 +13,8 @@ | |||
16 | //config: UBIFS (Unsorted Block Image File System) is a file | 13 | //config: UBIFS (Unsorted Block Image File System) is a file |
17 | //config: system for use with raw flash memory media. | 14 | //config: system for use with raw flash memory media. |
18 | 15 | ||
16 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_UBIFS) += ubifs.o | ||
17 | |||
19 | #include "volume_id_internal.h" | 18 | #include "volume_id_internal.h" |
20 | 19 | ||
21 | #define UBIFS_NODE_MAGIC 0x06101831 | 20 | #define UBIFS_NODE_MAGIC 0x06101831 |
diff --git a/util-linux/volume_id/udf.c b/util-linux/volume_id/udf.c index fa5dccee7..0df4a86df 100644 --- a/util-linux/volume_id/udf.c +++ b/util-linux/volume_id/udf.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_UDF) += udf.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_UDF | 20 | //config:config FEATURE_VOLUMEID_UDF |
24 | //config: bool "udf filesystem" | 21 | //config: bool "udf filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_UDF) += udf.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct volume_descriptor { | 29 | struct volume_descriptor { |
diff --git a/util-linux/volume_id/unused_highpoint.c b/util-linux/volume_id/unused_highpoint.c index 4afa6d927..1d5ceb787 100644 --- a/util-linux/volume_id/unused_highpoint.c +++ b/util-linux/volume_id/unused_highpoint.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_HIGHPOINTRAID) += highpoint.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_HIGHPOINTRAID | 20 | //config:### config FEATURE_VOLUMEID_HIGHPOINTRAID |
24 | //config:### bool "highpoint raid" | 21 | //config:### bool "highpoint raid" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_HIGHPOINTRAID) += highpoint.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct hpt37x_meta { | 29 | struct hpt37x_meta { |
diff --git a/util-linux/volume_id/unused_hpfs.c b/util-linux/volume_id/unused_hpfs.c index 3e16dedbd..26fefd415 100644 --- a/util-linux/volume_id/unused_hpfs.c +++ b/util-linux/volume_id/unused_hpfs.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_HPFS) += hpfs.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_HPFS | 20 | //config:### config FEATURE_VOLUMEID_HPFS |
24 | //config:### bool "hpfs filesystem" | 21 | //config:### bool "hpfs filesystem" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_HPFS) += hpfs.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct hpfs_super { | 29 | struct hpfs_super { |
diff --git a/util-linux/volume_id/unused_isw_raid.c b/util-linux/volume_id/unused_isw_raid.c index fba99be58..f7b3eec74 100644 --- a/util-linux/volume_id/unused_isw_raid.c +++ b/util-linux/volume_id/unused_isw_raid.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_ISWRAID) += isw_raid.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_ISWRAID | 20 | //config:### config FEATURE_VOLUMEID_ISWRAID |
24 | //config:### bool "intel raid" | 21 | //config:### bool "intel raid" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_ISWRAID) += isw_raid.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct isw_meta { | 29 | struct isw_meta { |
diff --git a/util-linux/volume_id/unused_lsi_raid.c b/util-linux/volume_id/unused_lsi_raid.c index 9dd2b409c..12dabea87 100644 --- a/util-linux/volume_id/unused_lsi_raid.c +++ b/util-linux/volume_id/unused_lsi_raid.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_LSIRAID) += lsi_raid.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_LSIRAID | 20 | //config:### config FEATURE_VOLUMEID_LSIRAID |
24 | //config:### bool "lsi raid" | 21 | //config:### bool "lsi raid" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_LSIRAID) += lsi_raid.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct lsi_meta { | 29 | struct lsi_meta { |
diff --git a/util-linux/volume_id/unused_lvm.c b/util-linux/volume_id/unused_lvm.c index 5ad6d585c..649306c85 100644 --- a/util-linux/volume_id/unused_lvm.c +++ b/util-linux/volume_id/unused_lvm.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_LVM) += lvm.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_LVM | 20 | //config:### config FEATURE_VOLUMEID_LVM |
24 | //config:### bool "lvm" | 21 | //config:### bool "lvm" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_LVM) += lvm.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct lvm1_super_block { | 29 | struct lvm1_super_block { |
diff --git a/util-linux/volume_id/unused_mac.c b/util-linux/volume_id/unused_mac.c index 997d330a4..a0d253e92 100644 --- a/util-linux/volume_id/unused_mac.c +++ b/util-linux/volume_id/unused_mac.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_MAC) += mac.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_MAC | 20 | //config:### config FEATURE_VOLUMEID_MAC |
24 | //config:### bool "mac filesystem" | 21 | //config:### bool "mac filesystem" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_MAC) += mac.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct mac_driver_desc { | 29 | struct mac_driver_desc { |
diff --git a/util-linux/volume_id/unused_msdos.c b/util-linux/volume_id/unused_msdos.c index f84c0f06f..baa14c552 100644 --- a/util-linux/volume_id/unused_msdos.c +++ b/util-linux/volume_id/unused_msdos.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_MSDOS) += msdos.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_MSDOS | 20 | //config:### config FEATURE_VOLUMEID_MSDOS |
24 | //config:### bool "msdos filesystem" | 21 | //config:### bool "msdos filesystem" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_MSDOS) += msdos.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct msdos_partition_entry { | 29 | struct msdos_partition_entry { |
diff --git a/util-linux/volume_id/unused_nvidia_raid.c b/util-linux/volume_id/unused_nvidia_raid.c index dfb54fa9d..e8217b402 100644 --- a/util-linux/volume_id/unused_nvidia_raid.c +++ b/util-linux/volume_id/unused_nvidia_raid.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_NVIDIARAID) += nvidia_raid.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_NVIDIARAID | 20 | //config:### config FEATURE_VOLUMEID_NVIDIARAID |
24 | //config:### bool "nvidia raid" | 21 | //config:### bool "nvidia raid" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_NVIDIARAID) += nvidia_raid.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct nvidia_meta { | 29 | struct nvidia_meta { |
diff --git a/util-linux/volume_id/unused_promise_raid.c b/util-linux/volume_id/unused_promise_raid.c index d594de39c..c4a6f502a 100644 --- a/util-linux/volume_id/unused_promise_raid.c +++ b/util-linux/volume_id/unused_promise_raid.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_PROMISERAID) += promise_raid.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_PROMISERAID | 20 | //config:### config FEATURE_VOLUMEID_PROMISERAID |
24 | //config:### bool "promise raid" | 21 | //config:### bool "promise raid" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_PROMISERAID) += promise_raid.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct promise_meta { | 29 | struct promise_meta { |
diff --git a/util-linux/volume_id/unused_silicon_raid.c b/util-linux/volume_id/unused_silicon_raid.c index 886721b61..ea96dc98a 100644 --- a/util-linux/volume_id/unused_silicon_raid.c +++ b/util-linux/volume_id/unused_silicon_raid.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_SILICONRAID) += silicon_raid.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_SILICONRAID | 20 | //config:### config FEATURE_VOLUMEID_SILICONRAID |
24 | //config:### bool "silicon raid" | 21 | //config:### bool "silicon raid" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_SILICONRAID) += silicon_raid.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct silicon_meta { | 29 | struct silicon_meta { |
diff --git a/util-linux/volume_id/unused_ufs.c b/util-linux/volume_id/unused_ufs.c index 78ef26ad4..c36793a68 100644 --- a/util-linux/volume_id/unused_ufs.c +++ b/util-linux/volume_id/unused_ufs.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_UFS) += ufs.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_UFS | 20 | //config:### config FEATURE_VOLUMEID_UFS |
24 | //config:### bool "ufs filesystem" | 21 | //config:### bool "ufs filesystem" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_UFS) += ufs.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct ufs_super_block { | 29 | struct ufs_super_block { |
diff --git a/util-linux/volume_id/unused_via_raid.c b/util-linux/volume_id/unused_via_raid.c index f82626655..c77c8393c 100644 --- a/util-linux/volume_id/unused_via_raid.c +++ b/util-linux/volume_id/unused_via_raid.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_VIARAID) += via_raid.o | ||
22 | |||
23 | //config:### config FEATURE_VOLUMEID_VIARAID | 20 | //config:### config FEATURE_VOLUMEID_VIARAID |
24 | //config:### bool "via raid" | 21 | //config:### bool "via raid" |
25 | //config:### default y | 22 | //config:### default y |
26 | //config:### depends on VOLUMEID | 23 | //config:### depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:### lib-$(CONFIG_FEATURE_VOLUMEID_VIARAID) += via_raid.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct via_meta { | 29 | struct via_meta { |
diff --git a/util-linux/volume_id/xfs.c b/util-linux/volume_id/xfs.c index 656d5bfcf..f98b66a53 100644 --- a/util-linux/volume_id/xfs.c +++ b/util-linux/volume_id/xfs.c | |||
@@ -17,14 +17,13 @@ | |||
17 | * License along with this library; if not, write to the Free Software | 17 | * License along with this library; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | */ | 19 | */ |
20 | |||
21 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_XFS) += xfs.o | ||
22 | |||
23 | //config:config FEATURE_VOLUMEID_XFS | 20 | //config:config FEATURE_VOLUMEID_XFS |
24 | //config: bool "xfs filesystem" | 21 | //config: bool "xfs filesystem" |
25 | //config: default y | 22 | //config: default y |
26 | //config: depends on VOLUMEID | 23 | //config: depends on VOLUMEID |
27 | 24 | ||
25 | //kbuild:lib-$(CONFIG_FEATURE_VOLUMEID_XFS) += xfs.o | ||
26 | |||
28 | #include "volume_id_internal.h" | 27 | #include "volume_id_internal.h" |
29 | 28 | ||
30 | struct xfs_super_block { | 29 | struct xfs_super_block { |
diff --git a/util-linux/wall.c b/util-linux/wall.c index e214d8c3f..939736592 100644 --- a/util-linux/wall.c +++ b/util-linux/wall.c | |||
@@ -5,7 +5,6 @@ | |||
5 | * | 5 | * |
6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 6 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
7 | */ | 7 | */ |
8 | |||
9 | //config:config WALL | 8 | //config:config WALL |
10 | //config: bool "wall (2.5 kb)" | 9 | //config: bool "wall (2.5 kb)" |
11 | //config: default y | 10 | //config: default y |