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/ls.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/ls.c')
-rw-r--r-- | coreutils/ls.c | 70 |
1 files changed, 69 insertions, 1 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index 344b4e61e..0f35c70d5 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.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 | /* [date unknown. Perhaps before year 2000] | 7 | /* [date unknown. Perhaps before year 2000] |
9 | * To achieve a small memory footprint, this version of 'ls' doesn't do any | 8 | * To achieve a small memory footprint, this version of 'ls' doesn't do any |
10 | * file sorting, and only has the most essential command line switches | 9 | * file sorting, and only has the most essential command line switches |
@@ -28,6 +27,75 @@ | |||
28 | * [2009-03] | 27 | * [2009-03] |
29 | * ls sorts listing now, and supports almost all options. | 28 | * ls sorts listing now, and supports almost all options. |
30 | */ | 29 | */ |
30 | //config:config LS | ||
31 | //config: bool "ls" | ||
32 | //config: default y | ||
33 | //config: help | ||
34 | //config: ls is used to list the contents of directories. | ||
35 | //config: | ||
36 | //config:config FEATURE_LS_FILETYPES | ||
37 | //config: bool "Enable filetyping options (-p and -F)" | ||
38 | //config: default y | ||
39 | //config: depends on LS | ||
40 | //config: help | ||
41 | //config: Enable the ls options (-p and -F). | ||
42 | //config: | ||
43 | //config:config FEATURE_LS_FOLLOWLINKS | ||
44 | //config: bool "Enable symlinks dereferencing (-L)" | ||
45 | //config: default y | ||
46 | //config: depends on LS | ||
47 | //config: help | ||
48 | //config: Enable the ls option (-L). | ||
49 | //config: | ||
50 | //config:config FEATURE_LS_RECURSIVE | ||
51 | //config: bool "Enable recursion (-R)" | ||
52 | //config: default y | ||
53 | //config: depends on LS | ||
54 | //config: help | ||
55 | //config: Enable the ls option (-R). | ||
56 | //config: | ||
57 | //config:config FEATURE_LS_SORTFILES | ||
58 | //config: bool "Sort the file names" | ||
59 | //config: default y | ||
60 | //config: depends on LS | ||
61 | //config: help | ||
62 | //config: Allow ls to sort file names alphabetically. | ||
63 | //config: | ||
64 | //config:config FEATURE_LS_TIMESTAMPS | ||
65 | //config: bool "Show file timestamps" | ||
66 | //config: default y | ||
67 | //config: depends on LS | ||
68 | //config: help | ||
69 | //config: Allow ls to display timestamps for files. | ||
70 | //config: | ||
71 | //config:config FEATURE_LS_USERNAME | ||
72 | //config: bool "Show username/groupnames" | ||
73 | //config: default y | ||
74 | //config: depends on LS | ||
75 | //config: help | ||
76 | //config: Allow ls to display username/groupname for files. | ||
77 | //config: | ||
78 | //config:config FEATURE_LS_COLOR | ||
79 | //config: bool "Allow use of color to identify file types" | ||
80 | //config: default y | ||
81 | //config: depends on LS && LONG_OPTS | ||
82 | //config: help | ||
83 | //config: This enables the --color option to ls. | ||
84 | //config: | ||
85 | //config:config FEATURE_LS_COLOR_IS_DEFAULT | ||
86 | //config: bool "Produce colored ls output by default" | ||
87 | //config: default y | ||
88 | //config: depends on FEATURE_LS_COLOR | ||
89 | //config: help | ||
90 | //config: Saying yes here will turn coloring on by default, | ||
91 | //config: even if no "--color" option is given to the ls command. | ||
92 | //config: This is not recommended, since the colors are not | ||
93 | //config: configurable, and the output may not be legible on | ||
94 | //config: many output screens. | ||
95 | |||
96 | //applet:IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls)) | ||
97 | |||
98 | //kbuild:lib-$(CONFIG_LS) += ls.o | ||
31 | 99 | ||
32 | //usage:#define ls_trivial_usage | 100 | //usage:#define ls_trivial_usage |
33 | //usage: "[-1AaCxd" | 101 | //usage: "[-1AaCxd" |