aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
AgeCommit message (Collapse)Author
2019-02-09Remove more unnecessary macros. Inline bc_parse_exprs[] with the bit orderRob Landley
reversed so the mask is 1<<(x&7) instead of 1<<(7-(x&7)). Can't _quite_ make printString() use unescape() out of lib because \q is a thing?
2019-02-09Remove more useless typecasts, wrappers, and inline a function.Rob Landley
2019-02-09Remove some unnecessary wrappers, indirection, and typecasts.Rob Landley
2019-02-05Promote sntp to net.Rob Landley
2019-02-05Fix some llvm warnings.Rob Landley
I don't know why NDK llvm is complaining about adjtime(), toys.h is #including <sys/time.h> which http://man7.org/linux/man-pages/man3/adjtime.3.html says is the right header...?
2019-02-05Suppress warnings gcc should not be making (and a comment typo).Rob Landley
2019-02-05Fix server loop timeout logic.Rob Landley
2019-02-05Fix server mode and make request timeout 3 tries of 3 seconds (9 sec total).Rob Landley
2019-02-04Next round of sntp work: server and multicast modes, actually set time...Rob Landley
2019-01-28bc: Update to upstream version 1.1.0Gavin Howard
2019-01-24More random in-progress sntp work.Rob Landley
2019-01-22Whitespace: remove tabs from indentation.Elliott Hughes
I accidentally added a tab in xargs.c, so as penance I'll clean up all the tabs.
2019-01-22Fix sigjmp_buf/jmp_buf mismatches.Elliott Hughes
Broke the bionic build: external/toybox/toys/net/netcat.c:188:37: error: incompatible pointer types assigning to 'sigjmp_buf *' (aka 'long (*)[33]') from 'jmp_buf *' (aka 'long (*)[32]') [-Werror,-Wincompatible-pointer-types] if (toys.optflags&FLAG_L) NOEXIT(child = XVFORK()); ^~~~~~~~~~~~~~~~~~~~~~~~ external/toybox/lib/lib.h:375:19: note: expanded from macro 'NOEXIT' #define NOEXIT(x) WOULD_EXIT(_noexit_res, x) ^~~~~~~~~~~~~~~~~~~~~~~~~~ external/toybox/lib/lib.h:367:16: note: expanded from macro 'WOULD_EXIT' toys.rebound = &_noexit; \ ^ ~~~~~~~~ 1 error generated.
2019-01-22Actually calculating/displaying a reasonable time.Rob Landley
Not yet setting, no server/multicast, should validate source address...
2019-01-18First chunk of sntp code.Rob Landley
2019-01-08modprobe: don't return failure just because we didn't find global config.Elliott Hughes
Without this change, a successful modprobe on Android exits with status 1 because Android doesn't have /etc/modprobe.conf or /etc/modprobe.d/ --- neither of which seem to be required on desktop Linux either.
2019-01-08more: don't _exit(0) on success.Elliott Hughes
If we do, we won't flush, and we might not output everything.
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.