hush/libbb
Denis Vlasenko 6d9ea24611 networking/interface.c: huke remaining big statics; use malloc for INET[6]_rresolve
return value. Went thru callers and adjusted them - code got smaller too.

function                                             old     new   delta
ip_port_str                                            -     126    +126
INET6_rresolve                                       165     182     +17
static.cache                                          20      24      +4
route_main                                          2092    2091      -1
INET_sprint                                           61      59      -2
INET_nn                                                4       -      -4
INET6_sprint                                          59      53      -6
udp_do_one                                           518     508     -10
tcp_do_one                                           433     423     -10
raw_do_one                                           494     484     -10
traceroute_main                                     4117    4105     -12
INET_rresolve                                        334     321     -13
bb_displayroutes                                     494     456     -38
snprint_ip_port                                      244       -    -244
static.buff                                          264      16    -248
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 2/10 up/down: 147/-598)        Total: -451 bytes

size busybox_old busybox_unstripped
   text    data     bss     dec     hex filename
 751073    3048   14688  768809   bbb29 busybox_old
 750873    3048   14440  768361   bb969 busybox_unstripped
2007-06-19 11:12:46 +00:00
..
ask_confirmation.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
bb_askpass.c libbb: random hunt for statics 2007-06-18 10:35:06 +00:00
bb_do_delay.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
bb_pwd.c
bb_strtonum.c
change_identity.c
chomp.c cryptpw: new applet (a bit less than 3k added) 2007-05-08 17:52:17 +00:00
compare_string_array.c
concat_path_file.c
concat_subpath_file.c teach find_root_device to deal with /dev/ subdirs 2007-04-13 23:59:52 +00:00
Config.in hwclock: size optimizations 2007-06-17 19:09:05 +00:00
copy_file.c style fixes. No code changes 2007-04-12 00:32:05 +00:00
copyfd.c bb_full_fd_action: remove potential xmalloc from NOFORK path 2007-04-11 23:20:53 +00:00
correct_password.c remove obsolete comment 2007-06-16 14:16:30 +00:00
crc32.c
create_icmp6_socket.c
create_icmp_socket.c
crypt_make_salt.c cryptpw: forgot svn add... how typical of me :( 2007-05-08 23:23:35 +00:00
default_error_retval.c
device_open.c
dump.c
error_msg_and_die.c hush: fix handling of unmatched ${name (without closing '}') - 2007-05-24 12:18:16 +00:00
error_msg.c use "glibc errno" trick not only for ash, but for entire busybox 2007-05-31 22:16:38 +00:00
execable.c make busybox --install work even if /proc/self/exe doesn't exist 2007-06-08 15:02:55 +00:00
fclose_nonstdin.c
fflush_stdout_and_exit.c
fgets_str.c
find_mount_point.c
find_pid_by_name.c
find_root_device.c find_root_device: use lstat - don't follow links 2007-04-21 23:28:03 +00:00
full_write.c
get_console.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
get_last_path_component.c
get_line_from_file.c style fixes. No code changes 2007-04-12 00:32:05 +00:00
getopt32.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
herror_msg_and_die.c
herror_msg.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
human_readable.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
inet_common.c networking/interface.c: huke remaining big statics; use malloc for INET[6]_rresolve 2007-06-19 11:12:46 +00:00
info_msg.c login: remove setpgrp call (makes it work from shell prompt again). 2007-04-12 12:31:02 +00:00
inode_hash.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
isdirectory.c
Kbuild hwclock: size optimizations 2007-06-17 19:09:05 +00:00
kernel_version.c
last_char_is.c
lineedit.c moved biggest stack buffers to malloc space, or made their size configurable 2007-06-10 15:08:44 +00:00
llist.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
login.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
loop.c loop device code: readability improvement 2007-04-19 00:09:34 +00:00
make_directory.c
makedev.c
match_fstype.c whitespace fixes 2007-05-30 00:29:55 +00:00
md5.c
messages.c *: BB_BANNER -> bb_banner (it is not a const or #define)! 2007-06-13 12:27:17 +00:00
mode_string.c
mtab_file.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
mtab.c
obscure.c
parse_mode.c
perror_msg_and_die.c
perror_msg.c use "glibc errno" trick not only for ash, but for entire busybox 2007-05-31 22:16:38 +00:00
perror_nomsg_and_die.c
perror_nomsg.c
pidfile.c
process_escape_sequence.c
procps.c top: add config option and code for global CPU % display 2007-06-10 17:11:59 +00:00
pw_encrypt.c libbb: random hunt for statics 2007-06-18 10:35:06 +00:00
read.c hush: fix read builtin to not read ahead past eol and to not use 2007-06-13 06:47:47 +00:00
README
recursive_action.c
remove_file.c
restricted_shell.c
run_shell.c use "glibc errno" trick not only for ash, but for entire busybox 2007-05-31 22:16:38 +00:00
safe_strncpy.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
safe_write.c use "glibc errno" trick not only for ash, but for entire busybox 2007-05-31 22:16:38 +00:00
selinux_common.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
setup_environment.c remove nearly-duplicate PATHs in several places 2007-06-12 22:35:19 +00:00
sha1.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
simplify_path.c teach find_root_device to deal with /dev/ subdirs 2007-04-13 23:59:52 +00:00
skip_whitespace.c
speed_table.c
str_tolower.c
time.c fix an obvious typo while trying to access the tv_usec member 2007-06-18 07:12:31 +00:00
trim.c style fixes. No code changes 2007-04-12 00:32:05 +00:00
u_signal_names.c test: code size saving, no logic changes 2007-05-01 20:07:29 +00:00
udp_io.c whitespace fixes 2007-05-30 00:29:55 +00:00
uuencode.c uudecode: nuke duplicate base64_table[]. saves 65 bytes 2007-06-12 07:24:11 +00:00
vdprintf.c
verror_msg.c verror_msg: don't printf(NULL) 2007-05-29 21:41:28 +00:00
vfork_daemon_rexec.c init: make sure fd 0,1,2 are not closed, + related optimizations. 2007-06-14 07:53:06 +00:00
vherror_msg.c
vinfo_msg.c
vperror_msg.c
warn_ignoring_args.c
wfopen_input.c bb_full_fd_action: remove potential xmalloc from NOFORK path 2007-04-11 23:20:53 +00:00
wfopen.c
xatonum_template.c find: make -size match GNU find 2007-06-16 00:30:52 +00:00
xatonum.c diff: shrink code (-85 bytes): 2007-06-12 20:54:54 +00:00
xconnect.c nc: make connecting to IPv4 from IPv6-enabled hosts easier 2007-06-05 20:08:11 +00:00
xfuncs.c usage.c: remove reference to busybox.h 2007-05-26 19:00:18 +00:00
xgetcwd.c
xgethostbyname.c
xreadlink.c
xregcomp.c

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>