aboutsummaryrefslogtreecommitdiff
path: root/procps
Commit message (Collapse)AuthorAgeFilesLines
* more of -Wall fixes from Cristian Ionescu-Idbohrn.Gravatar Denis Vlasenko2008-05-155-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some are fixing real bugs. function old new delta syslogd_main 938 958 +20 get_signum 136 143 +7 obj_load 777 782 +5 recv_from_to 210 214 +4 get_next_block 1795 1799 +4 display_topmem_process_list 1117 1121 +4 logread_main 484 487 +3 buffer_fill_and_print 73 76 +3 kill_main 687 689 +2 ll_remember_index 240 241 +1 do_stats 452 453 +1 if_readconf 166 165 -1 display_process_list 1192 1191 -1 run_applet_and_exit 507 505 -2 print_signames 33 31 -2 parse_one_line 1092 1090 -2 find_out_spec 57 55 -2 add_ksymoops_symbols 421 419 -2 ash_main 1407 1402 -5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 11/8 up/down: 54/-17) Total: 37 bytes
* top: fix build failureGravatar Denis Vlasenko2008-04-171-1/+6
|
* shells: do not frocibly enable test, echo and kill _applets_,Gravatar Denis Vlasenko2008-04-011-1/+0
| | | | | | | | | | | | | | | | | | | just build relevant source and use xxx_main functions. build system: add a special case when we have exactly one applet enabled (makes "true", "false", "basename" REALLY tiny). getopt32: do not use stdio. function old new delta getopt32 1385 1412 +27 make_device 1187 1200 +13 basename_main 120 127 +7 tcpudpsvd_main 1922 1926 +4 testcmd 5 - -5 echocmd 5 - -5 fuser_main 1243 1231 -12 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 4/1 up/down: 51/-22) Total: 29 bytes
* fuser: fix vda's breakage: DOH! chdir'ing to /proc breaks relative pathsGravatar Denis Vlasenko2008-03-291-6/+4
|
* patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes)Gravatar Denis Vlasenko2008-03-231-2/+0
| | | | | *: removal of #include <getopt.h>
* let top build without TERMIOS enabledGravatar Paul Fox2008-03-201-0/+2
|
* *: s/BB_SIGS_FATAL/BB_FATAL_SIGS/ (latter proved easier to remember)Gravatar Denis Vlasenko2008-03-191-19/+29
| | | | | top: fix "top </dev/null" case (by Cristian Ionescu-Idbohrn)
* *: fix fallout from -Wunused-parameterGravatar Denis Vlasenko2008-03-171-1/+1
| | | | | | | | | | | | | | | | | | function old new delta bbunpack 358 366 +8 passwd_main 1070 1072 +2 handle_incoming_and_exit 2651 2653 +2 getpty 88 86 -2 script_main 975 972 -3 inetd_main 2036 2033 -3 dname_enc 377 373 -4 make_new_session 474 462 -12 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/5 up/down: 12/-24) Total: -12 bytes text data bss dec hex filename 797429 658 7428 805515 c4a8b busybox_old 797417 658 7428 805503 c4a7f busybox_unstripped
* *: add -Wunused-parameter; fix resulting breakageGravatar Denis Vlasenko2008-03-1710-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
* fuser: bugfixes and shrink. It was assuming that xmalloc zeroes returned area!Gravatar Denis Vlasenko2008-03-171-221/+179
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta scan_dir_links - 106 +106 add_inode - 89 +89 scan_link - 78 +78 file_to_dev_inode - 64 +64 search_dev_inode - 63 +63 add_pid - 39 +39 packed_usage 23948 23928 -20 fuser_add_pid 49 - -49 fuser_file_to_dev_inode 64 - -64 fuser_search_dev_inode 77 - -77 fuser_scan_link 91 - -91 fuser_scan_dir_links 108 - -108 fuser_add_inode 124 - -124 fuser_main 1450 1243 -207 ------------------------------------------------------------------------------ (add/remove: 6/6 grow/shrink: 0/2 up/down: 439/-740) Total: -301 bytes text data bss dec hex filename 798327 658 7428 806413 c4e0d busybox_old 797988 658 7428 806074 c4cba busybox_unstripped
* dos2unix: tiny shrinkGravatar Denis 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]Gravatar Denis Vlasenko2008-02-291-1/+1
|
* *: add optimization barrier to all "G trick" locationsGravatar Denis Vlasenko2008-02-271-5/+5
|
* watch: shrink (by walter harms <WHarms AT bfs.de>)Gravatar Denis Vlasenko2008-02-241-29/+23
| | | | | watch_main 327 263 -64
* libbb: introduce bb_signals and bb_signals_recursive,Gravatar 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 fixesGravatar Bernhard Reutner-Fischer2008-02-111-1/+1
|
* getpot: add support for "a+" specifier for nonnegative int parameters.Gravatar 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 codeGravatar Denis Vlasenko2008-02-031-2/+2
|
* ps: add (disabled) compat codeGravatar Denis Vlasenko2008-02-021-0/+14
|
* - be C99 friendly. Anonymous unions are a GNU extension. This change isGravatar Bernhard 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 :(Gravatar Denis Vlasenko2008-01-071-4/+4
|
* ps: fix COMMAND column adjustmentGravatar Denis Vlasenko2008-01-071-2/+2
|
* ps: fix build breakage from vda's recent commitGravatar Denis Vlasenko2008-01-072-49/+49
| | | | | *: whitespace fixes
* ps: fix overflow in USER and VSZ columnsGravatar Denis 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]timeGravatar Denis Vlasenko2008-01-052-45/+186
|
* defconfig: updateGravatar Denis 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>)Gravatar 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 failureGravatar Denis Vlasenko2007-11-251-4/+6
| | | | | | pidof: do not output empty line if nothing found testsuite: disable false positive
* cosmetic change in message textGravatar Denis Vlasenko2007-11-151-1/+1
|
* bad syntax error should go to stderrGravatar Paul Fox2007-11-141-1/+1
|
* syscall: code shrinkGravatar Denis 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 runGravatar Denis Vlasenko2007-10-161-1/+3
|
* add -fvisibility=hidden to CC flags, mark XXX_main functionsGravatar Denis Vlasenko2007-10-1112-13/+13
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* fixlet to pgrep/pkillGravatar Denis Vlasenko2007-09-301-1/+1
|
* print_signames_and_exit -> print_signames (because of "ash calls kill_main")Gravatar Denis Vlasenko2007-09-302-3/+6
|
* pgrep,pkill: new applets by Loic Grenie <loic.grenie@gmail.com>Gravatar Denis Vlasenko2007-09-294-26/+172
|
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Gravatar Denis Vlasenko2007-09-273-5/+5
|
* introduce safe_poll (fixes a problem in top)Gravatar 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 wrappingGravatar Denis Vlasenko2007-09-081-2/+2
|
* top: get rid of on-stack variable buffers, use permanent one.Gravatar 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 styleGravatar Denis Vlasenko2007-09-081-31/+17
|
* top: TOPMEM feature - 's(how sizes)' command. +2.5k when enabled,Gravatar Denis Vlasenko2007-09-082-53/+389
| | | | | | +80 bytes when disabled (mainly because of text wrapping fixes in display_process_list).
* top: another readability fixGravatar Denis Vlasenko2007-08-291-3/+2
|
* vsz and rss are unsigned longs (ulong ~= width of void* =>Gravatar 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).Gravatar Denis Vlasenko2007-08-291-37/+22
| | | | | top: make code a bit more readable.
* top: use poll instead of select for waiting on one descriptorGravatar Denis 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 buildGravatar Denis Vlasenko2007-08-231-29/+27
|
* don't pass argc in getopt32, it's superfluousGravatar Denis 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 randomconfigGravatar Denis Vlasenko2007-08-171-27/+29
|
* trylink: produce even more info about final link stageGravatar Denis 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