aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-03Factor out xtempfile()Rob Landley
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-02Library probes need $LDFLAGS (for --static)Rob Landley
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-31Remove semicolon from WOULD_EXIT() macro (screws up if statement levels).Rob Landley
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-23Fix break caused by removing toys/e2fs.h.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-22atolx should use tolower instead of toupperMinghui Liu
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-20Fix atolx not integer error when used with suffix *dMinghui Liu
2018-03-20Minghui Liu pointed out that the b and c suffixes were reported as errors.Rob Landley
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-14Fix last uninitialized warning.Elliott Hughes
clang is fine with the noreturn nature of error_exit, but only if we don't `if (false)` it out for non-debug builds. lib/args.c:304:18: error: variable 'temp' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] } else if (CFG_TOYBOX_FLOAT && new->type == '.') { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/toybox/generated/config.h:11:26: note: expanded from macro 'CFG_TOYBOX_FLOAT' ^ external/toybox/lib/args.c:308:19: note: uninitialized use occurs here options = --temp; ^~~~ external/toybox/lib/args.c:304:14: note: remove the 'if' if its condition is always true } else if (CFG_TOYBOX_FLOAT && new->type == '.') { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/toybox/lib/args.c:255:15: note: initialize the variable 'temp' to silence this warning char *temp; ^ = NULL
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-12Fix bug in names_to_pid.Elliott Hughes
Found by the compiler, not me: lib/lib.c:1053:30: warning: 'st2.st_dev' may be used uninitialized in this function [-Wmaybe-uninitialized] if (st1.st_dev != st2.st_dev || st1.st_ino != st2.st_ino) continue; ~~~^~~~~~~
2018-03-11Add bc to pendingGavin Howard
2018-03-10Split "comma separated values" parsing from mntent.h plumbing.Rob Landley
2018-03-10Add a way for commands to distinguish "ps -ax" from "ps ax".Rob Landley
2018-03-10Add getra and setra to blockdevNg Zhi An
Bug: 74390492
2018-03-10Record the news.html update for last release.Rob Landley
2018-02-24Update version string to 0.7.6.0.7.6Rob Landley
2018-02-22Bugfix, facility values are <<3 in the headers.Rob Landley
2018-02-18Work around a musl-libc bug that has facilitynames/prioritynames in headersRob Landley
but then the link fails.
2018-02-17Add RFC link to the examples.Rob Landley
2018-02-10Fix ps -T again, but this time read files from tid directory, not pid.Rob Landley
(Otherwise updating pid to parents makes threads read thread parent data.)
2018-02-10Rename struct strawberry -> struct ofields, and carveup -> procpid.Rob Landley
The first contains display fields selectable by the -o argument, the second contains the /proc/$PID data for one process.
2018-02-09Fix the pidof comm and cmdline tests.Elliott Hughes
If we have a 15-byte name, we don't know whether comm actually matches or is a truncated form of a longer name that has a common prefix. For example, with "this-is-a-very-long-name-that-is-too-long", we shouldn't match "this-is-a-very-" (but the old code would). The cmdline code was also broken on Android because it used basename(3) rather than getbasename. This doesn't affect glibc because there's a workaround in portability.h to ensure that we get the non-POSIX basename(3) with glibc but then a non-glibc section that ensures everyone else gets POSIX basename(3). That should probably be removed (and maybe `basename` poisoned) to prevent similar mistakes in future. Bug: http://b/73123244
2018-02-09Andreas Gampe suggested a different fix.Rob Landley
(Bionic _does_ do the malloc(0)!=0 thing, the problem is pedantic access checking, not null dereference. So test count instead.)
2018-02-08Thinko pointed out by Andreas Gampe (causing segfaults in top, oops).Rob Landley
2018-02-04People keep running ./configure, so have it do a defconfig for them.Rob Landley
2018-02-04Add crc32.Rob Landley
In cksum, make -H pad with leading zeroes to 8 chars, don't output len with -N, and don't output filename with zero arguments.
2018-01-31Ahem, I _said_ basic ping support.Rob Landley
2018-01-30Basic ping support.Rob Landley
Requires echo 0 $((1<<30)) > /proc/sys/net/ipv4/ping_group_range (as root)
2018-01-24Revert the ps -T thing until I understand what Elliott wants.Rob Landley
2018-01-23Fix hang in losetup test.Elliott Hughes
Switch the printf over to %s because the input is actually hex (so %d is wrong), but without the leading "0x" that %x would require. For some reason the NODE assignment wasn't providing any input to awk (hence the hang), and awk wasn't looking for the correct field anyway. The tests still fail for me: losetup: /dev/block/loop0: No such device or address losetup: /dev/block/loop0: No such device or address losetup: file: No such file or directory losetup: needs 1 arg (see "losetup --help") But at least now they allow the other tests to continue!
2018-01-21Fix variables in help.txtReverend Homer
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-15Fix "ps -T 1234" to show thread belonging to that PID.Rob Landley
2018-01-15Merge shared_main() back into ps_main() and top_main(), add comments.Rob Landley