diff options
Diffstat (limited to 'libbb/Config.src')
-rw-r--r-- | libbb/Config.src | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/libbb/Config.src b/libbb/Config.src index 6ba256290..00804e31e 100644 --- a/libbb/Config.src +++ b/libbb/Config.src | |||
@@ -7,6 +7,30 @@ menu "Busybox Library Tuning" | |||
7 | 7 | ||
8 | INSERT | 8 | INSERT |
9 | 9 | ||
10 | choice | ||
11 | prompt "Buffer allocation policy" | ||
12 | default FEATURE_BUFFERS_USE_MALLOC | ||
13 | help | ||
14 | There are 3 ways BusyBox can handle buffer allocations: | ||
15 | - Use malloc. This costs code size for the call to xmalloc. | ||
16 | - Put them on stack. For some very small machines with limited stack | ||
17 | space, this can be deadly. For most folks, this works just fine. | ||
18 | - Put them in BSS. This works beautifully for computers with a real | ||
19 | MMU (and OS support), but wastes runtime RAM for uCLinux. This | ||
20 | behavior was the only one available for BusyBox versions 0.48 and | ||
21 | earlier. | ||
22 | |||
23 | config FEATURE_BUFFERS_USE_MALLOC | ||
24 | bool "Allocate with Malloc" | ||
25 | |||
26 | config FEATURE_BUFFERS_GO_ON_STACK | ||
27 | bool "Allocate on the Stack" | ||
28 | |||
29 | config FEATURE_BUFFERS_GO_IN_BSS | ||
30 | bool "Allocate in the .bss section" | ||
31 | |||
32 | endchoice | ||
33 | |||
10 | config PASSWORD_MINLEN | 34 | config PASSWORD_MINLEN |
11 | int "Minimum password length" | 35 | int "Minimum password length" |
12 | default 6 | 36 | default 6 |
@@ -153,6 +177,131 @@ config FEATURE_EDITING_ASK_TERMINAL | |||
153 | correctly, or want to save on code size (about 400 bytes), | 177 | correctly, or want to save on code size (about 400 bytes), |
154 | then do not turn this option on. | 178 | then do not turn this option on. |
155 | 179 | ||
180 | config LOCALE_SUPPORT | ||
181 | bool "Enable locale support (system needs locale for this to work)" | ||
182 | default n | ||
183 | help | ||
184 | Enable this if your system has locale support and you would like | ||
185 | busybox to support locale settings. | ||
186 | |||
187 | config UNICODE_SUPPORT | ||
188 | bool "Support Unicode" | ||
189 | default y | ||
190 | help | ||
191 | This makes various applets aware that one byte is not | ||
192 | one character on screen. | ||
193 | |||
194 | Busybox aims to eventually work correctly with Unicode displays. | ||
195 | Any older encodings are not guaranteed to work. | ||
196 | Probably by the time when busybox will be fully Unicode-clean, | ||
197 | other encodings will be mainly of historic interest. | ||
198 | |||
199 | config UNICODE_USING_LOCALE | ||
200 | bool "Use libc routines for Unicode (else uses internal ones)" | ||
201 | default n | ||
202 | depends on UNICODE_SUPPORT && LOCALE_SUPPORT | ||
203 | help | ||
204 | With this option on, Unicode support is implemented using libc | ||
205 | routines. Otherwise, internal implementation is used. | ||
206 | Internal implementation is smaller. | ||
207 | |||
208 | config FEATURE_CHECK_UNICODE_IN_ENV | ||
209 | bool "Check $LC_ALL, $LC_CTYPE and $LANG environment variables" | ||
210 | default n | ||
211 | depends on UNICODE_SUPPORT && !UNICODE_USING_LOCALE | ||
212 | help | ||
213 | With this option on, Unicode support is activated | ||
214 | only if locale-related variables have the value of the form | ||
215 | "xxxx.utf8" | ||
216 | |||
217 | Otherwise, Unicode support will be always enabled and active. | ||
218 | |||
219 | config SUBST_WCHAR | ||
220 | int "Character code to substitute unprintable characters with" | ||
221 | depends on UNICODE_SUPPORT | ||
222 | default 63 | ||
223 | help | ||
224 | Typical values are 63 for '?' (works with any output device), | ||
225 | 30 for ASCII substitute control code, | ||
226 | 65533 (0xfffd) for Unicode replacement character. | ||
227 | |||
228 | config LAST_SUPPORTED_WCHAR | ||
229 | int "Range of supported Unicode characters" | ||
230 | depends on UNICODE_SUPPORT | ||
231 | default 767 | ||
232 | help | ||
233 | Any character with Unicode value bigger than this is assumed | ||
234 | to be non-printable on output device. Many applets replace | ||
235 | such characters with substitution character. | ||
236 | |||
237 | The idea is that many valid printable Unicode chars | ||
238 | nevertheless are not displayed correctly. Think about | ||
239 | combining charachers, double-wide hieroglyphs, obscure | ||
240 | characters in dozens of ancient scripts... | ||
241 | Many terminals, terminal emulators, xterms etc will fail | ||
242 | to handle them correctly. Choose the smallest value | ||
243 | which suits your needs. | ||
244 | |||
245 | Typical values are: | ||
246 | 126 - ASCII only | ||
247 | 767 (0x2ff) - there are no combining chars in [0..767] range | ||
248 | (the range includes Latin 1, Latin Ext. A and B), | ||
249 | code is ~700 bytes smaller for this case. | ||
250 | 4351 (0x10ff) - there are no double-wide chars in [0..4351] range, | ||
251 | code is ~300 bytes smaller for this case. | ||
252 | 12799 (0x31ff) - nearly all non-ideographic characters are | ||
253 | available in [0..12799] range, including | ||
254 | East Asian scripts like katakana, hiragana, hangul, | ||
255 | bopomofo... | ||
256 | 0 - off, any valid printable Unicode character will be printed. | ||
257 | |||
258 | config UNICODE_COMBINING_WCHARS | ||
259 | bool "Allow zero-width Unicode characters on output" | ||
260 | default n | ||
261 | depends on UNICODE_SUPPORT | ||
262 | help | ||
263 | With this option off, any Unicode char with width of 0 | ||
264 | is substituted on output. | ||
265 | |||
266 | config UNICODE_WIDE_WCHARS | ||
267 | bool "Allow wide Unicode characters on output" | ||
268 | default n | ||
269 | depends on UNICODE_SUPPORT | ||
270 | help | ||
271 | With this option off, any Unicode char with width > 1 | ||
272 | is substituted on output. | ||
273 | |||
274 | config UNICODE_BIDI_SUPPORT | ||
275 | bool "Bidirectional character-aware line input" | ||
276 | default n | ||
277 | depends on UNICODE_SUPPORT && !UNICODE_USING_LOCALE | ||
278 | help | ||
279 | With this option on, right-to-left Unicode characters | ||
280 | are treated differently on input (e.g. cursor movement). | ||
281 | |||
282 | config UNICODE_NEUTRAL_TABLE | ||
283 | bool "In bidi input, support non-ASCII neutral chars too" | ||
284 | default n | ||
285 | depends on UNICODE_BIDI_SUPPORT | ||
286 | help | ||
287 | In most cases it's enough to treat only ASCII non-letters | ||
288 | (i.e. punctuation, numbers and space) as characters | ||
289 | with neutral directionality. | ||
290 | With this option on, more extensive (and bigger) table | ||
291 | of neutral chars will be used. | ||
292 | |||
293 | config UNICODE_PRESERVE_BROKEN | ||
294 | bool "Make it possible to enter sequences of chars which are not Unicode" | ||
295 | default n | ||
296 | depends on UNICODE_SUPPORT | ||
297 | help | ||
298 | With this option on, on line-editing input (such as used by shells) | ||
299 | invalid UTF-8 bytes are not substituted with the selected | ||
300 | substitution character. | ||
301 | For example, this means that entering 'l', 's', ' ', 0xff, [Enter] | ||
302 | at shell prompt will list file named 0xff (single char name | ||
303 | with char value 255), not file named '?'. | ||
304 | |||
156 | config FEATURE_NON_POSIX_CP | 305 | config FEATURE_NON_POSIX_CP |
157 | bool "Non-POSIX, but safer, copying to special nodes" | 306 | bool "Non-POSIX, but safer, copying to special nodes" |
158 | default y | 307 | default y |
@@ -177,6 +326,19 @@ config FEATURE_VERBOSE_CP_MESSAGE | |||
177 | cp: cannot stat '/vmlinuz/file': Not a directory | 326 | cp: cannot stat '/vmlinuz/file': Not a directory |
178 | This will cost you ~60 bytes. | 327 | This will cost you ~60 bytes. |
179 | 328 | ||
329 | config FEATURE_USE_SENDFILE | ||
330 | bool "Use sendfile system call" | ||
331 | default y | ||
332 | select PLATFORM_LINUX | ||
333 | help | ||
334 | When enabled, busybox will use the kernel sendfile() function | ||
335 | instead of read/write loops to copy data between file descriptors | ||
336 | (for example, cp command does this a lot). | ||
337 | If sendfile() doesn't work, copying code falls back to read/write | ||
338 | loop. sendfile() was originally implemented for faster I/O | ||
339 | from files to sockets, but since Linux 2.6.33 it was extended | ||
340 | to work for many more file types. | ||
341 | |||
180 | config FEATURE_COPYBUF_KB | 342 | config FEATURE_COPYBUF_KB |
181 | int "Copy buffer size, in kilobytes" | 343 | int "Copy buffer size, in kilobytes" |
182 | range 1 1024 | 344 | range 1 1024 |