platform/upstream/busybox.git
16 years agoadd serial HOWTO doc
Denis Vlasenko [Wed, 5 Nov 2008 12:19:39 +0000 (12:19 -0000)]
add serial HOWTO doc

16 years agoinetd: fix a case when we have zero services
Denis Vlasenko [Wed, 5 Nov 2008 11:36:22 +0000 (11:36 -0000)]
inetd: fix a case when we have zero services

16 years ago- commentary typo fix (tito)
Bernhard Reutner-Fischer [Wed, 5 Nov 2008 08:18:16 +0000 (08:18 -0000)]
- commentary typo fix (tito)

16 years ago- fix typo in print_user() (tito)
Bernhard Reutner-Fischer [Wed, 5 Nov 2008 08:15:13 +0000 (08:15 -0000)]
- fix typo in print_user() (tito)

16 years agonslookup: tiny shrink (-5 bytes); add comment about res_init
Denis Vlasenko [Tue, 4 Nov 2008 21:44:28 +0000 (21:44 -0000)]
nslookup: tiny shrink (-5 bytes); add comment about res_init
inet_common: cosmetics, no code changes

16 years agoless: fix pasting into search line ('/' cmd) -
Denis Vlasenko [Sun, 2 Nov 2008 00:55:41 +0000 (00:55 -0000)]
less: fix pasting into search line ('/' cmd) -
 it was mishandled because pasting "types" very fast
 and read_key eats many chars. +30 bytes.

16 years agolineedit: fix bug 5824: Since version 23530 with lineedit.c,
Denis Vlasenko [Sun, 2 Nov 2008 00:41:05 +0000 (00:41 -0000)]
lineedit: fix bug 5824: Since version 23530 with lineedit.c,
 "fdisk" & "ed" can't work any more

16 years agoadd comment, no code changes
Denis Vlasenko [Sat, 1 Nov 2008 13:40:32 +0000 (13:40 -0000)]
add comment, no code changes

16 years agogunzip: restore mtime. approx +80 bytes of code
Denis Vlasenko [Sat, 1 Nov 2008 12:54:56 +0000 (12:54 -0000)]
gunzip: restore mtime. approx +80 bytes of code
rpm: make code more robust
lsmod: small code shrink

16 years agotftpd: show help if stdin is not a socket
Denis Vlasenko [Sat, 1 Nov 2008 00:22:24 +0000 (00:22 -0000)]
tftpd: show help if stdin is not a socket

16 years agoiplink: accept shorthands for "address" keyword here:
Denis Vlasenko [Sat, 1 Nov 2008 00:10:51 +0000 (00:10 -0000)]
iplink: accept shorthands for "address" keyword here:
 "ip link set address 00:11:22:33:44:55"
ifupdown: use "addr" instead of "address"

16 years agoless: fix newly-introduced case of less spinning forever
Denis Vlasenko [Fri, 31 Oct 2008 03:04:55 +0000 (03:04 -0000)]
less: fix newly-introduced case of less spinning forever
 on pty's closed etc

16 years agorunsvdir: if we have PID == 1, SIGHUP should make small pause,
Denis Vlasenko [Fri, 31 Oct 2008 02:37:18 +0000 (02:37 -0000)]
runsvdir: if we have PID == 1, SIGHUP should make small pause,
not 1 minute one

16 years agomodprobe: fix a segfault when modprobe is called with no arguments at all
Denis Vlasenko [Fri, 31 Oct 2008 02:04:28 +0000 (02:04 -0000)]
modprobe: fix a segfault when modprobe is called with no arguments at all

function                                             old     new   delta
modprobe_main                                        559     535     -24

16 years agokill[all[5]]: accept -s SIG too. kill_main: +29 bytes
Denis Vlasenko [Fri, 31 Oct 2008 00:30:48 +0000 (00:30 -0000)]
kill[all[5]]: accept -s SIG too. kill_main: +29 bytes
 by Steve Bennett (steveb AT workware.net.au)

16 years agosetup_environment: cd $HOME regardless of clear_env value.
Denis Vlasenko [Thu, 30 Oct 2008 23:58:19 +0000 (23:58 -0000)]
setup_environment: cd $HOME regardless of clear_env value.

16 years agotftpd: be less cryptic in help text
Denis Vlasenko [Thu, 30 Oct 2008 23:42:37 +0000 (23:42 -0000)]
tftpd: be less cryptic in help text

16 years agodc: support for bases 2 and 8, by Nate Case (ncase AT xes-inc.com)
Denis Vlasenko [Thu, 30 Oct 2008 23:25:50 +0000 (23:25 -0000)]
dc: support for bases 2 and 8, by Nate Case (ncase AT xes-inc.com)

function                                             old     new   delta
print_base                                            87     176     +89
set_output_base                                       81      95     +14
static.bases                                           -       5      +5
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 108/0)             Total: 108 bytes

16 years ago- minor shrinkage (~-60)
Bernhard Reutner-Fischer [Thu, 30 Oct 2008 17:42:49 +0000 (17:42 -0000)]
- minor shrinkage (~-60)

16 years ago- support ip link set eth1 address 00:11:22:33:44:55
Bernhard Reutner-Fischer [Thu, 30 Oct 2008 16:45:55 +0000 (16:45 -0000)]
- support ip link set eth1 address 00:11:22:33:44:55
  and not only the shorthand "addr". Thanks to ncopa for noticing

16 years agorandomconfig fixes
Denis Vlasenko [Wed, 29 Oct 2008 13:16:28 +0000 (13:16 -0000)]
randomconfig fixes

16 years agoanother small defconfig update
Denis Vlasenko [Wed, 29 Oct 2008 12:25:39 +0000 (12:25 -0000)]
another small defconfig update

16 years agoupdate defconfig
Denis Vlasenko [Wed, 29 Oct 2008 12:18:10 +0000 (12:18 -0000)]
update defconfig

16 years agorunsvdir: kill another global
Denis Vlasenko [Wed, 29 Oct 2008 12:07:34 +0000 (12:07 -0000)]
runsvdir: kill another global

16 years agorunsvdir: fx a recent vda's buglet (was pausing even if not signaled).
Denis Vlasenko [Wed, 29 Oct 2008 12:04:45 +0000 (12:04 -0000)]
runsvdir: fx a recent vda's buglet (was pausing even if not signaled).
 stop spawning children immediately if signaled. Kill one global.

16 years agoid: better wording in comments, no code changes
Denis Vlasenko [Wed, 29 Oct 2008 10:30:54 +0000 (10:30 -0000)]
id: better wording in comments, no code changes

16 years agorunsvdir: shrink (by Vladimir)
Denis Vlasenko [Wed, 29 Oct 2008 03:45:33 +0000 (03:45 -0000)]
runsvdir: shrink (by Vladimir)

16 years agorunsvdir: do not exit if we are pid 1.
Denis Vlasenko [Wed, 29 Oct 2008 03:42:44 +0000 (03:42 -0000)]
runsvdir: do not exit if we are pid 1.

16 years agomore whitespace fixes
Denis Vlasenko [Wed, 29 Oct 2008 01:20:13 +0000 (01:20 -0000)]
more whitespace fixes

16 years agowhitespace fixes, no code changes
Denis Vlasenko [Wed, 29 Oct 2008 01:19:15 +0000 (01:19 -0000)]
whitespace fixes, no code changes

16 years agovi: fix uninitialized last_search_pattern (bug 5794)
Denis Vlasenko [Wed, 29 Oct 2008 00:58:04 +0000 (00:58 -0000)]
vi: fix uninitialized last_search_pattern (bug 5794)

16 years agoid: coreutils compat by Tito + test script
Denis Vlasenko [Wed, 29 Oct 2008 00:27:31 +0000 (00:27 -0000)]
id: coreutils compat by Tito + test script

16 years ago- typo in documentation
Bernhard Reutner-Fischer [Mon, 27 Oct 2008 21:30:39 +0000 (21:30 -0000)]
- typo in documentation

16 years agoash: add testcase for bug 5304
Denis Vlasenko [Mon, 27 Oct 2008 14:33:03 +0000 (14:33 -0000)]
ash: add testcase for bug 5304

16 years agoash: fix "while kill -0 $child; do true; done" looping forever.
Denis Vlasenko [Mon, 27 Oct 2008 14:25:52 +0000 (14:25 -0000)]
ash: fix "while kill -0 $child; do true; done" looping forever.

16 years agoudhcp: simplify SO_BINDTODEVICE call
Denis Vlasenko [Mon, 27 Oct 2008 12:56:58 +0000 (12:56 -0000)]
udhcp: simplify SO_BINDTODEVICE call

16 years agols: trim help text
Denis Vlasenko [Mon, 27 Oct 2008 12:37:22 +0000 (12:37 -0000)]
ls: trim help text

16 years agoping: trivial code shrink
Denis Vlasenko [Mon, 27 Oct 2008 11:54:45 +0000 (11:54 -0000)]
ping: trivial code shrink

function                                             old     new   delta
ping6_main                                            31      30      -1
ping_main                                            405     370     -35

16 years agocpio: emit TRAILER even when hard links were found.
Denis Vlasenko [Sun, 26 Oct 2008 19:55:20 +0000 (19:55 -0000)]
cpio: emit TRAILER even when hard links were found.
 by Pascal Bellard (pascal.bellard AT ads-lu.com)

16 years agodevmem: fixlet in cleanup code
Denis Vlasenko [Sun, 26 Oct 2008 19:07:43 +0000 (19:07 -0000)]
devmem: fixlet in cleanup code

16 years agodevmem: make it more script-friendly; don't do any reads
Denis Vlasenko [Sun, 26 Oct 2008 17:26:55 +0000 (17:26 -0000)]
devmem: make it more script-friendly; don't do any reads
 and output nothing if writing was requested. -100 bytes

16 years agoless: correctly wrap lines with tabs
Denis Vlasenko [Sun, 26 Oct 2008 16:30:09 +0000 (16:30 -0000)]
less: correctly wrap lines with tabs

16 years agodevmem: new applet
Denis Vlasenko [Sun, 26 Oct 2008 11:08:14 +0000 (11:08 -0000)]
devmem: new applet

16 years agoless: FEATURE_LESS_LINENUMS depends on FEATURE_LESS_DASHCMD
Denis Vlasenko [Sun, 26 Oct 2008 00:24:38 +0000 (00:24 -0000)]
less: FEATURE_LESS_LINENUMS depends on FEATURE_LESS_DASHCMD

16 years agoread_key is actually written by Rob, add him to copyright notice
Denis Vlasenko [Sun, 26 Oct 2008 00:19:33 +0000 (00:19 -0000)]
read_key is actually written by Rob, add him to copyright notice

16 years agoless: disable _ command, it's useless bloat
Denis Vlasenko [Sun, 26 Oct 2008 00:15:36 +0000 (00:15 -0000)]
less: disable _ command, it's useless bloat

16 years agoread_key: add comments how Shift and Meta keys looks like.
Denis Vlasenko [Sat, 25 Oct 2008 23:59:41 +0000 (23:59 -0000)]
read_key: add comments how Shift and Meta keys looks like.
 no code changes

16 years agoless: reuse former vi's key reading code. Improve SIGWINCH handling.
Denis Vlasenko [Sat, 25 Oct 2008 23:27:29 +0000 (23:27 -0000)]
less: reuse former vi's key reading code. Improve SIGWINCH handling.

function                                             old     new   delta
less_main                                           2056    2097     +41
getch_nowait                                         248     273     +25
read_key                                             310     321     +11
static.esccmds                                        61      69      +8
count_lines                                           72      74      +2
less_gets                                            166     142     -24
less_getch                                           172      43    -129
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/5 up/down: 91/-170)           Total: -79 bytes
   text    data     bss     dec     hex filename

16 years agolibbb: add forgotten file from previous commit :(
Denis Vlasenko [Sat, 25 Oct 2008 23:23:32 +0000 (23:23 -0000)]
libbb: add forgotten file from previous commit :(

16 years agovi: move key reading routine out of vi into llbbb
Denis Vlasenko [Sat, 25 Oct 2008 23:23:00 +0000 (23:23 -0000)]
vi: move key reading routine out of vi into llbbb

function                                             old     new   delta
read_key                                               -     310    +310
....
static.esccmds                                       170      61    -109
readit                                               286      60    -226
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 9/10 up/down: 349/-367)         Total: -18 bytes

16 years agotar: fix typo in comment
Denis Vlasenko [Sat, 25 Oct 2008 09:27:35 +0000 (09:27 -0000)]
tar: fix typo in comment

16 years agotar: fix bug 3844: non-root tar does not preserve perms
Denis Vlasenko [Fri, 24 Oct 2008 23:47:38 +0000 (23:47 -0000)]
tar: fix bug 3844: non-root tar does not preserve perms

16 years agoless: add optional line number toggle and resizing on SIGWINCH.
Denis Vlasenko [Fri, 24 Oct 2008 22:43:27 +0000 (22:43 -0000)]
less: add optional line number toggle and resizing on SIGWINCH.

16 years ago- improve wording and fix alphabetical order
Bernhard Reutner-Fischer [Fri, 24 Oct 2008 19:48:47 +0000 (19:48 -0000)]
- improve wording and fix alphabetical order

16 years agoless: add less v.418 help text doc. No code changes.
Denis Vlasenko [Fri, 24 Oct 2008 11:07:20 +0000 (11:07 -0000)]
less: add less v.418 help text doc. No code changes.

16 years agobuild system cleanup: rename FEATURE_AWK_MATH to FEATURE_AWK_LIBM;
Denis Vlasenko [Fri, 24 Oct 2008 10:49:49 +0000 (10:49 -0000)]
build system cleanup: rename FEATURE_AWK_MATH to FEATURE_AWK_LIBM;
 disable parsing test applet.

16 years agoless: experimental code to enable wrap/no-wrap
Denis Vlasenko [Fri, 24 Oct 2008 10:42:21 +0000 (10:42 -0000)]
less: experimental code to enable wrap/no-wrap
 and adapting to resized xterm windows. disabled for now.

16 years agoless: more sane way of line numbering. Prepares for
Denis Vlasenko [Thu, 23 Oct 2008 22:02:30 +0000 (22:02 -0000)]
less: more sane way of line numbering. Prepares for
 wrap/unwrap and line numbers to be toggleable.

16 years ago- give glob a chance
Bernhard Reutner-Fischer [Thu, 23 Oct 2008 13:49:21 +0000 (13:49 -0000)]
- give glob a chance
  CROSS_COMPILE=~/foo-bar-baz would fail otherwise
  See http://www.uclibc.org/lists/buildroot/2008-October/011191.html

16 years ago- use sys/inotify.h
Bernhard Reutner-Fischer [Tue, 21 Oct 2008 17:26:10 +0000 (17:26 -0000)]
- use sys/inotify.h

16 years agoinit: downgrade ENABLE_DEBUG_INIT to just a #define to prevent people
Denis Vlasenko [Tue, 21 Oct 2008 17:14:26 +0000 (17:14 -0000)]
init: downgrade ENABLE_DEBUG_INIT to just a #define to prevent people
 from selecting it in error. It has to be used ONLY for debugging
 init, never in production, as resulting init has serious differences.

16 years agoawk: fix typo in atan2 code. closes bug 5594.
Denis Vlasenko [Tue, 21 Oct 2008 12:59:34 +0000 (12:59 -0000)]
awk: fix typo in atan2 code. closes bug 5594.

16 years ago- fix ip route rejecting dotted quads as prefix
Bernhard Reutner-Fischer [Tue, 21 Oct 2008 12:42:45 +0000 (12:42 -0000)]
- fix ip route rejecting dotted quads as prefix
- adjust error message for wrong prefix not to mention address
  Previously e.g. ip route add 127.0.0.0/255.0.0.0 dev dummy0
  was rejected, saying
ip: an inet address is expected rather than "127.0.0.0/255.0.0.0"

function                                             old     new   delta
get_prefix_1                                         201     309    +108
get_prefix                                            55      73     +18
get_addr                                              55      73     +18
get_addr32                                            48      58     +10
get_addr_1                                           249     204     -45
.rodata                                           114569  114524     -45
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/2 up/down: 154/-90)            Total: 64 bytes

16 years agogetopt: reinstate erroneously removed getopt() reset code.
Denis Vlasenko [Tue, 21 Oct 2008 12:36:43 +0000 (12:36 -0000)]
getopt: reinstate erroneously removed getopt() reset code.

16 years agovi: handle chars 0x80, 0x81... correctly
Denis Vlasenko [Mon, 20 Oct 2008 08:59:03 +0000 (08:59 -0000)]
vi: handle chars 0x80, 0x81... correctly

16 years agodc: conditionalize parts which require libm
Denis Vlasenko [Mon, 20 Oct 2008 08:43:10 +0000 (08:43 -0000)]
dc: conditionalize parts which require libm

16 years agoash: fix NOEXEC mode - we were forgetting to pass environment!
Denis Vlasenko [Mon, 20 Oct 2008 08:15:51 +0000 (08:15 -0000)]
ash: fix NOEXEC mode - we were forgetting to pass environment!
env: promote to NOEXEC
hd: promote to NOEXEC, as hexdump is NOEXEC already

16 years agoash: fix a bug in standalone mode (corrupted getopt() state)
Denis Vlasenko [Mon, 20 Oct 2008 07:52:33 +0000 (07:52 -0000)]
ash: fix a bug in standalone mode (corrupted getopt() state)

16 years agoadd comment explaining previous change
Denis Vlasenko [Sun, 19 Oct 2008 19:54:49 +0000 (19:54 -0000)]
add comment explaining previous change

16 years agovolume identification: abolish /proc/partitions and /proc/cdroms
Denis Vlasenko [Sun, 19 Oct 2008 19:36:30 +0000 (19:36 -0000)]
volume identification: abolish /proc/partitions and /proc/cdroms
scanning. It does not catch volume managers and such.
Adding even more cruft is bad, so I decided to simply
scan /dev/* for any block devices. See how much better
it finds devices now:

# ./busybox_old blkid
/dev/sda1: LABEL="/boot" UUID="7931e231-dcb4-4b6d-9301-f7354ae24061"
/dev/dm-0: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a"
/dev/dm-1: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267"
/dev/sdb1: UUID="6F84-ED0F"

# ./busybox blkid
/dev/sdb1: UUID="6F84-ED0F"
/dev/root: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a"
/dev/dm-1: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267"
/dev/dm-0: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a"
/dev/sda1: LABEL="/boot" UUID="7931e231-dcb4-4b6d-9301-f7354ae24061"
/dev/mapper/VolGroup00-LogVol01: UUID="edc2a920-ef83-437e-ba64-d3b6dc851267"
/dev/mapper/VolGroup00-LogVol00: LABEL="Fedora-9-Live-x8" UUID="bb491e1e-1145-4f5b-b0ab-cbd2baf4f15a"

function                                             old     new   delta
static.drive_name_string                              12       -     -12
append_mount_options                                 205     190     -15
volume_id_open_node                                   37      18     -19
uuidcache_check_device                               485     257    -228
uuidcache_init                                       637      36    -601
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/4 up/down: 0/-875)           Total: -875 bytes
   text    data     bss     dec     hex filename
 792218     592    6648  799458   c32e2 busybox_old
 791260     592    6648  798500   c2f24 busybox_unstripped

16 years agoblkid: vda forgot to svn add it again. vda is stupid
Denis Vlasenko [Sun, 19 Oct 2008 17:47:31 +0000 (17:47 -0000)]
blkid: vda forgot to svn add it again. vda is stupid

16 years agoComment and whitespace tweaks.
Rob Landley [Sun, 19 Oct 2008 04:21:21 +0000 (04:21 -0000)]
Comment and whitespace tweaks.

16 years agovi: explain why reading 4 chars is unsafe
Denis Vlasenko [Sat, 18 Oct 2008 19:37:41 +0000 (19:37 -0000)]
vi: explain why reading 4 chars is unsafe

16 years agolibbb: do not reject floating point strings like ".15"
Denis Vlasenko [Sat, 18 Oct 2008 19:18:51 +0000 (19:18 -0000)]
libbb: do not reject floating point strings like ".15"

16 years agomount: -o parm1 -o parm2 should accumulate
Denis Vlasenko [Sat, 18 Oct 2008 19:15:57 +0000 (19:15 -0000)]
mount: -o parm1 -o parm2 should accumulate

16 years agovi: whitespace fix
Denis Vlasenko [Sat, 18 Oct 2008 19:04:37 +0000 (19:04 -0000)]
vi: whitespace fix

16 years agocpio: fix regression in prev commit (harmless)
Denis Vlasenko [Fri, 17 Oct 2008 14:11:04 +0000 (14:11 -0000)]
cpio: fix regression in prev commit (harmless)

16 years agodata_extract_all: do not complain if directory exists on mkdir
Denis Vlasenko [Fri, 17 Oct 2008 14:03:56 +0000 (14:03 -0000)]
data_extract_all: do not complain if directory exists on mkdir
rpm/cpio: move "20653 blocks" printout from get_header_cpio to cpio_main -
rpm doesn't want to have that

16 years agorpm: fix incompatibilities which prevented rpm -i foo.src.rpm
Denis Vlasenko [Thu, 16 Oct 2008 13:29:13 +0000 (13:29 -0000)]
rpm: fix incompatibilities which prevented rpm -i foo.src.rpm

function                                             old     new   delta
fileaction_setowngrp                                  57      89     +32

16 years agovi: a few trivial optimizations to keyboard reading code; bump timeout to 50s.
Denis Vlasenko [Thu, 16 Oct 2008 09:46:07 +0000 (09:46 -0000)]
vi: a few trivial optimizations to keyboard reading code; bump timeout to 50s.

function                                             old     new   delta
edit_file                                            901     912     +11
count_lines                                           74      72      -2
readit                                               306     289     -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 11/-19)             Total: -8 bytes

16 years agoConfirmed that on Linux the serial interrupt takes precedence over the timer
Rob Landley [Thu, 16 Oct 2008 06:34:10 +0000 (06:34 -0000)]
Confirmed that on Linux the serial interrupt takes precedence over the timer
interrupt, so we don't need to worry about scheduler delays.  This means the
delay can be trimmed down to 25 miliseconds.  Add comment while at it.

16 years agobuild system: dpkg needs .gz handling
Denis Vlasenko [Wed, 15 Oct 2008 14:50:14 +0000 (14:50 -0000)]
build system: dpkg needs .gz handling

16 years agosysctl: sysctl -a was still misbehaving, fix it
Denis Vlasenko [Wed, 15 Oct 2008 13:50:24 +0000 (13:50 -0000)]
sysctl: sysctl -a was still misbehaving, fix it

16 years agoreturn accidentally deleted "/* vi: set sw=4 ts=4: */"
Denis Vlasenko [Wed, 15 Oct 2008 09:44:37 +0000 (09:44 -0000)]
return accidentally deleted "/* vi: set sw=4 ts=4: */"

16 years agosysctl: fix bug 3894 _for real_.
Denis Vlasenko [Wed, 15 Oct 2008 09:43:35 +0000 (09:43 -0000)]
sysctl: fix bug 3894 _for real_.

16 years agosysctl: remove trivial comments. no code changes
Denis Vlasenko [Wed, 15 Oct 2008 08:45:54 +0000 (08:45 -0000)]
sysctl: remove trivial comments. no code changes

16 years agosysctl: remove special-cased reporting of EPERM,
Denis Vlasenko [Wed, 15 Oct 2008 08:29:17 +0000 (08:29 -0000)]
sysctl: remove special-cased reporting of EPERM,
 common code path gives nearly the same message. -50 bytes

16 years agosysctl: fix bug 3894 (by Kryzhanovskyy Maksym)
Denis Vlasenko [Wed, 15 Oct 2008 08:22:55 +0000 (08:22 -0000)]
sysctl: fix bug 3894 (by Kryzhanovskyy Maksym)

function                                             old     new   delta
sysctl_dots_to_slashes                                 -      47     +47
sysctl_write_setting                                 310     298     -12
sysctl_read_setting                                  296     284     -12
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/2 up/down: 47/-24)             Total: 23 bytes

16 years agovi: fix bizarre formatting. no code changes
Denis Vlasenko [Tue, 14 Oct 2008 12:59:42 +0000 (12:59 -0000)]
vi: fix bizarre formatting. no code changes

16 years agohush: add TODO
Denis Vlasenko [Tue, 14 Oct 2008 12:50:34 +0000 (12:50 -0000)]
hush: add TODO

16 years agohush: next small step towards functions
Denis Vlasenko [Tue, 14 Oct 2008 12:43:13 +0000 (12:43 -0000)]
hush: next small step towards functions

16 years agofix recurring "last_cmd overrun", fix [del] handling in insert mode
Denis Vlasenko [Tue, 14 Oct 2008 12:26:30 +0000 (12:26 -0000)]
fix recurring "last_cmd overrun", fix [del] handling in insert mode

16 years agovi: trivial size optimization -65 bytes
Denis Vlasenko [Tue, 14 Oct 2008 10:34:41 +0000 (10:34 -0000)]
vi: trivial size optimization -65 bytes

16 years agovi: reinstate timeout of 300 ms
Denis Vlasenko [Tue, 14 Oct 2008 10:25:05 +0000 (10:25 -0000)]
vi: reinstate timeout of 300 ms

16 years agovi: add comments to Rob's algorithm of reading and matching ESC sequences
Denis Vlasenko [Tue, 14 Oct 2008 10:09:56 +0000 (10:09 -0000)]
vi: add comments to Rob's algorithm of reading and matching ESC sequences
 (nice work btw!)

16 years agoEscape sequences sent over serial links don't come in as a block, so poll
Rob Landley [Tue, 14 Oct 2008 08:44:09 +0000 (08:44 -0000)]
Escape sequences sent over serial links don't come in as a block, so poll
needs to pause a bit to make sure the next character has time to come in.

16 years agoClean up editors/vi.c:readit() so it only does readahead when actually
Rob Landley [Tue, 14 Oct 2008 01:42:33 +0000 (01:42 -0000)]
Clean up editors/vi.c:readit() so it only does readahead when actually
parsing an escape sequence.  (This mitigates but doesn't fully fix the
the "cursoring around the file deletes data under qemu" bug, presumably due
to "\033[D" being treated as three separate characters.)

16 years agohush: fix NOMMU bug (analogous to preceding commit for MMU)
Denis Vlasenko [Mon, 13 Oct 2008 12:36:05 +0000 (12:36 -0000)]
hush: fix NOMMU bug (analogous to preceding commit for MMU)

16 years agotestcase for the last fix
Denis Vlasenko [Mon, 13 Oct 2008 08:54:42 +0000 (08:54 -0000)]
testcase for the last fix

16 years agohush: fix trashing of environment by local env vars:
Denis Vlasenko [Mon, 13 Oct 2008 08:53:43 +0000 (08:53 -0000)]
hush: fix trashing of environment by local env vars:
  a=a; a=b cmd; - a was unset!
  +57 bytes

function                                             old     new   delta
add_string_to_strings                                  -     110    +110
putenv_all                                             -      27     +27
run_list                                            2086    2111     +25
free_strings                                           -       7      +7
free_pipe                                            210     208      -2
add_malloced_string_to_strings                       110       -    -110
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 1/1 up/down: 169/-112)           Total: 57 bytes