diff options
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/find.c | 66 | ||||
-rw-r--r-- | findutils/grep.c | 12 | ||||
-rw-r--r-- | findutils/xargs.c | 22 |
3 files changed, 50 insertions, 50 deletions
diff --git a/findutils/find.c b/findutils/find.c index 70ad03208..69baf065d 100644 --- a/findutils/find.c +++ b/findutils/find.c | |||
@@ -57,33 +57,33 @@ | |||
57 | //config: bool "find (14 kb)" | 57 | //config: bool "find (14 kb)" |
58 | //config: default y | 58 | //config: default y |
59 | //config: help | 59 | //config: help |
60 | //config: find is used to search your system to find specified files. | 60 | //config: find is used to search your system to find specified files. |
61 | //config: | 61 | //config: |
62 | //config:config FEATURE_FIND_PRINT0 | 62 | //config:config FEATURE_FIND_PRINT0 |
63 | //config: bool "Enable -print0: NUL-terminated output" | 63 | //config: bool "Enable -print0: NUL-terminated output" |
64 | //config: default y | 64 | //config: default y |
65 | //config: depends on FIND | 65 | //config: depends on FIND |
66 | //config: help | 66 | //config: help |
67 | //config: Causes output names to be separated by a NUL character | 67 | //config: Causes output names to be separated by a NUL character |
68 | //config: rather than a newline. This allows names that contain | 68 | //config: rather than a newline. This allows names that contain |
69 | //config: newlines and other whitespace to be more easily | 69 | //config: newlines and other whitespace to be more easily |
70 | //config: interpreted by other programs. | 70 | //config: interpreted by other programs. |
71 | //config: | 71 | //config: |
72 | //config:config FEATURE_FIND_MTIME | 72 | //config:config FEATURE_FIND_MTIME |
73 | //config: bool "Enable -mtime: modified time matching" | 73 | //config: bool "Enable -mtime: modified time matching" |
74 | //config: default y | 74 | //config: default y |
75 | //config: depends on FIND | 75 | //config: depends on FIND |
76 | //config: help | 76 | //config: help |
77 | //config: Allow searching based on the modification time of | 77 | //config: Allow searching based on the modification time of |
78 | //config: files, in days. | 78 | //config: files, in days. |
79 | //config: | 79 | //config: |
80 | //config:config FEATURE_FIND_MMIN | 80 | //config:config FEATURE_FIND_MMIN |
81 | //config: bool "Enable -mmin: modified time matching by minutes" | 81 | //config: bool "Enable -mmin: modified time matching by minutes" |
82 | //config: default y | 82 | //config: default y |
83 | //config: depends on FIND | 83 | //config: depends on FIND |
84 | //config: help | 84 | //config: help |
85 | //config: Allow searching based on the modification time of | 85 | //config: Allow searching based on the modification time of |
86 | //config: files, in minutes. | 86 | //config: files, in minutes. |
87 | //config: | 87 | //config: |
88 | //config:config FEATURE_FIND_PERM | 88 | //config:config FEATURE_FIND_PERM |
89 | //config: bool "Enable -perm: permissions matching" | 89 | //config: bool "Enable -perm: permissions matching" |
@@ -95,8 +95,8 @@ | |||
95 | //config: default y | 95 | //config: default y |
96 | //config: depends on FIND | 96 | //config: depends on FIND |
97 | //config: help | 97 | //config: help |
98 | //config: Enable searching based on file type (file, | 98 | //config: Enable searching based on file type (file, |
99 | //config: directory, socket, device, etc.). | 99 | //config: directory, socket, device, etc.). |
100 | //config: | 100 | //config: |
101 | //config:config FEATURE_FIND_XDEV | 101 | //config:config FEATURE_FIND_XDEV |
102 | //config: bool "Enable -xdev: 'stay in filesystem'" | 102 | //config: bool "Enable -xdev: 'stay in filesystem'" |
@@ -113,8 +113,8 @@ | |||
113 | //config: default y | 113 | //config: default y |
114 | //config: depends on FIND | 114 | //config: depends on FIND |
115 | //config: help | 115 | //config: help |
116 | //config: Support the 'find -newer' option for finding any files which have | 116 | //config: Support the 'find -newer' option for finding any files which have |
117 | //config: modification time that is more recent than the specified FILE. | 117 | //config: modification time that is more recent than the specified FILE. |
118 | //config: | 118 | //config: |
119 | //config:config FEATURE_FIND_INUM | 119 | //config:config FEATURE_FIND_INUM |
120 | //config: bool "Enable -inum: inode number matching" | 120 | //config: bool "Enable -inum: inode number matching" |
@@ -126,18 +126,18 @@ | |||
126 | //config: default y | 126 | //config: default y |
127 | //config: depends on FIND | 127 | //config: depends on FIND |
128 | //config: help | 128 | //config: help |
129 | //config: Support the 'find -exec' option for executing commands based upon | 129 | //config: Support the 'find -exec' option for executing commands based upon |
130 | //config: the files matched. | 130 | //config: the files matched. |
131 | //config: | 131 | //config: |
132 | //config:config FEATURE_FIND_EXEC_PLUS | 132 | //config:config FEATURE_FIND_EXEC_PLUS |
133 | //config: bool "Enable -exec ... {} +" | 133 | //config: bool "Enable -exec ... {} +" |
134 | //config: default y | 134 | //config: default y |
135 | //config: depends on FEATURE_FIND_EXEC | 135 | //config: depends on FEATURE_FIND_EXEC |
136 | //config: help | 136 | //config: help |
137 | //config: Support the 'find -exec ... {} +' option for executing commands | 137 | //config: Support the 'find -exec ... {} +' option for executing commands |
138 | //config: for all matched files at once. | 138 | //config: for all matched files at once. |
139 | //config: Without this option, -exec + is a synonym for -exec ; | 139 | //config: Without this option, -exec + is a synonym for -exec ; |
140 | //config: (IOW: it works correctly, but without expected speedup) | 140 | //config: (IOW: it works correctly, but without expected speedup) |
141 | //config: | 141 | //config: |
142 | //config:config FEATURE_FIND_USER | 142 | //config:config FEATURE_FIND_USER |
143 | //config: bool "Enable -user: username/uid matching" | 143 | //config: bool "Enable -user: username/uid matching" |
@@ -154,23 +154,23 @@ | |||
154 | //config: default y | 154 | //config: default y |
155 | //config: depends on FIND | 155 | //config: depends on FIND |
156 | //config: help | 156 | //config: help |
157 | //config: Support the '!' operator to invert the test results. | 157 | //config: Support the '!' operator to invert the test results. |
158 | //config: If 'Enable full-blown desktop' is enabled, then will also support | 158 | //config: If 'Enable full-blown desktop' is enabled, then will also support |
159 | //config: the non-POSIX notation '-not'. | 159 | //config: the non-POSIX notation '-not'. |
160 | //config: | 160 | //config: |
161 | //config:config FEATURE_FIND_DEPTH | 161 | //config:config FEATURE_FIND_DEPTH |
162 | //config: bool "Enable -depth" | 162 | //config: bool "Enable -depth" |
163 | //config: default y | 163 | //config: default y |
164 | //config: depends on FIND | 164 | //config: depends on FIND |
165 | //config: help | 165 | //config: help |
166 | //config: Process each directory's contents before the directory itself. | 166 | //config: Process each directory's contents before the directory itself. |
167 | //config: | 167 | //config: |
168 | //config:config FEATURE_FIND_PAREN | 168 | //config:config FEATURE_FIND_PAREN |
169 | //config: bool "Enable parens in options" | 169 | //config: bool "Enable parens in options" |
170 | //config: default y | 170 | //config: default y |
171 | //config: depends on FIND | 171 | //config: depends on FIND |
172 | //config: help | 172 | //config: help |
173 | //config: Enable usage of parens '(' to specify logical order of arguments. | 173 | //config: Enable usage of parens '(' to specify logical order of arguments. |
174 | //config: | 174 | //config: |
175 | //config:config FEATURE_FIND_SIZE | 175 | //config:config FEATURE_FIND_SIZE |
176 | //config: bool "Enable -size: file size matching" | 176 | //config: bool "Enable -size: file size matching" |
@@ -182,45 +182,45 @@ | |||
182 | //config: default y | 182 | //config: default y |
183 | //config: depends on FIND | 183 | //config: depends on FIND |
184 | //config: help | 184 | //config: help |
185 | //config: If the file is a directory, don't descend into it. Useful for | 185 | //config: If the file is a directory, don't descend into it. Useful for |
186 | //config: exclusion .svn and CVS directories. | 186 | //config: exclusion .svn and CVS directories. |
187 | //config: | 187 | //config: |
188 | //config:config FEATURE_FIND_DELETE | 188 | //config:config FEATURE_FIND_DELETE |
189 | //config: bool "Enable -delete: delete files/dirs" | 189 | //config: bool "Enable -delete: delete files/dirs" |
190 | //config: default y | 190 | //config: default y |
191 | //config: depends on FIND && FEATURE_FIND_DEPTH | 191 | //config: depends on FIND && FEATURE_FIND_DEPTH |
192 | //config: help | 192 | //config: help |
193 | //config: Support the 'find -delete' option for deleting files and directories. | 193 | //config: Support the 'find -delete' option for deleting files and directories. |
194 | //config: WARNING: This option can do much harm if used wrong. Busybox will not | 194 | //config: WARNING: This option can do much harm if used wrong. Busybox will not |
195 | //config: try to protect the user from doing stupid things. Use with care. | 195 | //config: try to protect the user from doing stupid things. Use with care. |
196 | //config: | 196 | //config: |
197 | //config:config FEATURE_FIND_PATH | 197 | //config:config FEATURE_FIND_PATH |
198 | //config: bool "Enable -path: match pathname with shell pattern" | 198 | //config: bool "Enable -path: match pathname with shell pattern" |
199 | //config: default y | 199 | //config: default y |
200 | //config: depends on FIND | 200 | //config: depends on FIND |
201 | //config: help | 201 | //config: help |
202 | //config: The -path option matches whole pathname instead of just filename. | 202 | //config: The -path option matches whole pathname instead of just filename. |
203 | //config: | 203 | //config: |
204 | //config:config FEATURE_FIND_REGEX | 204 | //config:config FEATURE_FIND_REGEX |
205 | //config: bool "Enable -regex: match pathname with regex" | 205 | //config: bool "Enable -regex: match pathname with regex" |
206 | //config: default y | 206 | //config: default y |
207 | //config: depends on FIND | 207 | //config: depends on FIND |
208 | //config: help | 208 | //config: help |
209 | //config: The -regex option matches whole pathname against regular expression. | 209 | //config: The -regex option matches whole pathname against regular expression. |
210 | //config: | 210 | //config: |
211 | //config:config FEATURE_FIND_CONTEXT | 211 | //config:config FEATURE_FIND_CONTEXT |
212 | //config: bool "Enable -context: security context matching" | 212 | //config: bool "Enable -context: security context matching" |
213 | //config: default n | 213 | //config: default n |
214 | //config: depends on FIND && SELINUX | 214 | //config: depends on FIND && SELINUX |
215 | //config: help | 215 | //config: help |
216 | //config: Support the 'find -context' option for matching security context. | 216 | //config: Support the 'find -context' option for matching security context. |
217 | //config: | 217 | //config: |
218 | //config:config FEATURE_FIND_LINKS | 218 | //config:config FEATURE_FIND_LINKS |
219 | //config: bool "Enable -links: link count matching" | 219 | //config: bool "Enable -links: link count matching" |
220 | //config: default y | 220 | //config: default y |
221 | //config: depends on FIND | 221 | //config: depends on FIND |
222 | //config: help | 222 | //config: help |
223 | //config: Support the 'find -links' option for matching number of links. | 223 | //config: Support the 'find -links' option for matching number of links. |
224 | 224 | ||
225 | //applet:IF_FIND(APPLET_NOEXEC(find, find, BB_DIR_USR_BIN, BB_SUID_DROP, find)) | 225 | //applet:IF_FIND(APPLET_NOEXEC(find, find, BB_DIR_USR_BIN, BB_SUID_DROP, find)) |
226 | 226 | ||
diff --git a/findutils/grep.c b/findutils/grep.c index cbbad731c..568ab12c2 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -22,28 +22,28 @@ | |||
22 | //config: bool "grep (8.5 kb)" | 22 | //config: bool "grep (8.5 kb)" |
23 | //config: default y | 23 | //config: default y |
24 | //config: help | 24 | //config: help |
25 | //config: grep is used to search files for a specified pattern. | 25 | //config: grep is used to search files for a specified pattern. |
26 | //config: | 26 | //config: |
27 | //config:config EGREP | 27 | //config:config EGREP |
28 | //config: bool "egrep (7.6 kb)" | 28 | //config: bool "egrep (7.6 kb)" |
29 | //config: default y | 29 | //config: default y |
30 | //config: help | 30 | //config: help |
31 | //config: Alias to "grep -E". | 31 | //config: Alias to "grep -E". |
32 | //config: | 32 | //config: |
33 | //config:config FGREP | 33 | //config:config FGREP |
34 | //config: bool "fgrep (7.6 kb)" | 34 | //config: bool "fgrep (7.6 kb)" |
35 | //config: default y | 35 | //config: default y |
36 | //config: help | 36 | //config: help |
37 | //config: Alias to "grep -F". | 37 | //config: Alias to "grep -F". |
38 | //config: | 38 | //config: |
39 | //config:config FEATURE_GREP_CONTEXT | 39 | //config:config FEATURE_GREP_CONTEXT |
40 | //config: bool "Enable before and after context flags (-A, -B and -C)" | 40 | //config: bool "Enable before and after context flags (-A, -B and -C)" |
41 | //config: default y | 41 | //config: default y |
42 | //config: depends on GREP || EGREP || FGREP | 42 | //config: depends on GREP || EGREP || FGREP |
43 | //config: help | 43 | //config: help |
44 | //config: Print the specified number of leading (-B) and/or trailing (-A) | 44 | //config: Print the specified number of leading (-B) and/or trailing (-A) |
45 | //config: context surrounding our matching lines. | 45 | //config: context surrounding our matching lines. |
46 | //config: Print the specified number of context lines (-C). | 46 | //config: Print the specified number of context lines (-C). |
47 | 47 | ||
48 | //applet:IF_GREP(APPLET(grep, BB_DIR_BIN, BB_SUID_DROP)) | 48 | //applet:IF_GREP(APPLET(grep, BB_DIR_BIN, BB_SUID_DROP)) |
49 | // APPLET_ODDNAME:name main location suid_type help | 49 | // APPLET_ODDNAME:name main location suid_type help |
diff --git a/findutils/xargs.c b/findutils/xargs.c index 078ce3bc7..2d0d1c8b9 100644 --- a/findutils/xargs.c +++ b/findutils/xargs.c | |||
@@ -19,47 +19,47 @@ | |||
19 | //config: bool "xargs (6.7 kb)" | 19 | //config: bool "xargs (6.7 kb)" |
20 | //config: default y | 20 | //config: default y |
21 | //config: help | 21 | //config: help |
22 | //config: xargs is used to execute a specified command for | 22 | //config: xargs is used to execute a specified command for |
23 | //config: every item from standard input. | 23 | //config: every item from standard input. |
24 | //config: | 24 | //config: |
25 | //config:config FEATURE_XARGS_SUPPORT_CONFIRMATION | 25 | //config:config FEATURE_XARGS_SUPPORT_CONFIRMATION |
26 | //config: bool "Enable -p: prompt and confirmation" | 26 | //config: bool "Enable -p: prompt and confirmation" |
27 | //config: default y | 27 | //config: default y |
28 | //config: depends on XARGS | 28 | //config: depends on XARGS |
29 | //config: help | 29 | //config: help |
30 | //config: Support -p: prompt the user whether to run each command | 30 | //config: Support -p: prompt the user whether to run each command |
31 | //config: line and read a line from the terminal. | 31 | //config: line and read a line from the terminal. |
32 | //config: | 32 | //config: |
33 | //config:config FEATURE_XARGS_SUPPORT_QUOTES | 33 | //config:config FEATURE_XARGS_SUPPORT_QUOTES |
34 | //config: bool "Enable single and double quotes and backslash" | 34 | //config: bool "Enable single and double quotes and backslash" |
35 | //config: default y | 35 | //config: default y |
36 | //config: depends on XARGS | 36 | //config: depends on XARGS |
37 | //config: help | 37 | //config: help |
38 | //config: Support quoting in the input. | 38 | //config: Support quoting in the input. |
39 | //config: | 39 | //config: |
40 | //config:config FEATURE_XARGS_SUPPORT_TERMOPT | 40 | //config:config FEATURE_XARGS_SUPPORT_TERMOPT |
41 | //config: bool "Enable -x: exit if -s or -n is exceeded" | 41 | //config: bool "Enable -x: exit if -s or -n is exceeded" |
42 | //config: default y | 42 | //config: default y |
43 | //config: depends on XARGS | 43 | //config: depends on XARGS |
44 | //config: help | 44 | //config: help |
45 | //config: Support -x: exit if the command size (see the -s or -n option) | 45 | //config: Support -x: exit if the command size (see the -s or -n option) |
46 | //config: is exceeded. | 46 | //config: is exceeded. |
47 | //config: | 47 | //config: |
48 | //config:config FEATURE_XARGS_SUPPORT_ZERO_TERM | 48 | //config:config FEATURE_XARGS_SUPPORT_ZERO_TERM |
49 | //config: bool "Enable -0: NUL-terminated input" | 49 | //config: bool "Enable -0: NUL-terminated input" |
50 | //config: default y | 50 | //config: default y |
51 | //config: depends on XARGS | 51 | //config: depends on XARGS |
52 | //config: help | 52 | //config: help |
53 | //config: Support -0: input items are terminated by a NUL character | 53 | //config: Support -0: input items are terminated by a NUL character |
54 | //config: instead of whitespace, and the quotes and backslash | 54 | //config: instead of whitespace, and the quotes and backslash |
55 | //config: are not special. | 55 | //config: are not special. |
56 | //config: | 56 | //config: |
57 | //config:config FEATURE_XARGS_SUPPORT_REPL_STR | 57 | //config:config FEATURE_XARGS_SUPPORT_REPL_STR |
58 | //config: bool "Enable -I STR: string to replace" | 58 | //config: bool "Enable -I STR: string to replace" |
59 | //config: default y | 59 | //config: default y |
60 | //config: depends on XARGS | 60 | //config: depends on XARGS |
61 | //config: help | 61 | //config: help |
62 | //config: Support -I STR and -i[STR] options. | 62 | //config: Support -I STR and -i[STR] options. |
63 | 63 | ||
64 | //applet:IF_XARGS(APPLET_NOEXEC(xargs, xargs, BB_DIR_USR_BIN, BB_SUID_DROP, xargs)) | 64 | //applet:IF_XARGS(APPLET_NOEXEC(xargs, xargs, BB_DIR_USR_BIN, BB_SUID_DROP, xargs)) |
65 | 65 | ||