oweals/busybox.git
15 years agologin: small simplification by Walter Harms. -10 bytes
Denis Vlasenko [Mon, 2 Feb 2009 00:15:57 +0000 (00:15 -0000)]
login: small simplification by Walter Harms. -10 bytes

15 years agologin: cleanup work by Walter Harms. No logic changes.
Denis Vlasenko [Mon, 2 Feb 2009 00:15:00 +0000 (00:15 -0000)]
login: cleanup work by Walter Harms. No logic changes.

15 years agodhcpd,dumpleases: write and use 64-bit current time in lease file.
Denis Vlasenko [Sun, 1 Feb 2009 00:40:45 +0000 (00:40 -0000)]
dhcpd,dumpleases: write and use 64-bit current time in lease file.
 without it, determination of remaining lease time is unreliable.
 Yes, it's costly in code size, but without it, dumpleases output
 is misleading!

function                                             old     new   delta
read_leases                                          143     282    +139
dumpleases_main                                      447     572    +125
write_leases                                         193     233     +40
hton64                                                29      58     +29
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 333/0)             Total: 333 bytes

15 years agomodutils-24: code shrink
Denis Vlasenko [Sat, 31 Jan 2009 23:33:54 +0000 (23:33 -0000)]
modutils-24: code shrink

function                                             old     new   delta
helper_create_alloced_section                          -     117    +117
print_load_map                                       474     450     -24
bb_init_module_24                                   4615    4545     -70
obj_create_alloced_section                           131      30    -101
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/3 up/down: 117/-195)          Total: -78 bytes

15 years agoionice: new applet, adapted from Linux kernel' example by Walter Harms
Denis Vlasenko [Sat, 31 Jan 2009 21:45:57 +0000 (21:45 -0000)]
ionice: new applet, adapted from Linux kernel' example by Walter Harms

   text    data     bss     dec     hex filename
1050316     924   10952 1062192  103530 busybox_old
1050758     924   10952 1062634  1036ea busybox_unstripped

15 years agobrctl: fix compilation on 2.4.x kernels
Denis Vlasenko [Sat, 31 Jan 2009 20:08:21 +0000 (20:08 -0000)]
brctl: fix compilation on 2.4.x kernels

15 years agoinit: remove wait() loop on restart, it may be dangerous
Denis Vlasenko [Sat, 31 Jan 2009 19:26:12 +0000 (19:26 -0000)]
init: remove wait() loop on restart, it may be dangerous

15 years agoinit: fix a bug where on reload order of entries might be wrong
Denis Vlasenko [Sat, 31 Jan 2009 18:55:54 +0000 (18:55 -0000)]
init: fix a bug where on reload order of entries might be wrong

function                                             old     new   delta
run_shutdown_and_kill_processes                        -      97     +97
pause_and_low_level_reboot                             -      48     +48
run_actions                                           81     107     +26
restart_handler                                       56      81     +25
new_init_action                                      137     150     +13
run                                                  576     579      +3
open_stdio_to_tty                                    110      98     -12
check_delayed_sigs                                   195     170     -25
waitfor                                              354     318     -36
low_level_reboot                                      53       -     -53
kill_all_processes                                   115       -    -115
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 4/3 up/down: 212/-241)          Total: -29 bytes

15 years agomodutils-24: use xasprintf and xzalloc where appropriate,
Denis Vlasenko [Sat, 31 Jan 2009 14:22:24 +0000 (14:22 -0000)]
modutils-24: use xasprintf and xzalloc where appropriate,
 remove unreachanble code
build system: correct some dependencies in config system
init: convert one #if into if() - for Rob.

function                                             old     new   delta
obj_string_patch                                     136     129      -7
bb_init_module_24                                   4759    4615    -144
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-151)           Total: -151 bytes

15 years agoinit: small correction in a comment
Denis Vlasenko [Sat, 31 Jan 2009 01:07:05 +0000 (01:07 -0000)]
init: small correction in a comment

15 years agoinit: major improvement in documentation and signal handling.
Denis Vlasenko [Sat, 31 Jan 2009 01:03:45 +0000 (01:03 -0000)]
init: major improvement in documentation and signal handling.
 Lots of nasty, but hard to trip, races are fixed.

   text    data     bss     dec     hex filename
1038828     924   10932 1050684  10083c busybox_old
1038787     924   10932 1050643  100813 busybox_unstripped

15 years agoinit: preparatory patch, no code changes
Denis Vlasenko [Sat, 31 Jan 2009 01:02:07 +0000 (01:02 -0000)]
init: preparatory patch, no code changes

15 years agoinit: reinstate proper handling of !ENABLE_FEATURE_USE_INITTAB
Denis Vlasenko [Thu, 29 Jan 2009 02:01:04 +0000 (02:01 -0000)]
init: reinstate proper handling of !ENABLE_FEATURE_USE_INITTAB

15 years agoinit: reduce ifdef forest (specially for Rob's happiness)
Denis Vlasenko [Wed, 28 Jan 2009 23:56:31 +0000 (23:56 -0000)]
init: reduce ifdef forest (specially for Rob's happiness)

15 years ago- be gentle to syntax highlighting
Bernhard Reutner-Fischer [Tue, 27 Jan 2009 18:54:41 +0000 (18:54 -0000)]
- be gentle to syntax highlighting

15 years ago- update Michele address
Bernhard Reutner-Fischer [Tue, 27 Jan 2009 12:56:33 +0000 (12:56 -0000)]
- update Michele address

15 years agoawk: in BEGIN section $0 should be "", not "0".
Denis Vlasenko [Sun, 25 Jan 2009 01:00:15 +0000 (01:00 -0000)]
awk: in BEGIN section $0 should be "", not "0".

15 years agotraceroute: allow -w NUM as small as 1
Denis Vlasenko [Sat, 24 Jan 2009 21:23:41 +0000 (21:23 -0000)]
traceroute: allow -w NUM as small as 1

15 years agotraceroute: rewrite. Do not emit raw IP packets, instead send UDP or ICMP
Denis Vlasenko [Sat, 24 Jan 2009 20:14:24 +0000 (20:14 -0000)]
traceroute: rewrite. Do not emit raw IP packets, instead send UDP or ICMP
 packets and rely on the kernel to form IP headers, select source IP
 and interface. Doing it in traceroute wasn't working too good,
 and was bloating it.

function                                             old     new   delta
freehostinfo                                          29       -     -29
setsin                                                30       -     -30
in_cksum                                              57       -     -57
gethostinfo                                          165       -    -165
ifaddrlist                                           364       -    -364
traceroute_main                                     3713    2951    -762
------------------------------------------------------------------------------
(add/remove: 0/5 grow/shrink: 0/1 up/down: 0/-1407)         Total: -1407 bytes

15 years agotraceroute: preparatory trivial cleanups
Denis Vlasenko [Sat, 24 Jan 2009 20:11:36 +0000 (20:11 -0000)]
traceroute: preparatory trivial cleanups

function                                             old     new   delta
traceroute_main                                     3932    3713    -219

15 years agotunctl: new applet by Vladimir
Denis Vlasenko [Fri, 23 Jan 2009 02:07:14 +0000 (02:07 -0000)]
tunctl: new applet by Vladimir

function                                             old     new   delta
tunctl_main                                            -     371    +371
packed_usage                                       25669   25799    +130
applet_names                                        1981    1988      +7
applet_main                                         1192    1196      +4
applet_nameofs                                       596     598      +2
applet_install_loc                                   149     150      +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 5/0 up/down: 515/0)             Total: 515 bytes

15 years ago- add CONFIG_EXTRA_CFLAGS (thanks to keesj)
Bernhard Reutner-Fischer [Thu, 22 Jan 2009 13:27:14 +0000 (13:27 -0000)]
- add CONFIG_EXTRA_CFLAGS (thanks to keesj)
  This helps with remembering additional flags like e.g. cpu settings for
  people who did not configured their compiler to produce code for their cpu
  per default.

15 years agotar: stop changing net tarfile's mode, GNU tar doesn't do it
Denis Vlasenko [Tue, 20 Jan 2009 02:52:57 +0000 (02:52 -0000)]
tar: stop changing net tarfile's mode, GNU tar doesn't do it

15 years agouname: use wider integer for option bits
Denis Vlasenko [Mon, 19 Jan 2009 16:38:30 +0000 (16:38 -0000)]
uname: use wider integer for option bits

15 years agouname: add support for -i and -o, fix printing of unknown -p
Denis Vlasenko [Mon, 19 Jan 2009 16:32:23 +0000 (16:32 -0000)]
uname: add support for -i and -o, fix printing of unknown -p
 value with -a option

function                                             old     new   delta
uname_main                                           166     185     +19
utsname_offset                                        12      16      +4
options                                              621     623      +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 25/0)               Total: 25 bytes

15 years agodhcpc: suppress "warning: 'timestamp_before_wait' might be used uninitialized
Denis Vlasenko [Wed, 14 Jan 2009 00:28:03 +0000 (00:28 -0000)]
dhcpc: suppress "warning: 'timestamp_before_wait' might be used uninitialized

15 years agolibbb: shrink linked list ops (by xmaks AT email.cz)
Denis Vlasenko [Tue, 13 Jan 2009 15:22:50 +0000 (15:22 -0000)]
libbb: shrink linked list ops (by xmaks AT email.cz)

function                                             old     new   delta
llist_pop                                             33      29      -4
llist_unlink                                          47      28     -19
llist_add_to_end                                      50      31     -19
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-42)             Total: -42 bytes

15 years agodepmod: fix -b option (by timo.teras AT iki.fi)
Denis Vlasenko [Mon, 12 Jan 2009 22:12:22 +0000 (22:12 -0000)]
depmod: fix -b option (by timo.teras AT iki.fi)

function                                             old     new   delta
xfreopen_write                                         -      35     +35
parse_module                                         346     353      +7
depmod_main                                          553     546      -7
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 42/-7)              Total: 35 bytes

15 years agoadduser: allow adding to group 0; don't _create_ /etc/shadow,
Denis Vlasenko [Mon, 12 Jan 2009 09:20:49 +0000 (09:20 -0000)]
adduser: allow adding to group 0; don't _create_ /etc/shadow,
 only append data if it exists.

function                                             old     new   delta
adduser_main                                         642     667     +25

15 years agomdev: fix breakage caused by unified parser usage
Denis Vlasenko [Mon, 12 Jan 2009 07:57:52 +0000 (07:57 -0000)]
mdev: fix breakage caused by unified parser usage

15 years ago- use https for bugzilla URLs
Bernhard Reutner-Fischer [Sat, 10 Jan 2009 11:36:38 +0000 (11:36 -0000)]
- use https for bugzilla URLs

15 years ago- isascii() is obsolescent in SUSv4 and furthermore looks redundant in this spot
Bernhard Reutner-Fischer [Fri, 9 Jan 2009 14:49:11 +0000 (14:49 -0000)]
- isascii() is obsolescent in SUSv4 and furthermore looks redundant in this spot

15 years agodo not whine if /sys/block does not exist ... embedded systems dont need stinkin...
Mike Frysinger [Thu, 8 Jan 2009 17:19:01 +0000 (17:19 -0000)]
do not whine if /sys/block does not exist ... embedded systems dont need stinkin block devices

15 years agosysctl: fix another corner case with "dots and slashes"
Denis Vlasenko [Thu, 8 Jan 2009 03:35:47 +0000 (03:35 -0000)]
sysctl: fix another corner case with "dots and slashes"

15 years agoprintf: make integer format strings print long long-sized values.
Denis Vlasenko [Sun, 4 Jan 2009 02:58:58 +0000 (02:58 -0000)]
printf: make integer format strings print long long-sized values.

function                                             old     new   delta
printf_main                                          668     834    +166
bb_strtoll                                             -      84     +84
print_direc                                          391     431     +40
conv_strtoull                                          -      19     +19
conv_strtoll                                           -      19     +19
conv_strtoul                                          16       -     -16
conv_strtol                                           16       -     -16
------------------------------------------------------------------------------
(add/remove: 4/2 grow/shrink: 2/0 up/down: 342/-32)           Total: 296 bytes

15 years agoudhcpd: disable opton to have absolute lease times in lease file
Denis Vlasenko [Thu, 1 Jan 2009 17:52:09 +0000 (17:52 -0000)]
udhcpd: disable opton to have absolute lease times in lease file
 (that does not work with dumpleases)
dumpleases: fix -a option.
networking/udhcp/*: code shrink, more compact static leases struture,
 better comments, etc

function                                             old     new   delta
find_free_or_expired_address                           -     147    +147
nobody_responds_to_arp                                 -      84     +84
read_opt                                             781     830     +49
dumpleases_main                                      435     447     +12
send_ACK                                             229     232      +3
read_staticlease                                      90      93      +3
addStaticLease                                        60      61      +1
getIpByMac                                            46      43      -3
reservedIp                                            31      20     -11
keywords                                             304     288     -16
send_offer                                           428     403     -25
write_leases                                         225     193     -32
read_leases                                          184     143     -41
read_yn                                               64       -     -64
find_address                                         191       -    -191
------------------------------------------------------------------------------
(add/remove: 2/2 grow/shrink: 5/6 up/down: 299/-383)          Total: -84 bytes

15 years agowebsite: announce 1.13.2 amd 1.12.4
Denis Vlasenko [Wed, 31 Dec 2008 03:43:24 +0000 (03:43 -0000)]
website: announce 1.13.2 amd 1.12.4

15 years agodc: fix the "base 2" patch omission of base not being set
Denis Vlasenko [Tue, 30 Dec 2008 10:40:05 +0000 (10:40 -0000)]
dc: fix the "base 2" patch omission of base not being set

15 years agolibbb: add bb_unsetenv (taken from hush).
Denis Vlasenko [Tue, 30 Dec 2008 05:05:31 +0000 (05:05 -0000)]
libbb: add bb_unsetenv (taken from hush).
udhcpc: stop filtering environment passed to the script.
crond: fix uncovered potential bug (failing unsetenv)
mdev: fix uncovered potential bug (failing unsetenv)
tcp, udpsvd: fix uncovered potential bug (failing unsetenv)

function                                             old     new   delta
safe_setenv                                            -      58     +58
bb_unsetenv                                            -      55     +55
builtin_unset                                        139     138      -1
tcpudpsvd_main                                      1843    1830     -13
free_strings_and_unsetenv                             87      53     -34
udhcp_run_script                                    1186    1133     -53
safe_setenv4                                          62       -     -62
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 0/4 up/down: 113/-163)          Total: -50 bytes

15 years agosysctl: fix gcc warning (false positive)
Denis Vlasenko [Mon, 29 Dec 2008 01:03:17 +0000 (01:03 -0000)]
sysctl: fix gcc warning (false positive)

15 years agounexpand: fix incorrect expansion, add test for it
Denis Vlasenko [Fri, 26 Dec 2008 14:56:03 +0000 (14:56 -0000)]
unexpand: fix incorrect expansion, add test for it

function                                             old     new   delta
expand_main                                          676     656     -20

15 years agos/an user/a user/
Denis Vlasenko [Thu, 25 Dec 2008 01:01:23 +0000 (01:01 -0000)]
s/an user/a user/

15 years ago*: tweak error messages
Denis Vlasenko [Wed, 24 Dec 2008 03:11:43 +0000 (03:11 -0000)]
*: tweak error messages
sysctl: shrink; support recursing if name is a directory:
 "sysctl net.ipv4.conf". Patch by xmaks AT email.cz

   text    data     bss     dec     hex filename
 793659     504    7492  801655   c3b77 busybox_old
 793576     504    7492  801572   c3b24 busybox_unstripped

15 years agolibbb: introduce and use xmalloc_ttyname (-32 in bss).
Denis Vlasenko [Tue, 23 Dec 2008 23:36:47 +0000 (23:36 -0000)]
libbb: introduce and use xmalloc_ttyname (-32 in bss).
ash: small code shrink

   text    data     bss     dec     hex filename
 793669     504    7524  801697   c3ba1 busybox_old
 793659     504    7492  801655   c3b77 busybox_unstripped

15 years ago- we already have an impl for man
Bernhard Reutner-Fischer [Mon, 22 Dec 2008 17:09:12 +0000 (17:09 -0000)]
- we already have an impl for man

15 years agoAdd fancy svn browser thingy (via Lance Albertson of OSL)
Bernhard Reutner-Fischer [Thu, 18 Dec 2008 00:44:58 +0000 (00:44 -0000)]
Add fancy svn browser thingy (via Lance Albertson of OSL)

15 years agoUpdate links to new site locations (via Lance Albertson at OSL)
Bernhard Reutner-Fischer [Thu, 18 Dec 2008 00:43:31 +0000 (00:43 -0000)]
Update links to new site locations (via Lance Albertson at OSL)

15 years agoash: fix CONFIG_ASH_OPTIMIZE_FOR_SIZE off + high-bit chars case
Denis Vlasenko [Mon, 15 Dec 2008 11:26:36 +0000 (11:26 -0000)]
ash: fix CONFIG_ASH_OPTIMIZE_FOR_SIZE off + high-bit chars case
(do we even need CONFIG_ASH_OPTIMIZE_FOR_SIZE conditional?)

15 years agoexpand: fix incorrect expansion exactly on tab boundary; shrink the code
Denis Vlasenko [Sun, 14 Dec 2008 15:45:25 +0000 (15:45 -0000)]
expand: fix incorrect expansion exactly on tab boundary; shrink the code

function                                             old     new   delta
expand_main                                          698     676     -22
xputchar                                              53       -     -53

15 years agowatchdog: build fixes, no code changes
Denis Vlasenko [Sun, 14 Dec 2008 14:49:06 +0000 (14:49 -0000)]
watchdog: build fixes, no code changes

15 years agoheader_verbose_list: show off_t size, not cast to (unsigned)
Denis Vlasenko [Fri, 12 Dec 2008 02:14:35 +0000 (02:14 -0000)]
header_verbose_list: show off_t size, not cast to (unsigned)
get_header_tar: support GNU tar's "base256" encoding

function                                             old     new   delta
get_header_tar                                      1536    1600     +64
header_verbose_list                                  242     257     +15

15 years agolibiproute: fix buggy open check: s/if (fd)/if (fd >= 0)/
Denis Vlasenko [Wed, 10 Dec 2008 14:14:09 +0000 (14:14 -0000)]
libiproute: fix buggy open check: s/if (fd)/if (fd >= 0)/
less: small optimization -15 bytes

15 years agoash: printf builtin with no arguments should not exit
Denis Vlasenko [Wed, 10 Dec 2008 11:51:45 +0000 (11:51 -0000)]
ash: printf builtin with no arguments should not exit

15 years agomount: make it more readable
Denis Vlasenko [Wed, 10 Dec 2008 11:39:18 +0000 (11:39 -0000)]
mount: make it more readable

15 years agoplacate Rob's qualms about mount.c
Denis Vlasenko [Wed, 10 Dec 2008 11:28:30 +0000 (11:28 -0000)]
placate Rob's qualms about mount.c

15 years agoadd a note that SO_BINDTODEVICE needs padded iface name on 2.6.26
Denis Vlasenko [Wed, 10 Dec 2008 11:24:33 +0000 (11:24 -0000)]
add a note that SO_BINDTODEVICE needs padded iface name on 2.6.26

15 years agobb_info_msg: make it do atomic, unbuffered writes
Denis Vlasenko [Wed, 10 Dec 2008 11:16:47 +0000 (11:16 -0000)]
bb_info_msg: make it do atomic, unbuffered writes
udhcpc: fix a problem where we don't open listening socket fast enough

function                                             old     new   delta
bb_info_msg                                           70     126     +56
change_listen_mode                                    37      78     +41
udhcp_listen_socket                                  151     124     -27
udhcpc_main                                         2344    2285     -59

15 years ago*: fix SO_BINDTODEVICE. Kernel wants at least IFNAMSIZ bytes there.
Denis Vlasenko [Wed, 10 Dec 2008 11:12:16 +0000 (11:12 -0000)]
*: fix SO_BINDTODEVICE. Kernel wants at least IFNAMSIZ bytes there.

15 years agosyslogd: comment out file locking;
Denis Vlasenko [Tue, 9 Dec 2008 22:53:31 +0000 (22:53 -0000)]
syslogd: comment out file locking;
 make signal handling syncronous (old was racy)

function                                             old     new   delta
syslogd_main                                         963    1090    +127
quit_signal                                           96       -     -96
log_locally                                          743     595    -148
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/1 up/down: 127/-244)         Total: -117 bytes

15 years agoinit: do not eat last char in messages;
Denis Vlasenko [Tue, 9 Dec 2008 21:23:31 +0000 (21:23 -0000)]
init: do not eat last char in messages;
 do not print duplicate "init:" prefix to syslog

15 years agooptimize 16- and 32-bit moves
Denis Vlasenko [Mon, 8 Dec 2008 22:56:18 +0000 (22:56 -0000)]
optimize 16- and 32-bit moves

function                                             old     new   delta
udhcpd_main                                         1239    1257     +18
udhcp_add_simple_option                               93      92      -1
buffer_read_le_u32                                    19      18      -1
unpack_gz_stream_with_info                           526     520      -6
dnsd_main                                           1470    1463      -7
udhcp_run_script                                    1208    1186     -22
send_ACK                                             255     229     -26
arping_main                                         1661    1623     -38
send_offer                                           470     428     -42
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/8 up/down: 18/-143)          Total: -125 bytes

15 years agolibbb: move crypt_make_salt() to pw_encrypt.c, reuse
Denis Vlasenko [Sun, 7 Dec 2008 01:16:34 +0000 (01:16 -0000)]
libbb: move crypt_make_salt() to pw_encrypt.c, reuse
bin-to-ascii64 conversion which does not require an array.

function                                             old     new   delta
to64                                                  29      33      +4
to64_msb_first                                        63      62      -1
ascii64                                               65       -     -65

15 years agoFix forgotten license comments
Denis Vlasenko [Sun, 7 Dec 2008 00:52:58 +0000 (00:52 -0000)]
Fix forgotten license comments

15 years agomount: cosmetics, no code changes (verified with objdump -drsx)
Denis Vlasenko [Fri, 5 Dec 2008 16:40:36 +0000 (16:40 -0000)]
mount: cosmetics, no code changes (verified with objdump -drsx)

15 years agolibbb: add xgetgrnam too. ~0 code size change
Denis Vlasenko [Fri, 5 Dec 2008 16:23:06 +0000 (16:23 -0000)]
libbb: add xgetgrnam too. ~0 code size change

15 years agolibbb/crypt: code shrink
Denis Vlasenko [Thu, 4 Dec 2008 15:29:35 +0000 (15:29 -0000)]
libbb/crypt: code shrink

function                                             old     new   delta
to64_msb_first                                         -      63     +63
des_crypt                                           1509    1338    -171
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 63/-171)          Total: -108 bytes

15 years ago- -4b and use proper define; add license note
Bernhard Reutner-Fischer [Thu, 4 Dec 2008 14:19:21 +0000 (14:19 -0000)]
- -4b and use proper define; add license note

15 years agoclarify which version of crond is known to put tasks in separate pgrps
Denis Vlasenko [Thu, 4 Dec 2008 13:57:59 +0000 (13:57 -0000)]
clarify which version of crond is known to put tasks in separate pgrps

15 years agoiproute: fix ipXXX utilities trying to parse their applet name
Denis Vlasenko [Thu, 4 Dec 2008 12:15:19 +0000 (12:15 -0000)]
iproute: fix ipXXX utilities trying to parse their applet name
 as their 1st parameter.

15 years agoFold mkpasswd applet into cryptpw.
Denis Vlasenko [Thu, 4 Dec 2008 12:05:26 +0000 (12:05 -0000)]
Fold mkpasswd applet into cryptpw.
mkpasswd is in Debian, OTOH cryptpw was added to busybox earlier.
Trying to make both camps happy by making those two applets just aliases.
They are command-line compatible. We can decide whether we want to drop one
(and which one) later.

function                                             old     new   delta
cryptpw_main                                         183     314    +131
static.methods                                        21       -     -21
packed_usage                                       25707   25648     -59
mkpasswd_main                                        307       -    -307
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/1 up/down: 131/-387)         Total: -256 bytes

15 years agoiptunnel: fix problems with including linux/ip_tunnel.h
Denis Vlasenko [Wed, 3 Dec 2008 20:16:11 +0000 (20:16 -0000)]
iptunnel: fix problems with including linux/ip_tunnel.h
 on some systems

15 years agolibbb: introduce and use xgetpwnam. ~ -150 bytes.
Denis Vlasenko [Wed, 3 Dec 2008 19:05:55 +0000 (19:05 -0000)]
libbb: introduce and use xgetpwnam. ~ -150 bytes.

15 years ago- remove superfluous comment from previous commit
Bernhard Reutner-Fischer [Wed, 3 Dec 2008 18:49:44 +0000 (18:49 -0000)]
- remove superfluous comment from previous commit

15 years ago- add new applet mkpasswd(1)
Bernhard Reutner-Fischer [Wed, 3 Dec 2008 18:48:39 +0000 (18:48 -0000)]
- add new applet mkpasswd(1)
function                                             old     new   delta
bb_ask                                                 -     355    +355
mkpasswd_main                                          -     296    +296
.rodata                                           121746  121847    +101
packed_usage                                       24632   24689     +57
static.methods                                         -      21     +21
gmatch                                               229     248     +19
bb_ask_stdin                                           -      11     +11
applet_names                                        1949    1958      +9
applet_main                                         1172    1176      +4
sulogin_main                                         503     505      +2
applet_nameofs                                       586     588      +2
sha256_hash                                          329     327      -2
correct_password                                     208     206      -2
parse_command                                       1442    1439      -3
get_cred_or_die                                      145     141      -4
passwd_main                                         1054    1044     -10
bb_askpass                                           348       -    -348
------------------------------------------------------------------------------
(add/remove: 4/1 grow/shrink: 7/5 up/down: 877/-369)          Total: 508 bytes

15 years agoash: remove TODO which seems to actually work now.
Denis Vlasenko [Wed, 3 Dec 2008 11:59:12 +0000 (11:59 -0000)]
ash: remove TODO which seems to actually work now.
 no code changes

15 years agocrond: use bb_setpgrp, not setpgrp
Denis Vlasenko [Wed, 3 Dec 2008 10:46:12 +0000 (10:46 -0000)]
crond: use bb_setpgrp, not setpgrp
platform.h: make a bit more readable

15 years agoash: finally installed it as /bin/sh on my machine.
Denis Vlasenko [Wed, 3 Dec 2008 10:36:26 +0000 (10:36 -0000)]
ash: finally installed it as /bin/sh on my machine.
 some breakage noticed, the most dire is mishandled ^C.
 fixing it.

function                                             old     new   delta
blocking_wait_with_raise_on_sig                        -      40     +40
waitforjob                                            85     100     +15
setsignal                                            280     278      -2
evalvar                                             1376    1374      -2
waitcmd                                              186     182      -4
dowait                                               350     316     -34
redirect                                            1231    1185     -46
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/5 up/down: 55/-88)            Total: -33 bytes

15 years agolibbb: password/group function helpers rewritten by Tito:
Denis Vlasenko [Tue, 2 Dec 2008 22:56:59 +0000 (22:56 -0000)]
libbb: password/group function helpers rewritten by Tito:

function                                             old     new   delta
xgetpwuid                                              -      27     +27
uid2uname_utoa                                         -      22     +22
gid2group_utoa                                         -      22     +22
uid2uname                                              -      18     +18
gid2group                                              -      18     +18
buffer_fill_and_print                                179     196     +17
print_user                                            12      24     +12
print_group                                           12      24     +12
get_cached                                            89      99     +10
...
print_common                                         134     120     -14
vlock_main                                           415     396     -19
logger_main                                          410     387     -23
crontab_main                                         642     609     -33
bb_getpwuid                                           42       -     -42
bb_getgrgid                                           42       -     -42
bb_getug                                              80       -     -80
------------------------------------------------------------------------------
(add/remove: 6/3 grow/shrink: 9/11 up/down: 187/-296)        Total: -109 bytes

15 years agocrond: put tasks in separate process groups
Denis Vlasenko [Tue, 2 Dec 2008 21:52:24 +0000 (21:52 -0000)]
crond: put tasks in separate process groups

15 years agovconfig: style fix, no code changes
Denis Vlasenko [Tue, 2 Dec 2008 20:38:36 +0000 (20:38 -0000)]
vconfig: style fix, no code changes

15 years agolibbb: add strncpy_IFNAMSIZ
Denis Vlasenko [Tue, 2 Dec 2008 18:18:50 +0000 (18:18 -0000)]
libbb: add strncpy_IFNAMSIZ

function                                             old     new   delta
...
udhcp_read_interface                                 225     220      -5
brctl_main                                          1151    1146      -5
add_interface                                        109     104      -5
ipaddr_list_or_flush                                2174    2167      -7
do_add_ioctl                                          88      80      -8
vconfig_main                                         249     240      -9
do_del_ioctl                                          78      68     -10
do_iplink                                           1186    1173     -13
do_if_fetch                                          766     753     -13
buffer_fill_and_print                                196     179     -17
parse_args                                          1709    1684     -25
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/20 up/down: 11/-140)         Total: -129 bytes

15 years ago...and exclude LC_ALL too
Denis Vlasenko [Mon, 1 Dec 2008 12:38:36 +0000 (12:38 -0000)]
...and exclude LC_ALL too

15 years agobuild system: fix sorting + locale in make objsizes
Denis Vlasenko [Mon, 1 Dec 2008 12:36:41 +0000 (12:36 -0000)]
build system: fix sorting + locale in make objsizes

15 years agovolume_id/fat: careful with sector#, it may not fit in 32 bits. +91 bytes
Denis Vlasenko [Sun, 30 Nov 2008 17:41:31 +0000 (17:41 -0000)]
volume_id/fat: careful with sector#, it may not fit in 32 bits. +91 bytes
volume_id/*: a bit of code shrink

15 years agoinit: O_NONBLOCK needs more thought. reverted for now
Denis Vlasenko [Sat, 29 Nov 2008 23:14:37 +0000 (23:14 -0000)]
init: O_NONBLOCK needs more thought. reverted for now

15 years agomountpoint: add -n option (by Vladimir)
Denis Vlasenko [Sat, 29 Nov 2008 12:54:16 +0000 (12:54 -0000)]
mountpoint: add -n option (by Vladimir)

   text    data     bss     dec     hex filename
 799859     560    7748  808167   c54e7 busybox_old
 799845     560    7748  808153   c54d9 busybox_unstripped

15 years agoinotifyd: save resourses by closing unused inotify descriptors
Denis Vlasenko [Sat, 29 Nov 2008 09:07:24 +0000 (09:07 -0000)]
inotifyd: save resourses by closing unused inotify descriptors

15 years agoacpid: new applet by Vladimir. +737 bytes
Denis Vlasenko [Sat, 29 Nov 2008 09:05:50 +0000 (09:05 -0000)]
acpid: new applet by Vladimir. +737 bytes

15 years agoAnnounce 1.13.1 and 1.12.3
Denis Vlasenko [Sat, 29 Nov 2008 06:57:53 +0000 (06:57 -0000)]
Announce 1.13.1 and 1.12.3

15 years agoash: add FIXME
Denis Vlasenko [Fri, 28 Nov 2008 04:01:03 +0000 (04:01 -0000)]
ash: add FIXME

15 years agoash: "ash: syntax error: XXX unexpected" -> "ash: syntax error: unexpected XXX"
Denis Vlasenko [Fri, 28 Nov 2008 03:50:46 +0000 (03:50 -0000)]
ash: "ash: syntax error: XXX unexpected" -> "ash: syntax error: unexpected XXX"

15 years agoash: shrink on top of previous change
Denis Vlasenko [Fri, 28 Nov 2008 03:42:31 +0000 (03:42 -0000)]
ash: shrink on top of previous change

function                                             old     new   delta
readtoken1                                          3201    3221     +20
xxreadtoken                                          306     313      +7
pungetc                                               13      12      -1
ash_main                                            1380    1379      -1
setinputfile                                         196     192      -4
plinno                                                 4       -      -4
parsenleft                                             4       -      -4
parsenextc                                             4       -      -4
parselleft                                             4       -      -4
setinputstring                                        67      62      -5
pushstring                                           123     114      -9
pgetc                                                455     438     -17
pushfile                                              69      31     -38
popfile                                              114      76     -38
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 2/8 up/down: 27/-129)          Total: -102 bytes
   text    data     bss     dec     hex filename
 798750     564    7756  807070   c509e busybox_old
 798664     560    7748  806972   c503c busybox_unstripped

15 years agoash: better fix for ash -c 'echo 5&' and ash -c 'sleep 5&'
Denis Vlasenko [Fri, 28 Nov 2008 03:41:47 +0000 (03:41 -0000)]
ash: better fix for ash -c 'echo 5&' and ash -c 'sleep 5&'
 with testcase

15 years agoremove a few superfluous includes
Denis Vlasenko [Tue, 25 Nov 2008 13:33:11 +0000 (13:33 -0000)]
remove a few superfluous includes

15 years agoash,hush: add TODO for rare build failure
Denis Vlasenko [Tue, 25 Nov 2008 01:36:03 +0000 (01:36 -0000)]
ash,hush: add TODO for rare build failure
*: remove some redundant includes

15 years agoash: fix bad interaction between ash -c '....&' and bash compat
Denis Vlasenko [Tue, 25 Nov 2008 01:34:52 +0000 (01:34 -0000)]
ash: fix bad interaction between ash -c '....&' and bash compat

15 years agotimeout: fix a few bugs. vda is stupid
Denis Vlasenko [Mon, 24 Nov 2008 22:34:47 +0000 (22:34 -0000)]
timeout: fix a few bugs. vda is stupid

15 years agotrim help text a bit
Denis Vlasenko [Mon, 24 Nov 2008 13:42:24 +0000 (13:42 -0000)]
trim help text a bit

15 years agotimeout: new applet. 370 bytes. by Roberto Foglietta.
Denis Vlasenko [Mon, 24 Nov 2008 13:25:20 +0000 (13:25 -0000)]
timeout: new applet. 370 bytes. by Roberto Foglietta.

15 years agovi: speedup and code shrink (Walter Harms)
Denis Vlasenko [Mon, 24 Nov 2008 07:34:42 +0000 (07:34 -0000)]
vi: speedup and code shrink (Walter Harms)
networking/interface.c: silence warning (Vladimir)
wget: more robust EINTR detection