aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-10-28bloat-o-meter: make it python3 compliantMarek Polacek
Python 3 doesn't support the iterkeys() method anymore. Use iter(foo.keys()) instead of foo.iterkeys(). Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28*: use _exit() in sighandlers; showkey: do not use exit-thru-sighandlerMarek Polacek
While at it, make ESC sequences more readable; and removed check for isatty(stdin) in reset. Code shrink: text data bss dec hex filename 884771 936 17216 902923 dc70b busybox_old 884723 936 17216 902875 dc6db busybox_unstripped Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28scripts: remove bitrotted scripts/individualDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28update docs/new-applet-HOWTO.txtHolger Blasum
Signed-off-by: Holger Blasum <hbl@sysgo.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28ipcrm: small code shrinkDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28*: whitespace fixesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28mount: pass NULL, not "", as "data" to mount syscall if we have no optsAlexander Shishkin
When mounting a filesystem without any additional options (data parameter to the mount(2) syscall), pass NULL instead of an empty string like GNU mount does. This fixes, for example mounting cgroup fs with bbox mount. Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28login: free fromhost upon cleaning upAlexander Shishkin
Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28crc32: cleanups, no code changesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-28netstat: was using buffers one byte short for scanf (no place for NUL). fixingDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-27libbb: introduce and use common crc32 routineDenys Vlasenko
function old new delta crc32_block_endian1 - 37 +37 crc32_block_endian0 - 34 +34 global_crc32_table - 8 +8 file_read 82 87 +5 gzip_main 211 214 +3 xz_crc32 40 35 -5 crc32_table 8 - -8 calculate_gunzip_crc 54 34 -20 lzo_crc32 54 25 -29 cksum_main 298 211 -87 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 2/4 up/down: 87/-149) Total: -62 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-27netstat: fix IPv6 problem (garbage in scope_id); code shrinkDenys Vlasenko
function old new delta add_to_prg_cache_if_socket - 253 +253 print_inet_line 226 241 +15 udp_do_one 119 131 +12 tcp_do_one 65 77 +12 unix_do_one 530 529 -1 dir_act 215 207 -8 netstat_main 585 553 -32 .rodata 145592 145525 -67 file_act 255 - -255 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 3/4 up/down: 292/-363) Total: -71 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-27Merge branch 'master' of git+ssh://busybox.net/var/lib/git/busyboxDenys Vlasenko
2010-10-27top: Use _exit() instead of exit() in sighandlerMarek Polacek
Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-27netstat: fix -r display in usage textBob Dunlop
Signed-off-by: Bob Dunlop <bob.dunlop@xyzzy.org.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-27whitespace fixDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-26mv: implement -n optionDenys Vlasenko
function old new delta mv_longopts 23 36 +13 mv_main 510 520 +10 packed_usage 27218 27225 +7 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-26powertop: simplified C-state display codeDenys Vlasenko
function old new delta .rodata 145530 145514 -16 powertop_main 1510 1403 -107 Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-26powertop: IPIs and hw irqs were swapped, fixingDenys Vlasenko
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-26powertop: fixes to output format and code shrinkDenys Vlasenko
function old new delta process_timer_stats - 631 +631 clear_lines 72 74 +2 process_irq_counts 729 726 -3 .rodata 145699 145530 -169 powertop_main 2341 1510 -831 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/2 up/down: 1359/-1729) Total: -370 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-26powertop: code shrinkDenys Vlasenko
function old new delta process_irq_count_deltas - 729 +729 read_cstate_counts - 358 +358 save_line - 150 +150 clear_lines 80 72 -8 line_compare 18 7 -11 .rodata 145736 145699 -37 powertop_main 2527 2341 -186 push_line 193 - -193 read_data 348 - -348 do_proc_irq 890 - -890 ------------------------------------------------------------------------------ (add/remove: 3/3 grow/shrink: 0/4 up/down: 1237/-1673) Total: -436 bytes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-25libbb/process_escape_sequence.c: fix recently broken handling of \\Denys Vlasenko
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-25powertop: new appletMarek Polacek
Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-25fdisk: initial stab at GPT partition supportKevin Cernekee
Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-25init: do not sleep forever on usage errorsDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24sha1: small tweak for clearer code, no logic changesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24sha1: use Rob's code, it's smaller and fasterDenys Vlasenko
function old new delta static.rconsts - 16 +16 sha1_process_block64 460 298 -162 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 16/-162) Total: -146 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24md5/sha1sum: code shrinkDenys Vlasenko
function old new delta hash_file 357 279 -78 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24umount: I forgot to change another PATH_MAX to 4096Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24finish busybox.1 renamingDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24awk: reduce ifdef forestRob Landley
Signed-off-by: Rob Landley <rob@landley.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24English fixes to docs/smallint.txtDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24adding docs/smallint.txtDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24Remove check for supported libc.Denys Vlasenko
If it is not supported, it won't work. No need to break working ones which happen to this over this check. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24umount: do not (ab)use PATH_MAX as mntent buffer sizeDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24remove unused SC_x (serial port names) definesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24correct manpage nameDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24init: do not clear CRTSCTS (fix from Debian bug 528560)Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-24awk: fix breakage in last commitDenys Vlasenko
While at it, made bb_process_escape_sequence faster (same size) function old new delta nextchar 49 53 +4 bb_process_escape_sequence 138 140 +2 next_token 838 839 +1 static.charmap 20 18 -2 is_assignment 143 135 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/2 up/down: 7/-10) Total: -3 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-23libbb: introduce and use strcpy_and_process_escape_sequencesDenys Vlasenko
function old new delta strcpy_and_process_escape_sequences - 50 +50 bb_process_escape_sequence 148 138 -10 printf_main 789 776 -13 getty_main 1897 1831 -66 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 50/-89) Total: -39 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-23awk: fix segfault on closing non-opened fileDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-22mount: code shrink (-81 bytes)Alexander Shishkin
Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-22*: introduce and use xmkstemp. -65 bytes.Alexander Shishkin
Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-22smemcap: close /proc handle upon cleaning upAlexander Shishkin
Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-22nbd-client: kill unused variable (total 0 bytes)Alexander Shishkin
Signed-off-by: Alexander Shishkin <virtuoso@slind.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-22pmap: get rid of a warningDenys Vlasenko
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-21udhcpd: reduce stack usage by ~700 bytes. +28 bytes code sizeDenys Vlasenko
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
2010-10-21patch: implement -E optionLukas Huba
Signed-off-by: Lukas Huba <Huba.Lukas@centrum.cz> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-21revert last change (wrong author)Denys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-21patch: implement -E optionGilles Espinasse
Signed-off-by: Gilles Espinasse <g.esp@free.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>