aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
AgeCommit message (Collapse)Author
2019-01-07modprobe: reset errno before ins_mod.Elliott Hughes
Otherwise in verbose mode we output bogus errors instead of `Success`.
2018-12-27ipv6 address didn't fit in the buffer.Rob Landley
2018-12-21Fix UDP checksum verification error.Elliott Hughes
From RFC 768, if UDP packet checksum computation yields a result of zero, change it to hex 0xFFFF. The current udhcpc checksum verification would yield false positive for this case. A better way is to compute the checksum with the original checksum field and the result should be zero for good udp packet. Signed-off-by: Yangchun Fu <yangchun@google.com>
2018-12-04Clean up some --help formatting.Elliott Hughes
Be consistent about upper versus lower case. (Upper seems to have the majority, so I went with that, though I'm happy to provide the opposite patch as long as we're consistent!) Be consistent about using \t. (Though saving a few bytes seems like it might be better done in the code that generates help.h rather than directly in the source, since tabs make careful ASCII art layout hard enough that we regularly have things misaligned.) Remove trailing periods (most of which seem to have been added by me). Always use the US "human readable" rather than my British "human-readable", and be more consistent about declaring whether we're showing multiples of 1000 or 1024. Just say "verbose" rather than adding a useless "mode" or "output".
2018-12-02Fresh implementation of test.c.Rob Landley
2018-11-29Marius Adaskevicius pointed out mdev -s should follow symlinks.Rob Landley
2018-11-19Eduardas Meile reported "The -Werror=format-security flag is applied byRob Landley
default in Yocto 2.6 Thud release" and identified several error_exit() and friends that should use the _raw versions.
2018-11-17Remove the "const" and "restrict" nonsense so it compiles without tainting lib.cRob Landley
2018-11-17Update bc for 1.1 releaseGavin Howard
2018-10-30Promote watch to other.Rob Landley
2018-10-30Use % for -n and shut up gcc's broken "may be used uninitialized" warnings.Rob Landley
(Alas, llvm doesn't understand -Wno-maybe-uninitialized yet.)
2018-10-21Move start_redraw() to lib/ and have ps.c (top) use it.Rob Landley
2018-10-20Some more --help consistency.Elliott Hughes
From eyeballing the output of for i in `./toybox | tr " " "\n"` ; do ./toybox $i --help ; done | \ grep '^-' | grep -v "\t"
2018-10-10Rewrite of watch.Rob Landley
2018-09-21Promote i2ctools.Rob Landley
(Fixed one declaration not at start of a block.)
2018-09-21Implement i2c utilities.Elliott Hughes
This is enough to cover the use cases of the Android users I know of. Bug: http://b/115644518
2018-09-08Clean up test.cKevin Spiteri
* A number of logic and style fixes * No longer changes toys.optargs and toys.optc * Now supports ( ) ! -a -o * Supports POSIX special cases for low argument count
2018-08-08Add bc (and its tests) to pendingGavin Howard
2018-08-07Added support for a fourth field in mdev.confFaustas Azuolas Bagdonas
2018-08-07Forgot to check in the deflate header change, and pending shouldn't default y.Rob Landley
2018-08-05Make gzip/zcat use lib/deflate.c when not using zlib, and inline fix_time().Rob Landley
2018-08-04Fix modprobe error handling.Elliott Hughes
modprobe was failing if you `modprobe a.ko`, then `modprobe b.ko` where b.ko depends on a.ko --- b.ko will fail to load because a.ko is already loaded. The code to handle this was incorrectly checking `rc` rather than `errno` against EEXIST. (We should pull the insmod.c equivalent of `ins_mod` out into lib/ and reuse it in modprobe.c, but I didn't want to get bogged down.) Bug: https://issuetracker.google.com/112069618 Reported-by: Wen Xie <xiewen3@motorola.com>
2018-08-03Typo.Rob Landley
2018-08-03Fix error message pointed out by Reverend Homer.Rob Landley
2018-08-02Move pending/compress.c to lib/deflate.c, first pass at genericizing it.Rob Landley
2018-07-13diff: fix build with -Wformat=security.Elliott Hughes
The problem with testing changes on my desktop is that they won't always compile when I try to sync AOSP...
2018-07-04diff: add timestamps to the ---/+++ lines and --color.Elliott Hughes
(My apologies for mixing these two unrelated changes up.)
2018-06-21Promote fmt to otherRob Landley
2018-06-21Tweak fmt width calculation.Rob Landley
2018-06-20Redo of fmt.c around loopfiles_lines() and understanding tab indents.Rob Landley
2018-06-11Promote ping to toys/netRob Landley
2018-06-11Fix ping -f, add summary section, yank TOYFLAG_ROOTONLY.Rob Landley
Traditional "ping flood" would be "ping -fi0 -c0" but we require root for -i<.2
2018-06-09Show workaround for the kernel bug when ping hits it.Rob Landley
Patches were submitted upstream to fix it at https://patchwork.kernel.org/patch/9847017/ and http://lkml.iu.edu/hypermail/linux/kernel/1710.3/04715.html to no effect.
2018-05-03Promote uuidgen.Rob Landley
2018-05-03Add uuidgen.Elliott Hughes
Reuse create_uuid, but make it match the current RFC.
2018-04-20Update tftp.cfilipperich
Optionally, accept and acknowledge OACK from server after sending original RRQ, if the server implements RFC2347 and responds first with an OACK before sending DATA packets.
2018-04-08Add mkpath() for common case of mkpathat(), and #define magic constants.Rob Landley
2018-03-23Inline toys/e2fs.h into mke2fs.c. (Debris from the dawn of time.)Rob Landley
2018-03-18Un-default fmt(1) while it's in pending.Elliott Hughes
2018-03-18The author of that bc.c says it won't be ready for 6 months and I'm notRob Landley
to touch it in the meantime, so no point having it in pending.
2018-03-13Add beep feature to watchMinghui Liu
2018-03-12bc cleanup: a few obvious inlines.Rob Landley
Inline #define bcg TT (from generated/globals.h) Inline BC_FLAG with FLAG_ values from generated/flags.h. Replace BC_MAX() and BC_MIN() with maxof() and minof() from Inline BC_INVALID_IDX (it's used twice and doesn't need a typecast). Inline bc_func_insertParam() and bc_func_insertAuto() (each is used once).
2018-03-12bc cleanup: move for(int i;) declarations to int i; for(i;).Rob Landley
Coding style: declarations go at the start of blocks.
2018-03-11Add bc to pendingGavin Howard
2018-01-31Ahem, I _said_ basic ping support.Rob Landley
2018-01-21gzip cleanup: fix test_gzip, unify do_gzip/do_gunzip, inline gzerror_msg().Rob Landley
2018-01-20Fix gunzip to past test_gunzip.Rob Landley
2018-01-03Cleanup pass on gzip.c.Rob Landley
2018-01-01Promote logger, and fluff up help text a bit.Rob Landley
2018-01-01Cleanup logger.c, and move the facilitynames/prioritynames SYSLOG_NAMESRob Landley
stuff syslog.h does into lib.c and portability.h