aboutsummaryrefslogtreecommitdiff
path: root/coreutils/head.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 14:46:56 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-23 14:46:56 +0100
commitaf3f42011628585cd5c8f5c1fd4b43f2e370a23d (patch)
tree125ee16d5080008fcf459ad55d91af1dcd488ef9 /coreutils/head.c
parent5b966c6180c139fba6846d632fd9bc0c34a8e1bc (diff)
downloadbusybox-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/head.c')
-rw-r--r--coreutils/head.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/coreutils/head.c b/coreutils/head.c
index 9388b026a..176e91e3a 100644
--- a/coreutils/head.c
+++ b/coreutils/head.c
@@ -6,13 +6,28 @@
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//config:config HEAD
10//config: bool "head"
11//config: default y
12//config: help
13//config: head is used to print the first specified number of lines
14//config: from files.
15//config:
16//config:config FEATURE_FANCY_HEAD
17//config: bool "Enable head options (-c, -q, and -v)"
18//config: default y
19//config: depends on HEAD
20//config: help
21//config: This enables the head options (-c, -q, and -v).
22
23//applet:IF_HEAD(APPLET_NOEXEC(head, head, BB_DIR_USR_BIN, BB_SUID_DROP, head))
24
25//kbuild:lib-$(CONFIG_HEAD) += head.o
9 26
10/* BB_AUDIT SUSv3 compliant */ 27/* BB_AUDIT SUSv3 compliant */
11/* BB_AUDIT GNU compatible -c, -q, and -v options in 'fancy' configuration. */ 28/* BB_AUDIT GNU compatible -c, -q, and -v options in 'fancy' configuration. */
12/* http://www.opengroup.org/onlinepubs/007904975/utilities/head.html */ 29/* http://www.opengroup.org/onlinepubs/007904975/utilities/head.html */
13 30
14//kbuild:lib-$(CONFIG_HEAD) += head.o
15
16//usage:#define head_trivial_usage 31//usage:#define head_trivial_usage
17//usage: "[OPTIONS] [FILE]..." 32//usage: "[OPTIONS] [FILE]..."
18//usage:#define head_full_usage "\n\n" 33//usage:#define head_full_usage "\n\n"