aboutsummaryrefslogtreecommitdiff
path: root/toys
AgeCommit message (Collapse)Author
2018-06-29Cleanup pass on passwd, needs more testing.Rob Landley
2018-06-28stat: `stat -f` uses %T rather than %t.Elliott Hughes
(At least for coreutils 8.28.)
2018-06-28stat: fix %a in default output.Elliott Hughes
`stat -c %a` doesn't output a leading zero, but `stat` does.
2018-06-28stat: remove hideous GNUism.Elliott Hughes
Even GNU coreutils 8.28 doesn't use the lopsided `quoting' any more.
2018-06-28Tweak help text to clarify time fields are access/modification/creation time.Rob Landley
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-14Fix cut -DF as awk replacement by not matching delimiterless lines with -DRob Landley
2018-06-14Change do_lines() semantics to end with a callback(0,0) to indicate EOF,Rob Landley
adjusting existing users.
2018-06-14I tend to put extra parentheses around & because its precedence being slightlyRob Landley
wonky was Dennis Ritche's one public regret about C (see https://www.lysator.liu.se/c/dmr-on-or.html).
2018-06-14ping: support ping6 as a synonym for `ping -6`.Elliott Hughes
Sadly, this is what existing scripts seem to do.
2018-06-13ping: add -m, switch to xsetsockopt.Elliott Hughes
Bug: http://b/28027677 toybox ping doesn't support -m mark Test: strace -e setsockopt ./toybox ping -c 1 -m 0x1000 127.0.0.1
2018-06-12top: remove flicker in interactive mode.Elliott Hughes
2018-06-12top: running processes are shown in bold.Elliott Hughes
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-06-02Convert more ps help text to two columns.Rob Landley
2018-05-27Teach "file -" to recognize ELF files, add bounds checking and comments.Rob Landley
2018-05-06Fix bug in 'xxd' causing incorrect translation for upper-case characters.Zach van Rijn
2018-05-06Support fractional seconds (and other time units) in `top -d`.Elliott Hughes
LTP uses `top -d 0.1`, which isn't convincingly useful, but general support for other time units might be useful, and switching to xparsetime addresses both at once. Also fix 3169d948c049664bcf7216d4c4ae751881099d3e where I mistakenly treated `rev` and `toys.optflags&FLAG_b` as interchangeable. (Without this second fix, `top -b` looks fine but `top` is broken!) Also fix xparsetime to reject input such as "monkey" or "1monkey".
2018-05-03Promote uuidgen.Rob Landley
2018-05-03Add uuidgen.Elliott Hughes
Reuse create_uuid, but make it match the current RFC.
2018-04-23Don't include spurious '\r's in `top -b` output.Elliott Hughes
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-18Add the flags linux kernel build checks for.Rob Landley
2018-04-13Add getconf.Rob Landley
2018-04-12Fix "cp -p" doesn't preserve timestamps bugMinghui Liu
2018-04-08Add cp --parentsRob Landley
2018-04-08Add mkpath() for common case of mkpathat(), and #define magic constants.Rob Landley
2018-04-08Add readlink -m to show where a missing path would be.Rob Landley
Note: ubuntu will show -m through a file, this treat that as error.
2018-04-06Fix precedence error in vmstat.Elliott Hughes
toys/other/vmstat.c:98:12: error: logical not is only applied to the left hand side of this bitwise operator [-Werror,-Wlogical-not-parentheses] if ((!toys.optflags&FLAG_n) && isatty(1)) terminal_size(0, &rows); ^ ~
2018-04-03Finish renameing test_* to demo_* in example directories and tweak README.Rob Landley
(This way "make test_sed" isn't in the same namespace as "make test_scankey".)
2018-04-02Second argument to inet_ntop() is int, not long. (64 bit big endian systems ↵Rob Landley
care.)
2018-03-31Use XVFORK() macro, add option ranges, make lookup_port() check /etc/services,Rob Landley
remove redundant CLOEXEC (xsocket does it) and CFG_NETCAT_LISTEN test (we're not doing FORCE_FLAGS so FLAG_L and FLAG_l become zero), remove comments about vfork triggering compiler/libc bugs (XVFORK handles it).
2018-03-28Haroon Maqsood pointed out "vmstat 1 1" didn't stop and "vmstat -n" didn'tRob Landley
print the first header line.
2018-03-26Rename demo_human_readable.c->demo_number.c and have it do atolx() too.Rob Landley
2018-03-23Add the extra info we've got back to the error message.Rob Landley
2018-03-23Inline toys/e2fs.h into mke2fs.c. (Debris from the dawn of time.)Rob Landley
2018-03-21Collate two error messages that both mean "your kernel is broken".Rob Landley
2018-03-21Fix vmstat for large machines.Elliott Hughes
48 cores is too much to fit in toybuf.
2018-03-19Ryan Prichard pointed out that du -d0 should act like du -s, but the plumbingRob Landley
wouldn't let him assign a negative default value, so I fixed it.
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-12Add xxd -o.Elliott Hughes
2018-03-11Add bc to pendingGavin Howard