aboutsummaryrefslogtreecommitdiff
path: root/toys
AgeCommit message (Collapse)Author
2020-05-27Trivial cleanup.Rob Landley
2020-05-27Cleanup pass.Rob Landley
2020-05-27dhcpd: fix warningsEthan Sommer
Add presumably intended conversion specifier for gconfig.valid_lifetime as it is an argument to error_msg despite the format string having no conversion specifiers. Remove always true false inverse check for address of array gstate.rcvd.rcvd_pkt6.transaction_id.
2020-05-27Convert array_add() to arg_add().Rob Landley
2020-05-27devmem: replace getpagesize with POSIX sysconf(_SC_PAGESIZE)Ethan Sommer
2020-05-26Remove unused include and constantsEric Molitor
2020-05-26Merge ipv6 setroute into a single functionEric Molitor
2020-05-26Fix syntax checking for "if true; then echo hello | fi", fix some tests,Rob Landley
slightly more elaborate debug output.
2020-05-26First pass of adding RTNetlink setroute supportEric Molitor
2020-05-26Remove send_nlrtmsg embedding call into display_route as it is only used hereEric Molitor
2020-05-26Use perror_exit to replace exit calls.Eric Molitor
2020-05-24Cleanup openvt.Rob Landley
2020-05-24Cleanup blkdiscard.Rob Landley
Yeah, this limits 32 bit support, but that's a "fix it properly in lib/args.c or don't care" issue. Why work around it here when truncate -s doesn't?
2020-05-21vmstat: increase column sizesPetri Gynther
Increase memory:swpd,free,cache to 7 characters Increase swap:si,so to 5 characters Increase system:in,cs to 5 characters Sample output from Pixel 4 phone: procs ------------memory------------ ----swap--- -----io---- ---system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 4 0 1111676 87896 6328 2268596 8152 11896 10712 14280 0 25712 31 21 46 3 17 0 1082788 224292 5972 2213996 73220 68908 2432 3948 1 26611 41 38 22 0 6 0 1127316 203196 5972 2225164 8980 53996 11796 788 0 25200 33 22 45 1 0 0 1133072 200984 5972 2225280 416 6260 52 88 0 8543 10 6 84 0 2 0 1128976 196976 5972 2225692 3588 0 340 800 0 5243 5 4 91 0
2020-05-19Add RTA_CACHEINFO support and resolve remaining todo items in display_routesEric Molitor
2020-05-19Don't leak sockfd into children.Rob Landley
2020-05-17Merge IPv6 support into display_routesEric Molitor
2020-05-17Don't ask for line continuation when ending with &Rob Landley
2020-05-17Add support for mss, win and irtt to new netlink based display_routesEric Molitor
2020-05-17Refactor display_routes to use rtnetlinkEric Molitor
2020-05-17Add xsend, xrecv and send_nlrtmsgEric Molitor
2020-05-16Fix address family help textEric Molitor
2020-05-13devmem: avoid sign extension.Elliott Hughes
Bug: http://b/156292059 Signed-off-by: Wei Wang <wvw@google.com>
2020-05-11route should be in sbinEric Molitor
2020-05-09Remove old scripts/minicom.sh and cleanup microcom.c a bit more.Rob Landley
Use s# instead of atoi, meantion -s default in help text, use toybuf instead of stack buf, reuse i instead of declaring a separate ssize_t, FLAG() macro.
2020-05-09Shrink sed --help from 150 lines to 91.Rob Landley
2020-05-08Don't have -L forward stderr automatically, break out -E to do that.Rob Landley
2020-05-08Inline do_main(), remove second argument of get_arg() that's always 0Rob Landley
(one caller fed in N_TTY which is 0).
2020-05-08stty.c: fix interpreting output of stty -gEthan Sommer
move case checking for stty -g output as input above case checking for an int argument, so atoi doesn't cause "500:5:bf:8a3b:3"... to be considered an int argument of 500
2020-05-06Kill zombies.Rob Landley
2020-05-06Minor doc tweaks.Rob Landley
2020-05-05Link to bash man page.Rob Landley
2020-05-05Remove leftover increment and move variable clear after error report.Rob Landley
2020-05-04Restore error message for command not found, don't let ctrl-C kill shell.Rob Landley
2020-05-03Fix "make root && chroot root/host/fs /init" with glibc host compiler.Rob Landley
2020-05-03Next round of shell work.Rob Landley
2020-05-01Minor cleanup.Rob Landley
2020-04-28Remove unnecessary MAYFORK.Rob Landley
2020-04-27Add gratuitous typecast to work around insane warning.Rob Landley
(long is 32 bits on 32 bit systems, just use long already)
2020-04-27Redo toysh variable expansion plumbing to start ${} (variable expansion canRob Landley
now return error), inline utf8spnc and merge_arg(), unify "break" logic, fix "continue" and "done; done", fix cd not to expand arguments twice
2020-04-23fdisk: fix -Wsizeof-pointer-memaccess, switch to FLAG() macrosEthan Sommer
2020-04-20patch: fix out of bounds memory access.Elliott Hughes
On empty lines, we'd read one byte before the start of the buffer.
2020-04-16cpio: fix tests by removing --trailer.Elliott Hughes
f2866cf58a07c9d681ecd6695ea969ac70e59a3d fixed the cpio --trailer check as it claimed to, but doing so changed our behavior (since it used to be always-on and is now off unless you supply --trailer). This broke one of the cpio tests. Since I can't find any other cpio that has a --trailer option (or its inverse), this patch removes --trailer. This reverts our behavior to our old behavior (always include the trailer). Judging by the fact that the cpio tests pass with TEST_HOST=1, this seems to be the expected behavior.
2020-04-16Promote rtcwake.Rob Landley
2020-04-16Minor cleanup.Rob Landley
2020-04-16Promote blkdiscard.Rob Landley
2020-04-16Cleanup blkdiscard.Rob Landley
2020-04-16Weed-whack a few warnings out of pending so allyesconfig is less noisy.Rob Landley
2020-04-15fdisk: change sector_t to unsigned long long to fix -WformatEthan Sommer
2020-04-15ip: appease clang warningsEthan Sommer
fix false positive -Wformat-security by passing string literal directly to error_exit, instead of assigning it to a variable and passing that fix -Wparentheses-equality by removing extra parentheses