Age | Commit message (Collapse) | Author |
|
b9bece4ecd am: 1fa0602e27
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1673746
Change-Id: I176bc14d65da18a7c7d04eb000720dab46abe12b
|
|
b9bece4ecd
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1673746
Change-Id: I1e9cf524bd444c80fc8200ef7d414fa0820ca53f
|
|
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1673746
Change-Id: I97986c577a47640bb701f813a76aad3fe022f728
|
|
Change-Id: I44f673f63bd7c9528935d7923221c7f69882a6df
|
|
|
|
|
|
|
|
Cached $IFS value has to be per function context because local vars.
|
|
|
|
|
|
Change-Id: I94f10634c9e6e972b170d54a71f14f0f2f9b8d6e
|
|
33b265753f am: 8f417134fc
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1663639
Change-Id: I2f2dcc970f6a2566e74a51416177021e928ba575
|
|
33b265753f
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1663639
Change-Id: I9585d444f322a3b5a6f14fbbc35ac7cc22ec38f0
|
|
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1663639
Change-Id: I61fb1fdc96e320fe7015ac604d7c726f76054895
|
|
Note: toy_exec() does an exact name match so fails given a path anyway,
it's just an optimization to avoid the binary search, but special casing
absolute path while very cheap isn't _correct_...
|
|
|
|
|
|
Change-Id: I14eea373d1242bc16afafc4ddc6ca305ef6b044e
|
|
|
|
Remove cached blk/pout/urd and make TT.ff->blk always be populated instead
(like TT.ff, list is never empty), have current pipe (and block trailing)
redirections live in current TT.ff->blk.
Left in a bunch of commented debug printfs and a filehandle dump function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Noticed while using telnetd to manually test some telnet fixes: telnetd
would sometimes exit when I'd disconnect because it couldn't find pid 0
on its list of sessions.
I've not seen obscure exits because select() times out, but I've also
changed that `return` to an error_exit() so we'll at least know what's
happened if that ever occurs.
Also use <arpa/telnet.h> rather than manually #define'ing its constants,
use the FLAG() macro throughout, and xsetsockopt(). Don't pointlessly
set errno to 0 at the start of main and then never look at it again.
|
|
The kill(2) should be checking whether `pid` still exists, not the
process that wait(2) just told us has exited.
|
|
(fixes up some test suite tests).
|
|
I've been using toybox vi as a makeshift "less" lately. This patch
contains all the fixes I've made...
$ should go to the last character before the newline, not the newline.
Fix ^b and ^f, and ^e and ^y (which was mistakenly ^u before, which is
also a movement key, but half of ^d/^u, neither of which we actually
implement, and neither of which I've ever used myself --- I might have
large hands, but they're not _that_ large).
Fix the display of lines longer than 1024 characters.
Fix the display of the "~"s after the end of the file, and use VT100 dim
to make it a bit more obvious that they're not actually part of the
file. Also be a bit more consistent about \033 which is the most common
way to write \x1b in toybox.
Don't show the status while in ex mode.
Make what the status is showing a little less unclear by adding a "C"
for the byte offset and file size, and add a percentage (albeit one
based on bytes rather than lines).
Fix the flickering seen on updates with the usual stupid trick of
setting a large buffer.
Handle SIGWINCH.
Add support for Home/End/PageUp/PageDown.
Remove a bit of duplication around calls to draw_page().
|
|
Not fully wired up yet, probably a bunch of regressions.
|
|
Change-Id: I592ee83f67393a0bcbfd7e87790eb3418245a407
|
|
935eafc9a6 am: 32380c5430
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1639371
Change-Id: Ibd60d202458d3bb1eccb297667c69c827a456b83
|
|
935eafc9a6
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1639371
Change-Id: Ice215de956d1e651f9b8884ef8fffcb1c5ec5054
|
|
|
|
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1639371
Change-Id: I1c03697b89a7e541597e4da57b16996c6bbb2513
|
|
Change-Id: I9874262daf5ffe740a67078b89fec34c6abe6d76
|
|
I broke this when I added the masking out of the S_IFMT bits for macOS,
because string_to_mode needs the full mode with those extra bits,
specifically so that it can recognize directories for +X to work.
I've duplicated chtest rather than change chtest to explicitly set the
modes to 000 before running the given chmod command because I didn't
want to touch *all* the tests and obscure the addition of just one.
|
|
Change-Id: Ic6c6a4618e63bc1d2f91a5a8120b35817390e6f8
|
|
9540d05179 am: 10315372ce
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1633265
Change-Id: I7b8185ff848d307c8885b1957362eea26649c37f
|
|
9540d05179
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1633265
Change-Id: I31eb754432d66543a1ec607de4e4344c85646c46
|
|
Original change: https://android-review.googlesource.com/c/platform/external/toybox/+/1633265
Change-Id: I6073e6715052e96f1ed2310e1760c030648a5fc3
|
|
across one of the issues I forgot to fix. Added a couple comments and
renamed a variable to try to clarify the code while I was there.
|
|
(I hit 0 paired with EAGAIN causing premature pipeline end many years
ago when a pipeline was Ctrl-Z then fg, may not still be possible with
modern kernels but I left that covered just in case.)
|
|
Change-Id: Ie0b793c73bf9e6c593ee13675360f3ecf94eb546
|
|
It's legal for a system call to set non-zero errno and return a good
status. The caller (grep) should check return status first.
Test: 2000 loops of greping 1000+ lines each loop
Signed-off-by: Robin Hsu <robinhsu@google.com>
Change-Id: I55f7cd5d8a6289c5e8a21ed3057e995a75b9b4fa
|
|
|