diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 14:46:56 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-23 14:46:56 +0100 |
commit | af3f42011628585cd5c8f5c1fd4b43f2e370a23d (patch) | |
tree | 125ee16d5080008fcf459ad55d91af1dcd488ef9 /coreutils/wc.c | |
parent | 5b966c6180c139fba6846d632fd9bc0c34a8e1bc (diff) | |
download | busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.gz busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.tar.bz2 busybox-w32-af3f42011628585cd5c8f5c1fd4b43f2e370a23d.zip |
Convert all coreutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/wc.c')
-rw-r--r-- | coreutils/wc.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/coreutils/wc.c b/coreutils/wc.c index a410e407a..73837141e 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.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 compliant. */ | ||
11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/wc.html */ | ||
12 | |||
13 | /* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) | 9 | /* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) |
14 | * | 10 | * |
15 | * Rewritten to fix a number of problems and do some size optimizations. | 11 | * Rewritten to fix a number of problems and do some size optimizations. |
@@ -36,6 +32,27 @@ | |||
36 | * | 32 | * |
37 | * for which 'wc -c' should output '0'. | 33 | * for which 'wc -c' should output '0'. |
38 | */ | 34 | */ |
35 | //config:config WC | ||
36 | //config: bool "wc" | ||
37 | //config: default y | ||
38 | //config: help | ||
39 | //config: wc is used to print the number of bytes, words, and lines, | ||
40 | //config: in specified files. | ||
41 | //config: | ||
42 | //config:config FEATURE_WC_LARGE | ||
43 | //config: bool "Support very large files in wc" | ||
44 | //config: default y | ||
45 | //config: depends on WC | ||
46 | //config: help | ||
47 | //config: Use "unsigned long long" in wc for counter variables. | ||
48 | |||
49 | //applet:IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
50 | |||
51 | //kbuild:lib-$(CONFIG_WC) += wc.o | ||
52 | |||
53 | /* BB_AUDIT SUSv3 compliant. */ | ||
54 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/wc.html */ | ||
55 | |||
39 | #include "libbb.h" | 56 | #include "libbb.h" |
40 | #include "unicode.h" | 57 | #include "unicode.h" |
41 | 58 | ||