hush/libbb
Denis Vlasenko 98ebab8b76 top,ps: improve /proc/PID/cmdinfo reading code
function                                             old     new   delta
display_status                                         -    1231   +1231
read_cmdline                                           -     101    +101
parse_conf                                          1284    1303     +19
arith                                               2033    2042      +9
collect_blk                                          467     474      +7
fsck_main                                           1909    1911      +2
dhcprelay_main                                      1125    1122      -3
singlemount                                         4555    4547      -8
read_close                                            50      36     -14
get_lcm                                              123     105     -18
ed_main                                             3111    3084     -27
func_args                                             73      28     -45
procps_scan                                          732     658     -74
top_main                                            2187     899   -1288
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 4/8 up/down: 1369/-1477)       Total: -108 bytes
   text    data     bss     dec     hex filename
 676048    2744   13968  692760   a9218 busybox_old
 675940    2744   13968  692652   a91ac busybox_unstripped
2007-06-30 14:47:41 +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_basename.c add bb_basename.c 2007-06-30 10:58:08 +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
compare_string_array.c
concat_path_file.c
concat_subpath_file.c
Config.in top,ps: reduce CPU usage in decimal conversion (optional) 2007-06-19 13:46:24 +00:00
copy_file.c do not do utime() on links, it acts on link targets, and we don't want that. 2007-06-20 14:49:47 +00:00
copyfd.c
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
default_error_retval.c
device_open.c
dump.c random shrinkage of statics, -60 bytes saved 2007-06-21 12:43:45 +00:00
error_msg_and_die.c
error_msg.c
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 introduce and use bb_basename() 2007-06-30 08:04:05 +00:00
find_root_device.c
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
getopt32.c
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 make /etc/network parsing configurable. -200 bytes when off. 2007-06-19 11:24:47 +00:00
info_msg.c
inode_hash.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
isdirectory.c
Kbuild introduce and use bb_basename() 2007-06-30 08:04:05 +00:00
kernel_version.c
last_char_is.c
lineedit.c introduce and use bb_basename() 2007-06-30 08:04:05 +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
make_directory.c
makedev.c
match_fstype.c
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
perror_nomsg_and_die.c
perror_nomsg.c
pidfile.c
process_escape_sequence.c
procps.c top,ps: improve /proc/PID/cmdinfo reading code 2007-06-30 14:47:41 +00:00
pw_encrypt.c libbb: random hunt for statics 2007-06-18 10:35:06 +00:00
read.c top,ps: improve /proc/PID/cmdinfo reading code 2007-06-30 14:47:41 +00:00
README
recursive_action.c
remove_file.c
restricted_shell.c
run_shell.c
safe_strncpy.c delete tons of extra #includes 2007-05-31 22:42:12 +00:00
safe_write.c
selinux_common.c
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
skip_whitespace.c
speed_table.c Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms@bfs.de>) 2007-06-25 10:55:35 +00:00
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
u_signal_names.c Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms <wharms@bfs.de>) 2007-06-25 10:55:35 +00:00
udp_io.c
uuencode.c uuencode: shrink 2007-06-26 15:59:37 +00:00
vdprintf.c
verror_msg.c
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
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
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>