aboutsummaryrefslogtreecommitdiff
path: root/miscutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-1125-28/+28
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* printf("%s\n") -> puts()Denis Vlasenko2007-10-011-1/+1
|
* 'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.Denis Vlasenko2007-10-014-4/+4
| | | | | 263 bytes saved.
* introduce and use close_on_exec_on(fd). -50 bytes.Denis Vlasenko2007-09-301-4/+1
|
* small code shrinkDenis Vlasenko2007-09-291-2/+1
|
* hdparm: paranoia-induced fix against theoretical div-by-0 caseDenis Vlasenko2007-09-281-2/+2
|
* hdparm: more robust (re overflows) code. +38 bytes.Denis Vlasenko2007-09-281-25/+23
|
* hdparm: reduce possibility of numeric overflow in -T.Denis Vlasenko2007-09-281-6/+14
| | | | | | | do_time 386 410 +24 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 24/0) Total: 24 bytes
* hdparm: simplify timing measurement (it wa the last last userDenis Vlasenko2007-09-281-64/+62
| | | | | | | | | | | | | | | of setitimer in the tree). static.thousand 16 - -16 read_big_block 81 46 -35 getitimer 41 - -41 setitimer 47 - -47 __GI_setitimer 47 - -47 do_time 480 386 -94 ------------------------------------------------------------------------------ (add/remove: 0/4 grow/shrink: 0/2 up/down: 0/-280) Total: -280 bytes M miscutils/hdparm.c
* hdparm: get rid of static variablesDenis Vlasenko2007-09-281-97/+179
| | | | | | | | | | | | | process_dev 5309 5311 +2 unregister_hwif 1 - -1 ........... Xreadahead 4 - -4 seek_to_zero 25 17 -8 hdparm_main 1242 1227 -15 do_time 547 480 -67 ------------------------------------------------------------------------------ (add/remove: 0/83 grow/shrink: 1/3 up/down: 2/-248) Total: -246 bytes
* less: make 'f' page forwardDenis Vlasenko2007-09-271-1/+1
|
* hdparm: use fixed fd #3 for device being interrogatedDenis Vlasenko2007-09-271-26/+30
| | | | | (surprisingly, on i386 almost no code size change)
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-276-83/+71
|
* style and message text fixesDenis Vlasenko2007-09-271-1/+1
|
* introduce safe_poll (fixes a problem in top)Denis Vlasenko2007-09-271-2/+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
* include libbb.h, not busybox.hDenis Vlasenko2007-09-221-1/+1
|
* - actually mv microcom.c to miscutilsBernhard Reutner-Fischer2007-09-221-0/+138
|
* move microcom to miscutilsDenis Vlasenko2007-09-222-0/+7
|
* watchdog: allow millisecond spec (-t 250ms)Denis Vlasenko2007-09-051-9/+15
| | | | | | | | | | | | function old new delta packed_usage 23069 23113 +44 static.suffixes - 24 +24 watchdog_main 147 160 +13 static.V - 1 +1 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/0 up/down: 82/0) Total: 82 bytes
* crond: code shrinkDenis Vlasenko2007-08-191-59/+21
|
* libbb,crond,lash: fix getopt32 (don't know how it managed to slip through)Denis Vlasenko2007-08-191-1/+1
| | | | | *: fcntl(fd, F_GETFL) doesn't require third parameter at all.
* crond: don't start sendmail with absolute pathDenis Vlasenko2007-08-181-8/+8
| | | | | crond: don't report obsolete version, report true bbox version
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-189-9/+9
| | | | | | | | (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-5/+4
|
* hdparm: shrink rodata by ~250 bytesDenis Vlasenko2007-08-161-53/+24
|
* whitespace fixes, no code changesDenis Vlasenko2007-08-161-80/+81
|
* httpd: round down sendfile byte count to 64kDenis Vlasenko2007-08-131-1/+1
| | | | | *: style fixes
* s/#ifdef CONFIG_/#if ENABLE_/gDenis Vlasenko2007-08-131-4/+3
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-125-32/+36
| | | | | | | | | 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
* less: add a bit more robustness in keyboard reading codeDenis Vlasenko2007-08-031-1/+3
|
* ttysize: update copyrightDenis Vlasenko2007-08-031-1/+6
|
* ttysize: new applet. +200 bytesDenis Vlasenko2007-08-023-0/+48
|
* Replace index_in_[sub]str_array with index_in_[sub]strings,Denis Vlasenko2007-07-241-18/+20
| | | | | | | | | which scans thru "abc\0def\0123\0\0" type strings. Saves 250 bytes. text data bss dec hex filename 781266 1328 11844 794438 c1f46 busybox_old 781010 1328 11844 794182 c1e46 busybox_unstripped
* style fix (stray space before ';')Denis Vlasenko2007-07-211-2/+2
|
* Three patches from FreeWRT peopleDenis Vlasenko2007-07-211-1/+3
|
* libbb: nuke BB_GETOPT_ERROR, always die if there are mutually exclusive optionsDenis Vlasenko2007-07-211-1/+1
| | | | | | | | | | | | | | | | | | | | find_pair 164 180 +16 passwd_main 1222 1230 +8 display_speed 91 96 +5 msh_main 1335 1339 +4 qrealloc 38 36 -2 refresh 1190 1182 -8 cut_main 543 532 -11 sendCgi 1807 1794 -13 getopt32 1063 1045 -18 arith 2077 2030 -47 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/6 up/down: 33/-99) Total: -66 bytes text data bss dec hex filename 781548 1168 11900 794616 c1ff8 busybox_old 781452 1168 11900 794520 c1f98 busybox_unstripped
* stray trailing tabs removedDenis Vlasenko2007-07-192-3/+3
|
* remove accumulated stray trailing whitespaceDenis Vlasenko2007-07-172-4/+4
|
* xioctl and friends by Tito <farmatito@tiscali.it>Denis Vlasenko2007-07-145-99/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta do_iptunnel 203 977 +774 process_dev 5328 5494 +166 ioctl_or_perror - 54 +54 ioctl_or_perror_and_die - 51 +51 ioctl_alt_func - 49 +49 bb_ioctl_or_warn - 47 +47 do_add_ioctl 102 145 +43 bb_xioctl - 39 +39 print_value_on_off - 31 +31 get_lcm 105 123 +18 arp_main 2155 2167 +12 .................. zcip_main 1576 1566 -10 setlogcons_main 92 82 -10 dumpkmap_main 263 253 -10 do_get_ioctl 85 75 -10 setkeycodes_main 165 154 -11 write_table 244 232 -12 vconfig_main 318 306 -12 do_del_ioctl 93 81 -12 set_address 75 62 -13 maybe_set_utc 30 16 -14 loadfont_main 495 479 -16 slattach_main 712 695 -17 do_loadfont 191 174 -17 do_iplink 1155 1136 -19 getty_main 2583 2562 -21 fbset_main 2058 2035 -23 do_time 588 565 -23 xioctl 25 - -25 read_rtc 186 160 -26 parse_conf 1299 1270 -29 udhcp_read_interface 269 239 -30 bb_ioctl 45 - -45 bb_ioctl_alt 70 - -70 bb_ioctl_on_off 78 - -78 .rodata 129370 129018 -352 do_show 799 - -799 ------------------------------------------------------------------------------ (add/remove: 6/5 grow/shrink: 13/49 up/down: 1316/-1864) Total: -548 bytes text data bss dec hex filename 675352 2740 13968 692060 a8f5c busybox_old 674804 2740 13968 691512 a8d38 busybox_unstripped
* devfsd: futher sanitization by Tito <farmatito@tiscali.it>Denis Vlasenko2007-07-011-118/+63
|
* devfsd: indentation fixesDenis Vlasenko2007-07-011-6/+6
|
* introduce and use bb_basename()Denis Vlasenko2007-06-301-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta bb_basename - 26 +26 sv_main 1226 1225 -1 passwd_main 1985 1983 -2 showdirs 482 478 -4 sendCgi 1811 1807 -4 make_device 1354 1350 -4 handleIncoming 2443 2439 -4 func_name 82 78 -4 service_name 2292 2285 -7 main 909 901 -8 cmp_main 555 547 -8 test_main 434 422 -12 act 228 216 -12 find_pair 180 164 -16 rmmod_main 298 280 -18 find_pid_by_name 156 134 -22 modprobe_main 1606 1576 -30 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/16 up/down: 26/-156) Total: -130 bytes text data bss dec hex filename 734933 3028 14400 752361 b7ae9 busybox_old 734801 3028 14400 752229 b7a65 busybox_unstripped
* devfsd: style cleanup; size reduction (Tito <farmatito@tiscali.it>)Denis Vlasenko2007-06-271-133/+46
| | | | | traceroute: suppress warning
* devfsd: fix formatting (Tito <farmatito@tiscali.it>)Denis Vlasenko2007-06-251-509/+446
| | | | | ash: fix SEGV if type has zero parameters
* Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Denis Vlasenko2007-06-251-3/+2
| | | | <wharms@bfs.de>)
* wget: use monotonic_sec instead of gettimeofdayDenis Vlasenko2007-06-171-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zcip: use monotonic_us instead of gettimeofday udhcpcd: simpler, shorter random_xid() function old new delta monotonic_sec - 41 +41 find_pair 164 180 +16 run_list_real 2018 2028 +10 cmp_main 547 555 +8 collect_ctx 112 119 +7 singlemount 4544 4549 +5 time_main 1124 1128 +4 static.start_sec - 4 +4 static.lastupdate_sec - 4 +4 sock - 4 +4 read_package_field 253 257 +4 pick 38 40 +2 get_next_line 145 147 +2 count_lines 59 61 +2 process_stdin 435 433 -2 xstrtoul_range_sfx 229 226 -3 static.initialized 4 1 -3 dhcprelay_main 1125 1122 -3 catcher 380 377 -3 arping_main 1969 1966 -3 s 8 4 -4 cfg 4 - -4 static.lastupdate 8 - -8 start 8 - -8 random_xid 95 33 -62 .rodata 129114 129050 -64 zcip_main 1731 1576 -155 progressmeter 1035 867 -168 ------------------------------------------------------------------------------ (add/remove: 4/3 grow/shrink: 10/11 up/down: 113/-490) Total: -377 bytes
* hwclock: size optimizationsDenis Vlasenko2007-06-171-104/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | libbb/time.c: new file, introducing monotonic_us() pscan, traceroute, arping: use it instead of gettimeofday ping, zcip: TODO function old new delta monotonic_us - 89 +89 find_pair 164 180 +16 .rodata 129747 129763 +16 refresh 1144 1152 +8 ............ timeout 8 4 -4 static.start 8 4 -4 last 8 4 -4 parse_conf 1303 1284 -19 time_main 1149 1124 -25 gettimeofday_us 39 - -39 arping_main 2042 1969 -73 hwclock_main 594 501 -93 catcher 485 380 -105 traceroute_main 4300 4117 -183 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 8/11 up/down: 157/-562) Total: -405 bytes
* time: *const str = "xxx" ==> str[] = "xxx"Denis Vlasenko2007-06-171-3/+3
|
* strings: strings a b was processing a twice, fix thatDenis Vlasenko2007-06-171-34/+35
|
* move several applets to more correct ex-project. No code changes.Denis Vlasenko2007-06-123-896/+0
|