Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-12-30 | lsb/mktemp: Add -u flag | Kylie McClain | |
The -u flag creates a file, and unlinks it before exiting. This is usually known as "unsafe mode", or "dry-run" mode. GNU mktemp has it, as does Busybox's mktemp and likely many others. | |||
2015-12-30 | First half of iotop. Add READ, WRITE, IO, DREAD, DWRITE, SWAP, DIO, and | Rob Landley | |
corresponding percentile fields to ps. Move FLAG_ macro usage to ps-specific code (top/iotop have their own flag contexts). Split init and match code into shared and ps-specific parts. Fix bug in COMMAND for privileged processes. | |||
2015-12-30 | Add more keys to scan_key() and fix hang in scan_key_getsize(). | Rob Landley | |
2015-12-30 | make "ls -m | cat" assume 80 columns. | Rob Landley | |
2015-12-30 | I didn't add comma_args() to lib.c, I added it with the other comma functions. | Rob Landley | |
(Oops. Missed a file checkin, build break, my bad.) | |||
2015-12-29 | Add strafter() to lib. | Rob Landley | |
2015-12-29 | Make pidof use comma_scan() | Rob Landley | |
2015-12-29 | Move comma_args() from ps.c to lib. | Rob Landley | |
(Moved header a while ago, forgot to check in function move.) | |||
2015-12-27 | Add scan_key_getsize() doing the ANSI probe, switch scan_key() to TAGGED_ARRAY, | Rob Landley | |
and add test_scankey. | |||
2015-12-24 | Move get_line() header to pending.h because posix has FILE * versions. | Rob Landley | |
2015-12-23 | Factor out draw_str() and friends. | Rob Landley | |
2015-12-22 | First guess at cp xattr support, ala --preserve=context,xattr | Rob Landley | |
2015-12-22 | Convert cp from magic constants to TAGGED_ARRAY() | Rob Landley | |
2015-12-21 | Cleanup tail -f. | Rob Landley | |
2015-12-21 | Rich Felker's reading of posix is that fchown() and fchmod() must be allowed | Rob Landley | |
on files opened read-only, so revert last commit (force writeable logic). | |||
2015-12-21 | Add ps -o psr,rtprio,sched. | Elliott Hughes | |
These three are currently available in Android's ps but not in toybox ps. | |||
2015-12-21 | Implement tail -f. | Josh Gao | |
2015-12-19 | Redo linestack to handle embedded NULs. | Rob Landley | |
2015-12-19 | Start of vi. | Rob Landley | |
2015-12-18 | Next giant chunk of ps work: add _NAME_TAG bitmask values to tags.h | Rob Landley | |
(leading underscore version is 1<<NAME_TAG version, with 1LL for >31 shift), suck lots of magic constants out of ps and use tag macros instead, redo command line display so there's now 6 variants (CMD COMM ARGS from posix, NAME CMDLINE from android, and COMMAND for completeness). Document more cases where posix is nuts or widely ignored. | |||
2015-12-16 | Don't discard previous block when mkstatus finds another span tag with same id. | Rob Landley | |
2015-12-13 | Start of TAGGED_ARRAY() infrastructure. | Rob Landley | |
This lets you have struct arrays with a string as the first member, ala: struct {char *name; int x, y} blah thingy[] = TAGGED_ARRAY(BLAH, {"one", 1, 2}, {"two", 3, 4}, {"three", 5, 6} ); And it produces #defines for the array index of each, ala: #define BLAH_one 0 #define BLAH_two 1 #define BLAH_three 2 So you can use thingy[BLAH_two].x and still reorder the elements at will. Note: if you screw up the array initializers, temporarily replace TAGGED_ARRAY(BLAH, with { and the ); with }; and the compiler will give you better error messages. (With the macro the compiler reports errors on the TAGGED_ARRAY line, not where the comma is missing in its contents.) Currently the TAGGED_ARRAY( and ); must be on their own lines, and the { and start of each attached string must be on the same line. | |||
2015-12-12 | Make "ps -o TIME+ -k TIME+" work. Factor out -o field names, field lengths, | Rob Landley | |
and slot numers into a structure. (Keeping multiple arrays in sync may have been efficient but it was ugly.) Fix duplicate command name copying that corrupted the name of kernel threads. Tighten up slot[] docs. | |||
2015-12-12 | Add a useless memset (under CFG_TOYBOX_DEBUG) to shut up valgrind. | Rob Landley | |
Valgrind complains that we add uninitalized memory to totals[] fields we never read from. (If we didn't set it in entrylen() we don't use it during display, they're testing the same flags), but valgrind doesn't understand that. | |||
2015-12-10 | Expand toys.optargs to 64 bits so people adding more options to ls don't run ↵ | Rob Landley | |
out. Keep the low 32 bits of FLAG_x constants as 32 bit numbers so that at least on little endian platforms it's still normal 32 bit math outside of lib/args.c. | |||
2015-12-09 | tail: use off_t instead of ssize_t for file offset. | Josh Gao | |
2015-12-06 | Rename dirtree->data to dirfd, and don't store symlink length in it. | Rob Landley | |
2015-12-06 | Attempt at making cpio chown() mode 000 files sanely. | Rob Landley | |
2015-12-06 | Remove trailing whitespace and wrap lines to 80 chars. | Rob Landley | |
2015-12-06 | CPIO: Add --no-preserve-owner option. | Mike Moreton | |
2015-12-06 | Correct setting of guid and uid when extracting from a cpio archive. | Mike Moreton | |
2015-12-06 | Enable matching any perm bits. | Gilad Arnold | |
Includes tests for the new feature, and a failure case for the minimal perms test as well. Also some typo fixing / massaging the help text so it fits in 80 columns. | |||
2015-12-06 | Add free -h, based on a patch from Isabella Parakiss. | Rob Landley | |
2015-12-05 | Add start of top infrastructure to ps, null terminate some stridx() searches, | Rob Landley | |
move slot[] documentation into C code, add PR %VSZ VIRT RES SHR | |||
2015-12-04 | Tom Marshall reported that blkid was handling ext2 wrong. | Rob Landley | |
Even though ext2 has a comment that it has to be at the start, I added swap to the start of the array (oops). The test suite was also wrong (it was matching the _incorrect_ output). | |||
2015-12-04 | Replace duplicate sed test with case we hadn't covered yet. | Rob Landley | |
2015-12-01 | Twitter's page seems reasonably simple and straightforward, use that. | Rob Landley | |
2015-11-29 | Implement ps --sort. | Rob Landley | |
2015-11-29 | Add basic sort logic. | Rob Landley | |
2015-11-28 | Split out string_field() from show_ps(). | Rob Landley | |
2015-11-28 | Save string offsets rather than recalculating them each time, and use struct | Rob Landley | |
instead of carving up toybuf by hand. This makes breaking out the field conversion logic into its own function less expensive. | |||
2015-11-26 | Split do_ps() into get_ps() and show_ps() as a start on implementing --sort. | Rob Landley | |
Change readfileat() to pass back length of read. | |||
2015-11-19 | Fix find -perm. | Elliott Hughes | |
1) It read st_dev instead of st_mode. 2) It reversed the semantics of absolute vs minimal ('-' prefixed) tests. Add tests for these, and move the "unterminated -exec" test into the "Still fails" section because it's still dumping core for me. | |||
2015-11-16 | Typo | Rob Landley | |
2015-11-16 | Rewrite of the about page, re-triage of sbase, and other documentation updates. | Rob Landley | |
2015-11-14 | Documentation tweaks. | Rob Landley | |
2015-11-12 | Document %s in date(1). | Elliott Hughes | |
2015-11-12 | Fix year parsing in date(1). | Elliott Hughes | |
Four-digit years were being mangled by the code for two-digit years. Move all the two-digit year code into the "we only saw two digits" case. Add some new tests and fix existing tests. | |||
2015-11-09 | Cleanup pass: inline find_tty_name(), bounds check fscanf(), use libc | Rob Landley | |
functions to read major()/minor(), fix printf format warnings in error msg. | |||
2015-11-09 | Make ps try harder to find a name for a tty. | Elliott Hughes | |