busybox/libbb
Bernhard Reutner-Fischer d591a360d3 - merge -r15463:15564 from busybox_scratch branch through these changesets:
------------------------------------------------------------------------
r15465 | aldot | 2006-06-21 20:48:06 +0200 (Wed, 21 Jun 2006) | 3 lines

- use CONFIG_BUSYBOX_EXEC_PATH as before it one was broken by a recent revert.
- use xchdir() since all is invain if it fails there anyways, supposedly

------------------------------------------------------------------------
r15466 | aldot | 2006-06-21 20:55:16 +0200 (Wed, 21 Jun 2006) | 2 lines

- adjust docs to take CONFIG_BUSYBOX_EXEC_PATH into account.

------------------------------------------------------------------------
r15467 | aldot | 2006-06-21 21:31:24 +0200 (Wed, 21 Jun 2006) | 18 lines

- partial fallout of my TREE_USED touchup against gcc-4.2: rip unused vars, save
s 144 bytes
   text    data     bss     dec     hex filename
 862434   10156  645924 1518514  172bb2 busybox.old
 862322   10156  645892 1518370  172b22 busybox
function                                             old     new   delta
z_len                                                  4       -      -4
textend                                                4       -      -4
part_nb                                                4       -      -4
insize                                                 4       -      -4
ifile_size                                             4       -      -4
do_link                                                4       -      -4
new_text                                              70      60     -10
ipaddr_list_link                                      33      23     -10
gzip_main                                            898     822     -76
------------------------------------------------------------------------------
(add/remove: 0/6 grow/shrink: 0/3 up/down: 0/-120)           Total: -120 bytes


------------------------------------------------------------------------
r15468 | aldot | 2006-06-21 21:43:05 +0200 (Wed, 21 Jun 2006) | 19 lines

- remove useless global exports
function                                             old     new   delta
rpm_main                                             940    1601    +661
rpm_getstring                                        107     112      +5
rpm_getint                                           148     153      +5
loop_through_files                                   103     106      +3
fileaction_dobackup                                  115     113      -2
fileaction_list                                        5       -      -5
rpm_getcount                                          42       -     -42
extract_cpio_gz                                      161       -    -161
rpm_gettags                                          504       -    -504
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 4/1 up/down: 674/-714)          Total: -40 bytes

   text    data     bss     dec     hex filename
 862322   10156  645892 1518370  172b22 busybox.old
 862290   10156  645892 1518338  172b02 busybox


------------------------------------------------------------------------
r15555 | aldot | 2006-06-30 14:10:11 +0200 (Fri, 30 Jun 2006) | 22 lines

- shrink syslog a little bit, move a big buffer (for 'line') off the bss, fold s
emaphore stuff into single caller manually.
  stats:
function                                             old     new   delta
logMessage                                           395     427     +32
message                                             1245    1257     +12
opts                                                   -       4      +4
small                                                  1       -      -1
local_logging                                          4       -      -4
doRemoteLog                                            4       -      -4
circular_logging                                       4       -      -4
syslogd_main                                        1299    1285     -14
static.res                                            36      16     -20
.rodata                                           186650  186586     -64
static.line                                         1025       -   -1025
------------------------------------------------------------------------------
(add/remove: 1/5 grow/shrink: 2/3 up/down: 48/-1136)        Total: -1088 bytes
cow@s37:~/src/busybox_scratch$ size sysklogd/syslogd.o{.orig,}
   text    data     bss     dec     hex filename
   3723     348    5242    9313    2461 sysklogd/syslogd.o.orig
   3697     348    4188    8233    2029 sysklogd/syslogd.o

==============================================================================
Overall bloatcheck for the changeset mentioned above:
function                                             old     new   delta
rpm_main                                             953    1608    +655
logMessage                                           395     427     +32
message                                             1245    1257     +12
opts                                                   -       4      +4
rpm_getstring                                        107     110      +3
rpm_getint                                           148     151      +3
loop_through_files                                   103     104      +1
small                                                  1       -      -1
fileaction_dobackup                                  115     113      -2
z_len                                                  4       -      -4
textend                                                4       -      -4
part_nb                                                4       -      -4
local_logging                                          4       -      -4
insize                                                 4       -      -4
ifile_size                                             4       -      -4
do_link                                                4       -      -4
doRemoteLog                                            4       -      -4
circular_logging                                       4       -      -4
fileaction_list                                        5       -      -5
new_text                                              70      60     -10
ipaddr_list_link                                      33      23     -10
clear_bufs                                            31      21     -10
syslogd_main                                        1287    1273     -14
builtin_help                                         190     176     -14
static.res                                            36      16     -20
builtin_source                                       229     199     -30
rpm_getcount                                          42       -     -42
gzip_main                                            842     786     -56
.rodata                                           227176  227112     -64
lash_main                                            609     527     -82
busy_loop                                           3883    3739    -144
extract_cpio_gz                                      155       -    -155
rpm_gettags                                          501       -    -501
static.line                                         1025       -   -1025
------------------------------------------------------------------------------
(add/remove: 1/15 grow/shrink: 6/12 up/down: 710/-2221)     Total: -1511 bytes
2006-08-20 17:35:13 +00:00
..
ask_confirmation.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
bb_askpass.c - add some ATTRIBUTE_UNUSED. 2006-01-30 17:17:14 +00:00
bb_do_delay.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
bb_pwd.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
change_identity.c Cleaup read() and write() variants, plus a couple of new functions like 2006-07-16 08:14:35 +00:00
chomp.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
compare_string_array.c Standardize on the vi editing directives being on the first line. 2006-07-02 19:47:05 +00:00
concat_path_file.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
concat_subpath_file.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
Config.in Allow a user-configurable minimum password length. 2006-07-02 18:35:39 +00:00
copy_file.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
copyfd.c Cleaup read() and write() variants, plus a couple of new functions like 2006-07-16 08:14:35 +00:00
correct_password.c Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytes 2006-05-07 20:20:34 +00:00
crc32.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
create_icmp6_socket.c Cleaup read() and write() variants, plus a couple of new functions like 2006-07-16 08:14:35 +00:00
create_icmp_socket.c Cleaup read() and write() variants, plus a couple of new functions like 2006-07-16 08:14:35 +00:00
default_error_retval.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
device_open.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
dump.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
error_msg_and_die.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
error_msg.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
fclose_nonstdin.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
fflush_stdout_and_exit.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
fgets_str.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
find_mount_point.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
find_pid_by_name.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
find_root_device.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
full_read.c Cleaup read() and write() variants, plus a couple of new functions like 2006-07-16 08:14:35 +00:00
full_write.c Cleaup read() and write() variants, plus a couple of new functions like 2006-07-16 08:14:35 +00:00
get_console.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
get_last_path_component.c - move buffer allocation schemes to libbb.h 2006-04-03 16:39:31 +00:00
get_line_from_file.c - fix bug #887, in bb_get_chomped_line_from_file(), the last char was removed 2006-06-10 11:04:43 +00:00
get_terminal_width_height.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
getopt_ulflags.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
herror_msg_and_die.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
herror_msg.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
human_readable.c Standardize on the vi editing directives being on the first line. 2006-07-02 19:47:05 +00:00
inet_common.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
inode_hash.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
isdirectory.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
kernel_version.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
last_char_is.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
llist.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
login.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
loop.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
make_directory.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
Makefile Attempt to address Shaun Jackman's problem adding "busybox: busybox.bflt" to 2006-07-06 20:02:47 +00:00
Makefile.in Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
md5.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
messages.c Another whack at scripts/individual. Now builds 212 applets. 2006-08-09 20:56:23 +00:00
mode_string.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
mtab_file.c Add shared subtree support, suggested by Vladimir Dronnikov. Also break out a 2006-08-08 01:39:49 +00:00
mtab.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
obscure.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
parse_mode.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
parse_number.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
perror_msg_and_die.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
perror_msg.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
perror_nomsg_and_die.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
perror_nomsg.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
printf.c More extern removal from Robert P. Day. 2006-03-29 16:52:56 +00:00
process_escape_sequence.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
procps.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
pw_encrypt.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
qmodule.c Standardize on the vi editing directives being on the first line. 2006-07-02 19:47:05 +00:00
README Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
recursive_action.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
remove_file.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
restricted_shell.c Port over the last of the tinylogin applets 2002-06-23 04:24:25 +00:00
run_parts.c - add and use bb_opendir(), bb_xopendir(). 2006-04-12 07:35:12 +00:00
run_shell.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
safe_read.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
safe_strncpy.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
safe_strtol.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
safe_write.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
setup_environment.c just whitespace 2006-01-25 00:08:53 +00:00
sha1.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
simplify_path.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
skip_whitespace.c skip_whitespace() shouldn't claim its return value is const, it doesn't know 2006-06-18 20:20:07 +00:00
speed_table.c The type changed too. 2006-06-20 16:43:05 +00:00
trim.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
u_signal_names.c A couple things that got tangled up in my tree, easier to check in both than 2006-07-12 19:17:55 +00:00
vdprintf.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
verror_msg.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
vfork_daemon_rexec.c - merge -r15463:15564 from busybox_scratch branch through these changesets: 2006-08-20 17:35:13 +00:00
vherror_msg.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
vperror_msg.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
warn_ignoring_args.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
wfopen_input.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
wfopen.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
xconnect.c Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate 2006-08-03 15:41:12 +00:00
xfuncs.c Another whack at scripts/individual. Now builds 212 applets. 2006-08-09 20:56:23 +00:00
xgetcwd.c Standardize on the vi editing directives being on the first line. 2006-07-02 19:47:05 +00:00
xgethostbyname2.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
xgethostbyname.c Replace current verbose GPL stuff in libbb/*.c with one-line GPL boilerplate. 2006-07-10 11:41:19 +00:00
xgetlarg.c More minor tweaks. 2006-07-12 21:31:16 +00:00
xgetularg.c More minor tweaks. 2006-07-12 21:31:16 +00:00
xreadlink.c Standardize on the vi editing directives being on the first line. 2006-07-02 19:47:05 +00:00
xregcomp.c - remove emacs layout block as suggested by Robert P.J. Day 2006-05-19 19:29:19 +00:00
xstat.c Standardize on the vi editing directives being on the first line. 2006-07-02 19:47:05 +00: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>