aboutsummaryrefslogtreecommitdiff
path: root/procps (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* dos2unix: tiny shrinkDenis Vlasenko2008-03-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | login,su: fix setup_environment() so that it works as intended (parameter names were a bit misleading) fdisk: shrink help text: shrink function old new delta login_main 1658 1701 +43 setup_environment 206 203 -3 dos_compatible_flag 4 1 -3 dos2unix_main 383 375 -8 get_boot 1724 1702 -22 fdisk_main 2949 2889 -60 packed_usage 24250 23948 -302 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 43/-398) Total: -355 bytes text data bss dec hex filename 798768 661 7428 806857 c4fc9 busybox_old 798327 658 7428 806413 c4e0d busybox_unstripped
* nmeter: fix bug where %[mf] behaves as %[mt]Denis Vlasenko2008-02-291-1/+1
|
* *: add optimization barrier to all "G trick" locationsDenis Vlasenko2008-02-271-5/+5
|
* watch: shrink (by walter harms <WHarms AT bfs.de>)Denis Vlasenko2008-02-241-29/+23
| | | | | watch_main 327 263 -64
* libbb: introduce bb_signals and bb_signals_recursive,Denis Vlasenko2008-02-161-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | which sets same handler for many signals. sig_catch is nuked (bb_signals_recursive is more descriptive name). *: use them as appropriate. function old new delta bb_signals_recursive - 95 +95 bb_signals - 52 +52 run_command 258 273 +15 svlogd_main 1368 1377 +9 runsv_main 1746 1752 +6 runsvdir_main 1643 1646 +3 UNSPEC_print 64 66 +2 time_main 1128 1127 -1 ... resize_main 246 210 -36 sig_catch 63 - -63 set_fatal_sighandler 85 14 -71 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 5/24 up/down: 182/-548) Total: -366 bytes
* - spelling fixesBernhard Reutner-Fischer2008-02-111-1/+1
|
* getpot: add support for "a+" specifier for nonnegative int parameters.Denis Vlasenko2008-02-101-6/+3
| | | | | | | | | | | | | By Vladimir Dronnikov <dronnikov at gmail.com>. fdisk and top are converted as an example. function old new delta getopt32 1340 1370 +30 top_main 1137 1120 -17 fdisk_main 3033 2949 -84 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 30/-101) Total: -71 bytes
* ps: fixlet to disabled compat codeDenis Vlasenko2008-02-031-2/+2
|
* ps: add (disabled) compat codeDenis Vlasenko2008-02-021-0/+14
|
* - be C99 friendly. Anonymous unions are a GNU extension. This change isBernhard Reutner-Fischer2008-01-291-12/+12
| | | | | size-neutral WRT -std=gnu99 and fixes several compilation errors for strict C99 mode.
* ps: fix yet another buglet from recent ulltoa conversion :(Denis Vlasenko2008-01-071-4/+4
|
* ps: fix COMMAND column adjustmentDenis Vlasenko2008-01-071-2/+2
|
* ps: fix build breakage from vda's recent commitDenis Vlasenko2008-01-072-49/+49
| | | | | *: whitespace fixes
* ps: fix overflow in USER and VSZ columnsDenis Vlasenko2008-01-063-74/+35
| | | | | | | | | | | | | | | | | function old new delta smart_ulltoa4 - 280 +280 smart_ulltoa5 283 408 +125 ulltoa6_and_space - 25 +25 scale 28 38 +10 bbunpack 358 366 +8 ps_main 259 261 +2 glob3 35 37 +2 fill_bounds 172 174 +2 process_stdin 456 446 -10 smart_ulltoa6 406 - -406 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 6/1 up/down: 454/-416) Total: 38 bytes
* ps: add conditional support for -o [e]timeDenis Vlasenko2008-01-052-45/+186
|
* defconfig: updateDenis Vlasenko2007-12-241-1/+1
| | | | | | | appletli.c: add vda's (C) top: fixlet for incorrect display of "0" Makefile: reduce stack size from 20k to 16k
* sysctl: add -e: supress warnings about invalid key (Jeremy Kerr <jk@ozlabs.org>)Denis Vlasenko2007-11-291-97/+71
| | | | | | | | | code shrink: text data bss dec hex filename 775565 929 9100 785594 bfcba busybox_old 775296 929 9100 785325 bfbad busybox_unstripped
* which: fix testsuite failureDenis Vlasenko2007-11-251-4/+6
| | | | | | pidof: do not output empty line if nothing found testsuite: disable false positive
* cosmetic change in message textDenis Vlasenko2007-11-151-1/+1
|
* bad syntax error should go to stderrPaul Fox2007-11-141-1/+1
|
* syscall: code shrinkDenis Vlasenko2007-10-291-99/+86
| | | | | | | text data bss dec hex filename 777209 974 9676 787859 c0593 busybox_old 777042 974 9676 787692 c04ec busybox_unstripped
* fixes revealed by randomconfig runDenis Vlasenko2007-10-161-1/+3
|
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-1112-13/+13
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* fixlet to pgrep/pkillDenis Vlasenko2007-09-301-1/+1
|
* print_signames_and_exit -> print_signames (because of "ash calls kill_main")Denis Vlasenko2007-09-302-3/+6
|
* pgrep,pkill: new applets by Loic Grenie <loic.grenie@gmail.com>Denis Vlasenko2007-09-294-26/+172
|
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-273-5/+5
|
* introduce safe_poll (fixes a problem in top)Denis Vlasenko2007-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | function old new delta safe_poll - 77 +77 svlogd_main 1470 1466 -4 zcip_main 1530 1524 -6 forkexec 1345 1338 -7 decode_format_string 795 788 -7 collect_blk 474 467 -7 buffer_pread 540 532 -8 tftp 1182 1172 -10 microcom_main 763 749 -14 arpping 441 424 -17 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/9 up/down: 77/-80) Total: -3 bytes text data bss dec hex filename 770162 1034 10404 781600 bed20 busybox_old 770158 1034 10404 781596 bed1c busybox_unstripped
* top: small fix for command line wrappingDenis Vlasenko2007-09-081-2/+2
|
* top: get rid of on-stack variable buffers, use permanent one.Denis Vlasenko2007-09-081-21/+24
| | | | | | | | | | | | | | | | code shrank with and without TOPMEM: top_main 828 844 +16 display_process_list 1525 1473 -52 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 16/-52) Total: -36 bytes top_main 1150 1171 +21 display_topmem_process_list 1150 1167 +17 display_process_list 1525 1473 -52 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 38/-52) Total: -14 bytes
* top: add sizeof(G) check; fix styleDenis Vlasenko2007-09-081-31/+17
|
* top: TOPMEM feature - 's(how sizes)' command. +2.5k when enabled,Denis Vlasenko2007-09-082-53/+389
| | | | | | +80 bytes when disabled (mainly because of text wrapping fixes in display_process_list).
* top: another readability fixDenis Vlasenko2007-08-291-3/+2
|
* vsz and rss are unsigned longs (ulong ~= width of void* =>Denis Vlasenko2007-08-291-4/+4
| | | | | | | suitable for expressing total RAM in system). We account for "32 bit in 64 bit" systems by storing kbytes, not bytes there. Should allow for up to ~2000 Gb RAM on 32 bits.
* top: don't wait before final bailout (try top -b -n1).Denis Vlasenko2007-08-291-37/+22
| | | | | top: make code a bit more readable.
* top: use poll instead of select for waiting on one descriptorDenis Vlasenko2007-08-281-20/+19
| | | | | | | | | | | | | | | | | | | | | smart_ulltoa5: make it more cryptic. -50 bytes. function old new delta passwd_main 1095 1103 +8 getNum 557 565 +8 buffer_fill_and_print 73 76 +3 udhcpc_main 2393 2395 +2 mkfs_minix_main 3071 3070 -1 dname_enc 377 373 -4 expmeta 480 472 -8 smart_ulltoa5 334 283 -51 top_main 911 815 -96 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/5 up/down: 21/-160) Total: -139 bytes text data bss dec hex filename 770872 1063 10788 782723 bf183 busybox_old 770732 1063 10788 782583 bf0f7 busybox_unstripped
* *: compile fixes for 64-bit buildDenis Vlasenko2007-08-231-29/+27
|
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-184-6/+6
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* assorted fixes for breakage found by randomconfigDenis Vlasenko2007-08-171-27/+29
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-123-17/+21
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* ls,ps,watch: measure terminal width on fd 0, not 1Denis Vlasenko2007-08-092-4/+5
|
* ps: fix non-desktop ps -ww -- thanks rockeychuDenis Vlasenko2007-07-251-4/+9
|
* top: nested function allows us to reuse some codeDenis Vlasenko2007-07-152-54/+58
| | | | | | | | | | | | | | | (not everyone likes them - but code does get smaller). display_generic - 761 +761 static.fmt_100percent_8 - 111 +111 fmt_100percent_8 101 - -101 display_status 1489 581 -908 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 0/1 up/down: 872/-1009) Total: -137 bytes text data bss dec hex filename 677020 3344 13936 694300 a981c busybox_old 676876 3344 13936 694156 a978c busybox_unstripped
* top: make "100%" case less ugly, and shrink code while at itDenis Vlasenko2007-07-151-20/+42
| | | | | | | | | | | | fmt_100percent_8 - 101 +101 .rodata 129185 129153 -32 display_status 1726 1489 -237 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 101/-269) Total: -168 bytes text data bss dec hex filename 677180 3344 13936 694460 a98bc busybox_old 677020 3344 13936 694300 a981c busybox_unstripped
* top: simpler loadavg processingDenis Vlasenko2007-07-151-14/+10
| | | | | | | | | | display_status 1787 1726 -61 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-61) Total: -61 bytes text data bss dec hex filename 677244 3344 13936 694524 a98fc busybox_old 677180 3344 13936 694460 a98bc busybox_unstripped
* top: truncate usernames to 8 charsDenis Vlasenko2007-07-151-1/+1
|
* ps: revert wrong "optimization": (i & 1) -> iDenis Vlasenko2007-07-011-1/+1
|
* ps: fix "unused variable" warning; fix integer variable declared as char.Denis Vlasenko2007-07-011-3/+4
|
* top,ps: improve /proc/PID/cmdinfo reading codeDenis Vlasenko2007-06-302-51/+34
| | | | | | | | | | | | | | | | | | | | | | | | 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
* killall, pidof: use argv0 for process matching tooDenis Vlasenko2007-06-301-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | top: show cmdline, not comm field (fixes problems with re-execed applets showing as processes with name "exe", and not being found by pidof/killall by applet name) function old new delta find_pid_by_name 98 156 +58 procps_scan 692 732 +40 top_main 2724 2762 +38 find_pair 164 180 +16 collect_int 114 123 +9 cmp_main 547 555 +8 collect_fork 112 119 +7 collect_ctx 112 119 +7 read_package_field 253 257 +4 passwd_main 1983 1985 +2 process_stdin 435 433 -2 xstrtoul_range_sfx 229 226 -3 get_next_block 1852 1849 -3 arith 2042 2033 -9 sv_main 1236 1226 -10 singlemount 4690 4672 -18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 10/6 up/down: 189/-45) Total: 144 bytes text data bss dec hex filename 734789 3028 14400 752217 b7a59 busybox_old 734933 3028 14400 752361 b7ae9 busybox_unstripped