Denys Vlasenko [Mon, 16 Nov 2009 02:18:46 +0000 (03:18 +0100)]
hush: fix handling of words with braces. +65 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 16 Nov 2009 01:00:03 +0000 (02:00 +0100)]
hush: fix exit code propagation from `cmd`. +45 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 15 Nov 2009 22:28:11 +0000 (23:28 +0100)]
libbb: added xfdopen_for_read/write
function old new delta
xfdopen_helper - 40 +40
logdir_open 1163 1184 +21
process_stdin 433 443 +10
xfdopen_for_write - 9 +9
doCommands 2465 2474 +9
patch_main 1214 1222 +8
bbunpack 457 465 +8
xfdopen_for_read - 7 +7
scan_tree 258 262 +4
xstrtoul_range_sfx 230 231 +1
sendmail_main 957 955 -2
passwd_main 1027 1023 -4
parse 969 964 -5
test_main 253 247 -6
sed_main 655 649 -6
dos2unix_main 437 429 -8
fbsplash_main 950 938 -12
handle_dir_common 371 354 -17
expand_vars_to_list 2197 2169 -28
update_passwd 1275 1246 -29
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 7/10 up/down: 117/-117) Total: 0 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 15 Nov 2009 18:58:19 +0000 (19:58 +0100)]
hush: wait for `cmd` to complete, and immediately store its exitcode in $?
function old new delta
expand_vars_to_list 2129 2197 +68
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 15 Nov 2009 03:55:40 +0000 (04:55 +0100)]
date: restore hadling of MMDDhhmm[[CC]YY][.ss] date format
function old new delta
date_main 698 889 +191
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 15 Nov 2009 02:07:19 +0000 (03:07 +0100)]
init: restore possibility to reload inittab even before we finish initialization
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 15 Nov 2009 01:48:01 +0000 (02:48 +0100)]
eject: band-aid for kernel headers using u8 type
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 15 Nov 2009 01:36:49 +0000 (02:36 +0100)]
fsck: add comment clarifying exit codes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 15 Nov 2009 01:28:56 +0000 (02:28 +0100)]
some non-gnu compilers can't have non-const struct initializers
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Sat, 14 Nov 2009 23:12:53 +0000 (00:12 +0100)]
use utimes() rather than obsolescent utime()
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Sat, 14 Nov 2009 22:35:00 +0000 (23:35 +0100)]
use utimes() rather than obsolescent utime()
utime is obsolescent in POSIX.1-2008, use utimes() for now.
Untested.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Denys Vlasenko [Fri, 13 Nov 2009 08:37:50 +0000 (09:37 +0100)]
httpd_post_upload.txt example: handle binary files too
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 13 Nov 2009 08:09:07 +0000 (09:09 +0100)]
sed: on output file, set not only mode, but owner too
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 13 Nov 2009 08:08:27 +0000 (09:08 +0100)]
*: use "can't" instead of "cannot"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 12 Nov 2009 13:52:47 +0000 (14:52 +0100)]
env: don't SEGV on bare "env -"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 11 Nov 2009 20:05:42 +0000 (21:05 +0100)]
tidy up O_NONBLOCK usage. use libbb functions in stty.
Added O_RDONLY where improves readability. Note: O_RDONLY == 0,
so it is there even if not specified.
function old new delta
stty_main 1289 1235 -54
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 11 Nov 2009 05:32:43 +0000 (06:32 +0100)]
mdev_fat.conf: add a rule to run nameif
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 11 Nov 2009 02:19:30 +0000 (03:19 +0100)]
ash: fix bad interaction of "stty -echo" + ASK_TERMINAL
function old new delta
read_line_input 4820 4886 +66
put_prompt 108 47 -61
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 66/-61) Total: 5 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 9 Nov 2009 10:12:45 +0000 (11:12 +0100)]
fix 'not not' in comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 9 Nov 2009 10:04:54 +0000 (11:04 +0100)]
tweak service examples a bit (less verbose comment in dhcp_if)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 9 Nov 2009 08:39:50 +0000 (09:39 +0100)]
tweak dhcp service example - add ntp configuration
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 8 Nov 2009 17:41:26 +0000 (18:41 +0100)]
add and example of tftpd service
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 8 Nov 2009 17:27:18 +0000 (18:27 +0100)]
tftpd: another small tweak
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 8 Nov 2009 17:15:10 +0000 (18:15 +0100)]
tftp: another small tweak
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 8 Nov 2009 17:07:36 +0000 (18:07 +0100)]
tftpd: slight correction to progress bar code
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Magnus Damm [Sun, 8 Nov 2009 17:03:09 +0000 (18:03 +0100)]
tftp: add optiona support for progress bar
function old new delta
tftp_protocol 1662 1834 +172
progress_meter 212 365 +153
tftp_progress_init - 14 +14
tftp_main 276 281 +5
tftpd_main 513 500 -13
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/1 up/down: 344/-13) Total: 331 bytes
Signed-off-by: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Magnus Damm [Sun, 8 Nov 2009 17:00:59 +0000 (18:00 +0100)]
tftp: extend tsize support a little
function old new delta
tftp_protocol 1624 1662 +38
tftpd_main 495 513 +18
tftp_main 274 276 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 58/0) Total: 58 bytes
Signed-off-by: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Magnus Damm [Sun, 8 Nov 2009 15:34:43 +0000 (16:34 +0100)]
wget: factor out progress bar code
Signed-off-by: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 7 Nov 2009 23:55:39 +0000 (00:55 +0100)]
add more service examples
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 7 Nov 2009 17:21:03 +0000 (18:21 +0100)]
tweak mdev_fat.conf example
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 7 Nov 2009 16:54:44 +0000 (17:54 +0100)]
tweak examples
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 7 Nov 2009 16:30:14 +0000 (17:30 +0100)]
ifplugd: small optimization
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Vladimir Dronnikov [Sat, 7 Nov 2009 03:14:50 +0000 (04:14 +0100)]
fbsplash: allow compressed image files
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 7 Nov 2009 03:06:31 +0000 (04:06 +0100)]
top: do not use #if inside printf, it can be a macro
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 7 Nov 2009 03:00:03 +0000 (04:00 +0100)]
adding examples/mdev_fat.conf
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 7 Nov 2009 02:33:05 +0000 (03:33 +0100)]
mdev: print line# in error messages
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 7 Nov 2009 02:28:48 +0000 (03:28 +0100)]
add examples/mdev.conf
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 7 Nov 2009 00:31:14 +0000 (01:31 +0100)]
big endian warning fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 6 Nov 2009 03:11:22 +0000 (04:11 +0100)]
removed SuSv3 doc tarball - potential licensing problem
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 6 Nov 2009 03:10:43 +0000 (04:10 +0100)]
whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 6 Nov 2009 03:04:19 +0000 (04:04 +0100)]
adding example runit-style service directory
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Tomas Heinrich [Thu, 5 Nov 2009 07:42:47 +0000 (08:42 +0100)]
dumpleases: unicode spport
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Mike Frysinger [Wed, 4 Nov 2009 23:53:16 +0000 (18:53 -0500)]
applets: meant to fix order, not enable bbsh
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Wed, 4 Nov 2009 23:49:08 +0000 (18:49 -0500)]
all_sourcecode.tests: check commented out applet order too
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Wed, 4 Nov 2009 23:49:03 +0000 (18:49 -0500)]
applets: fix alphabetical order
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Wed, 4 Nov 2009 23:41:22 +0000 (18:41 -0500)]
tests: fix POSIX shell source style
The source command does not search $PWD, and bash recently fixed itself to
follow this behavior for /bin/sh.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Denys Vlasenko [Wed, 4 Nov 2009 17:01:17 +0000 (18:01 +0100)]
lsmod: beautify. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 4 Nov 2009 16:54:17 +0000 (17:54 +0100)]
libbb.h: remove two over-zealous RETURNS_MALLOC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Wed, 4 Nov 2009 14:31:19 +0000 (15:31 +0100)]
fold: fix a corner case. By Tomas Heinrich (heinrich.tomas AT gmail.com)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 3 Nov 2009 13:12:04 +0000 (14:12 +0100)]
mkfs_vfat: fixes for large image cases
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 3 Nov 2009 04:51:20 +0000 (05:51 +0100)]
mkswap: add -L LABEL option. closes bug 689.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 2 Nov 2009 18:18:49 +0000 (19:18 +0100)]
passwd: do not complain if /etc/shadow is missing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 2 Nov 2009 17:53:57 +0000 (18:53 +0100)]
udhcpc: log script parameter too
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 2 Nov 2009 13:20:34 +0000 (14:20 +0100)]
include/libbb.h: mark malloc-returning functions with GCC attribute
function old new delta
ash_main 1336 1365 +29
readcmd 1062 1072 +10
add_split_dependencies 707 717 +10
rtnl_talk 539 548 +9
normalize 165 174 +9
xmalloc_optname_optval 583 590 +7
test_main 247 253 +6
insert_bg_job 366 371 +5
dname_enc 391 395 +4
nslookup_main 165 168 +3
ifplugd_main 1099 1102 +3
tftpd_main 493 495 +2
make_new_session 413 415 +2
localcmd 274 276 +2
date_main 696 698 +2
tee_main 317 318 +1
setvar 183 184 +1
hash_find 233 234 +1
xrtnl_dump_filter 400 399 -1
prepend_new_eth_table 297 295 -2
unpack_Z_stream 1229 1226 -3
read_line_input 4823 4820 -3
do_load 523 520 -3
udhcp_run_script 669 665 -4
mkfs_vfat_main 1609 1605 -4
rtnl_rtprot_initialize 70 65 -5
procps_scan 1842 1835 -7
read_opt 873 865 -8
ifupdown_main 2133 2125 -8
mkfs_ext2_main 2492 2482 -10
logread_main 503 492 -11
svlogd_main 1441 1429 -12
rewrite 1032 1018 -14
fbsplash_main 917 903 -14
str2sockaddr 431 405 -26
unpack_lzma_stream 2705 2677 -28
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 18/18 up/down: 106/-163) Total: -57 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 2 Nov 2009 13:19:51 +0000 (14:19 +0100)]
*: introduce and use ffulsh_all()
function old new delta
buffer_fill_and_print 179 196 +17
fflush_all - 9 +9
spawn 87 92 +5
rtcwake_main 455 453 -2
...
alarm_intr 93 84 -9
readcmd 1072 1062 -10
bb_ask 345 333 -12
more_main 845 832 -13
flush_stdout_stderr 42 23 -19
xfflush_stdout 27 - -27
flush_stderr 30 - -30
------------------------------------------------------------------------------
(add/remove: 1/2 grow/shrink: 2/50 up/down: 31/-397) Total: -366 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Vladimir Dronnikov [Mon, 2 Nov 2009 09:41:46 +0000 (10:41 +0100)]
mkfs.reiser: new applet. needs much polishing
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 1 Nov 2009 23:12:35 +0000 (00:12 +0100)]
btrfs.c: check first two superblocks, for additional robustness
function old new delta
volume_id_probe_btrfs 94 142 +48
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 1 Nov 2009 22:07:18 +0000 (23:07 +0100)]
volume_id: add FAST_FUNC where appropriate
function old new delta
volume_id_probe_iso9660 324 327 +3
volume_id_probe_vfat 902 903 +1
volume_id_probe_udf 576 577 +1
volume_id_probe_ntfs 314 315 +1
uuidcache_check_device 292 291 -1
volume_id_probe_xfs 87 85 -2
volume_id_probe_sysv 165 163 -2
volume_id_probe_romfs 89 87 -2
volume_id_probe_reiserfs 236 234 -2
volume_id_probe_ocfs2 96 94 -2
volume_id_probe_luks 78 76 -2
volume_id_probe_linux_swap 165 163 -2
volume_id_probe_jfs 96 94 -2
volume_id_probe_hfs_hfsplus 795 793 -2
volume_id_probe_ext 82 80 -2
volume_id_probe_cramfs 59 57 -2
volume_id_probe_btrfs 96 94 -2
free_volume_id 36 31 -5
volume_id_probe_linux_raid 127 119 -8
volume_id_probe_all 152 138 -14
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/16 up/down: 6/-52) Total: -46 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Vladimir Dronnikov [Sun, 1 Nov 2009 22:05:09 +0000 (23:05 +0100)]
volume_id: add support for btrfs
function old new delta
volume_id_probe_btrfs - 96 +96
fs2 48 52 +4
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/0 up/down: 100/0) Total: 100 bytes
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 1 Nov 2009 20:51:31 +0000 (21:51 +0100)]
mdev: do not die on mknod errors
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Vladimir Dronnikov [Sun, 1 Nov 2009 03:33:23 +0000 (04:33 +0100)]
mountpoint: btrfs fix
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Dan Fandrich [Sun, 1 Nov 2009 03:01:30 +0000 (04:01 +0100)]
Add more compat code for non GNU environments
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Thu, 29 Oct 2009 20:37:48 +0000 (21:37 +0100)]
tty: use defines rather than constants
No obj-code changes.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Denys Vlasenko [Thu, 29 Oct 2009 12:27:31 +0000 (13:27 +0100)]
*: random code shrink
function old new delta
alarm_handler 50 46 -4
ask 228 211 -17
rtcwake_main 474 455 -19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 29 Oct 2009 02:45:26 +0000 (03:45 +0100)]
lineedit: REALLY fix compile error now
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 29 Oct 2009 02:41:38 +0000 (03:41 +0100)]
lineedit: compile fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 29 Oct 2009 02:39:55 +0000 (03:39 +0100)]
echo et al: support \e escape
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Mon, 26 Oct 2009 22:29:03 +0000 (23:29 +0100)]
wall: new applet
text data bss dec hex filename
81 0 0 81 51 miscutils/wall.o
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Mon, 26 Oct 2009 22:27:08 +0000 (23:27 +0100)]
add and use xopen_nonblocking (-18b)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Mon, 26 Oct 2009 22:27:07 +0000 (23:27 +0100)]
chpst: tiny shrinkage and add possible TODO
text data bss dec hex filename
1398 0 0 1398 576 runit/chpst.o.old
1385 0 0 1385 569 runit/chpst.o
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Mon, 26 Oct 2009 22:27:06 +0000 (23:27 +0100)]
mdev: adjust error message
function old new delta
.rodata 126715 126706 -9
(reusing common error string)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Mon, 26 Oct 2009 22:27:05 +0000 (23:27 +0100)]
mdev: handle string modes
parse ugoa=rwxXst via bb_parse_mode (+5b)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Mon, 26 Oct 2009 22:27:04 +0000 (23:27 +0100)]
mdev: tiny shrinkage by index_in_strings
text data bss dec hex filename
2633 0 0 2633 a49 util-linux/mdev.o.old
2624 0 0 2624 a40 util-linux/mdev.o
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Tue, 27 Oct 2009 16:05:31 +0000 (17:05 +0100)]
applets/usage_compressed: combine many seds in one; hide dd stats
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Dan Fandrich [Tue, 27 Oct 2009 10:05:00 +0000 (11:05 +0100)]
platform compatibility work (by Dan Fandrich)
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 27 Oct 2009 09:47:49 +0000 (10:47 +0100)]
rename sent_ESC_br_n6 variable to sent_ESC_br6n
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 27 Oct 2009 09:34:06 +0000 (10:34 +0100)]
libbb/lineedit: try to make FEATURE_EDITING_ASK_TERMINAL less ugly
function old new delta
read_line_input 4809 4829 +20
lineedit_read_key 207 223 +16
put_prompt 110 117 +7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 43/0) Total: 43 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 27 Oct 2009 09:01:01 +0000 (10:01 +0100)]
libbb/xrealloc_vector.c: better comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 27 Oct 2009 08:54:34 +0000 (09:54 +0100)]
libbb/bb_do_delay.c: shrink
function old new delta
difftime 9 - -9
bb_do_delay 88 38 -50
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-59) Total: -59 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 27 Oct 2009 08:49:04 +0000 (09:49 +0100)]
libbb/ask_confirmation.c: shrink
function old new delta
bb_ask_confirmation 95 76 -19
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 27 Oct 2009 08:29:01 +0000 (09:29 +0100)]
httpd_indexcgi: fix off-by-one error
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 27 Oct 2009 08:11:17 +0000 (09:11 +0100)]
sed: shrink usage text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Rob Landley [Mon, 26 Oct 2009 21:04:07 +0000 (16:04 -0500)]
Minor usage tweak for sed.
Makes it slightly smaller and (in my opinion) clearer.
Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 26 Oct 2009 14:23:32 +0000 (15:23 +0100)]
read_key,lineeedit: parse position answerback faster; sanitize its use
it's still not reliable, and probably cannot be made so...
added comment with explanation.
function old new delta
put_prompt 52 110 +58
read_key 601 607 +6
lineedit_read_key 201 207 +6
win_changed 108 104 -4
read_line_input 4824 4809 -15
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/2 up/down: 70/-19) Total: 51 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Tomas Heinrich [Mon, 19 Oct 2009 21:58:31 +0000 (23:58 +0200)]
lsmod: unicode-aware column formatting
Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Mon, 26 Oct 2009 11:09:06 +0000 (12:09 +0100)]
read_key: ignore unknown keys (do not return them to caller byte-by-byte)
function old new delta
read_key 568 601 +33
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 25 Oct 2009 23:59:59 +0000 (00:59 +0100)]
read_key: remove handling for ctrl-up/down, we don't use that. -12 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 25 Oct 2009 23:50:52 +0000 (00:50 +0100)]
read_key: document more weird key sequences
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 25 Oct 2009 22:50:56 +0000 (23:50 +0100)]
lineedit: handle Ctrl-arrows
function old new delta
read_line_input 4629 4824 +195
BB_isalnum - 39 +39
BB_ispunct - 35 +35
BB_isspace - 31 +31
static.esccmds 69 93 +24
vi_word_motion 165 162 -3
vi_back_motion 204 198 -6
vi_end_motion 172 163 -9
bb_iswspace 28 - -28
bb_iswpunct 32 - -32
bb_iswalnum 37 - -37
------------------------------------------------------------------------------
(add/remove: 3/3 grow/shrink: 5/8 up/down: 334/-129) Total: 205 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 25 Oct 2009 03:35:22 +0000 (04:35 +0100)]
modutils: add FEATURE_INSMOD_TRY_MMAP option
function old new delta
try_to_mmap_module - 121 +121
bb_init_module_24 4514 4578 +64
bb_init_module 119 173 +54
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 239/0) Total: 239 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Sun, 25 Oct 2009 00:13:32 +0000 (02:13 +0200)]
tar: add support for -o as synonym to --no-same-owner. +5 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 24 Oct 2009 23:32:45 +0000 (01:32 +0200)]
tar: handle "tar fx TARFILE" etc
function old new delta
tar_main 702 751 +49
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 24 Oct 2009 22:39:51 +0000 (00:39 +0200)]
patch: add Rob's version for reference, it may handle fuzz and offsets
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 24 Oct 2009 22:35:04 +0000 (00:35 +0200)]
patch: add another test (currently fails)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 24 Oct 2009 15:47:56 +0000 (17:47 +0200)]
fix up potential printf's with unsafe format strings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 24 Oct 2009 15:20:29 +0000 (17:20 +0200)]
mkfs_ext2: fix compile error
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 24 Oct 2009 15:11:55 +0000 (17:11 +0200)]
patch: add longopts, --dry-run, add one more test
function old new delta
patch_main 1110 1214 +104
static.patch_longopts - 47 +47
packed_usage 26738 26761 +23
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 174/0) Total: 174 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Vladimir Dronnikov [Fri, 23 Oct 2009 21:34:43 +0000 (23:34 +0200)]
ftpget/put: make 3rd parameter optional
function old new delta
packed_usage 26728 26738 +10
ftpgetput_main 343 351 +8
Signed-off-by: Vladimir Dronnikov <dronnikov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 23 Oct 2009 16:31:02 +0000 (18:31 +0200)]
ifplugd: fix compile error
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 23 Oct 2009 14:25:20 +0000 (16:25 +0200)]
date: line up tabs in usage text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>