busybox/libbb
Denys Vlasenko 81254ed387 lineedit: remove pos_buf[] array (up to 16k!); fix compat bugs
pos_buf is a strange hack, easy to do without it.
This also allows lines >32k long to be handled.
Also simplified match prefix generations and made behavior more like bash.

function                                             old     new   delta
remove_chunk                                           -      43     +43
collapse_pos                                          79       -     -79
build_match_prefix                                   804     579    -225
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/1 up/down: 43/-304)          Total: -261 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-09-03 12:59:15 +02:00
..
appletlib.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
ask_confirmation.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
bb_askpass.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
bb_basename.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
bb_do_delay.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
bb_pwd.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
bb_qsort.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
bb_strtod.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
bb_strtonum.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
change_identity.c
chomp.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
compare_string_array.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
concat_path_file.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
concat_subpath_file.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
Config.src mark Linux-specific configuration options 2010-07-19 00:44:56 +02:00
copy_file.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
copyfd.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
correct_password.c
crc32.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
create_icmp6_socket.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
create_icmp_socket.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
default_error_retval.c libbb: xfunc_error_retval can be a byte 2010-09-01 16:04:24 +02:00
device_open.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
die_if_bad_username.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
dump.c libbb: add xfstat function 2010-08-31 12:42:06 +02:00
execable.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
fclose_nonstdin.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
fflush_stdout_and_exit.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
fgets_str.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
find_mount_point.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
find_pid_by_name.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
find_root_device.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
full_write.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
get_console.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
get_cpu_count.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
get_last_path_component.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
get_line_from_file.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
get_volsize.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
getopt32.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
getpty.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
herror_msg.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
human_readable.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
inet_common.c better shared strings trick 2010-09-01 12:01:17 +02:00
info_msg.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
inode_hash.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
isdirectory.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
Kbuild.src better shared strings trick 2010-09-01 12:01:17 +02:00
kernel_version.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
last_char_is.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
lineedit_ptr_hack.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
lineedit.c lineedit: remove pos_buf[] array (up to 16k!); fix compat bugs 2010-09-03 12:59:15 +02:00
llist.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
login.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
loop.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
make_directory.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
makedev.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
match_fstype.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
md5.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
md5prime.c
messages.c better shared strings trick 2010-09-01 12:01:17 +02:00
mode_string.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
mtab.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
obscure.c libbb: fix fallout from last patch to obscure() (my mistake). +143 bytes 2010-08-17 17:21:36 +02:00
parse_config.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
parse_mode.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
perror_msg.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
perror_nomsg_and_die.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
perror_nomsg.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
pidfile.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
platform.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
print_flags.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
printable_string.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
printable.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
process_escape_sequence.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
procps.c pmap: new applet. +1k. 2010-08-28 23:20:34 +02:00
progress.c wget: fix ndelay_on call; progress bar: small shrink 2010-08-08 04:21:50 +02:00
ptr_to_globals.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
pw_encrypt_des.c
pw_encrypt_md5.c
pw_encrypt_sha.c
pw_encrypt.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
read_key.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
read_printf.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
read.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
README *: trailing empty lines removed 2010-07-26 01:49:12 +02:00
recursive_action.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
remove_file.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
rtc.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
run_shell.c *: s/"/bin/sh"/DEFAULT_SHELL, run_shell() API fix, remove unneeded strdup 2010-06-27 03:23:31 +02:00
safe_gethostname.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
safe_poll.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
safe_strncpy.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
safe_write.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
selinux_common.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
setup_environment.c *: s/"/bin/sh"/DEFAULT_SHELL, run_shell() API fix, remove unneeded strdup 2010-06-27 03:23:31 +02:00
sha1.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
signals.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
simplify_path.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
single_argv.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
skip_whitespace.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
speed_table.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
str_tolower.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
strrstr.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
time.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
trim.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
u_signal_names.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
udp_io.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
unicode.c lineedit: fix completion with Unicode chars 2010-09-02 12:03:11 +02:00
update_passwd.c libbb: add xfstat function 2010-08-31 12:42:06 +02:00
utmp.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
uuencode.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
vdprintf.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
verror_msg.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
vfork_daemon_rexec.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
warn_ignoring_args.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
wfopen_input.c patch: support "patch [FILE [PATCH]]" format 2010-08-22 05:39:15 +02:00
wfopen.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
write.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
xatonum_template.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
xatonum.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
xconnect.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
xfunc_die.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
xfuncs_printf.c libbb: add xfstat function 2010-08-31 12:42:06 +02:00
xfuncs.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
xgetcwd.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
xgethostbyname.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
xreadlink.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
xrealloc_vector.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
xregcomp.c *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00

Please see the LICENSE file for copyright information (GPLv2)

libbb is BusyBox's utility library.  All of this stuff used to be stuffed into
a single file named utility.c.  When I split utility.c to create libbb, some of
the very oldest stuff ended up without their original copyright and licensing
information (which is now lost in the mists of time).  If you see something
that you wrote that is mis-attributed, do let me know so we can fix that up.

	Erik Andersen
	<andersen@codepoet.org>