Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-12-30 | make "ls -m | cat" assume 80 columns. | Rob Landley | |
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-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-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-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-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 | |
2015-11-09 | On Android, ps' default output should match toolbox. | Elliott Hughes | |
2015-11-09 | Add ps -n. | Elliott Hughes | |
Both Android and GNU interpret -n to mean "show numeric users and groups", despite what POSIX says. | |||
2015-11-09 | Add ps -o CMDLINE. | Elliott Hughes | |
This is equivalent to Android's historical "NAME" column, showing the first element of /proc/pid/cmdline. | |||
2015-11-08 | Route cleanup: whitespace and curly bracket changes. | Rob Landley | |
2015-11-08 | Bugfix for route flags. | Rob Landley | |
2015-11-08 | Remove TEST_ARGV() and logic to adjust irtt by "clock ticks/100" when clock ↵ | Rob Landley | |
ticks _is_ 100... | |||
2015-11-07 | More route cleanup. | Rob Landley | |
2015-11-07 | Let's start the route cleanup. | Rob Landley | |
Collate some repeated increments, remove some useless coments. | |||
2015-11-05 | Fix sed bug where any ] right after [ was skipped, not just first one in range. | Rob Landley | |
2015-11-03 | dhcp leanup: remove flag_get() and flag_chk() | Rob Landley | |
2015-11-03 | New dhcp6 command from Sameer Pradhan. | Rob Landley | |
2015-11-03 | Whitespace and parentheses. | Rob Landley | |