Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-05-08 | Now that xopen() no longer returns stdio, !fd doesn't need strcmp("-") to verify | Rob Landley | |
2017-05-07 | Fix error in writing output that was causing zcat to always fail. | Mike Moreton | |
2017-05-07 | Error if we can't autodetect filesystem type. | Rob Landley | |
2017-04-30 | Building mkpasswd on Android makes no sense. | Elliott Hughes | |
And won't work anyway because we don't have crypt(3). | |||
2017-04-30 | Implement zlib-based gzip/gunzip/zcat. | Elliott Hughes | |
2017-04-19 | Add ls -ll (with --full-time as a compatibility synonym) to show nanoseconds. | Rob Landley | |
(And, for some reason, timezone. Individual files have timezones?) | |||
2017-04-12 | Default to -b rather than -q when output is to a tty. | Rob Landley | |
2017-04-11 | Silence a broken warning by hitting it with a rock. | Rob Landley | |
2017-04-11 | Make fdisk buildable. | Elliott Hughes | |
The argument to help_exit is a char*, not a FILE*. | |||
2017-04-11 | Fix touch -a/-m (and add the missing tests). | Elliott Hughes | |
utimensat takes atime in [0] and mtime in [1], but since we're overwriting with UTIME_OMIT, we actually want to flip the comparison so -a blats 1 and -m blats 0. | |||
2017-04-10 | Add "uudecode -o -" support. | Elliott Hughes | |
busybox uudecode supports this, and POSIX explicitly mentions it (albeit only in the "STDOUT" section). Plus Android doesn't have /dev/stdout and /dev/stdin, so this lets us rewrite the uudecode tests so they pass on Android too. | |||
2017-04-08 | Fix the ls -m test (which is just a whitespace issue, but eh). | Rob Landley | |
While we're at it, ls -m wordwrap was one column early. | |||
2017-04-03 | Trivial cleanup. (Whitespace, brackets, and remove unnecessary typecasts.) | Rob Landley | |
2017-04-03 | Add gzip support. (Doesn't show source OS and timestamp, but reporting them | Rob Landley | |
isn't obviously useful.) | |||
2017-04-03 | Implement dmesg -T. | Elliott Hughes | |
Also refactor so that legacy mode gets all the new functionality too, and add -S to make it easier to test legacy mode on 3.5 or newer kernels (at least on the host; on Android the syslog(2) system call is no longer allowed). Bug: http://b/36090178 | |||
2017-03-28 | Don't try to implement %s, we have @seconds, strptime() in libc tends | Rob Landley | |
not to have it, and implementing our own means a pattern like "Time %%%s%%" is expensive to handle the corner cases of. | |||
2017-03-28 | Replace chkmktime() (which produces false positive normalization failures) | Rob Landley | |
with range checks for seconds, minutes, hours, day of month, and month. | |||
2017-03-28 | ps: don't query for terminal size if not a tty. | Josh Gao | |
`ps -A | cat` shouldn't have different output depending on the size of your terminal window. | |||
2017-03-27 | Fix the type of the callback in getprop. | Elliott Hughes | |
Fixes: toys/android/getprop.c:56:39: warning: incompatible pointer types passing 'void (void *, const char *, const char *)' to parameter of type 'void (*)(void *, const char *, const char *, uint32_t)' (aka 'void (*)(void *, const char *, const char *, unsigned int)') [-Wincompatible-pointer-types] __system_property_read_callback(pi, read_callback, NULL); ^~~~~~~~~~~~~ | |||
2017-03-22 | Implement uptime -s. | Elliott Hughes | |
Also add trivial tests. | |||
2017-03-21 | dirtree_flagread() returns DIRTREE_ABORTVAL when the initial node doesn't | Rob Landley | |
exist, which can hit ps when /proc isn't there or /proc/$PID/task isn't there (because process exited between the time we checked its contents and the time we looked for its threads). | |||
2017-03-20 | Paste bugfix, more tests. | Rob Landley | |
2017-03-20 | Add TOYBOX_PEDANTIC_ARGS to check arguments when there are no arguments, | Rob Landley | |
and make uptime use it. | |||
2017-03-20 | Rewrite paste so it actually works. | Rob Landley | |
2017-02-20 | If the last ps field is left justified, it extends to the width of the screen. | Rob Landley | |
(Recent "show + for last char when truncated" change broke that, putting it back.) | |||
2017-02-20 | Declaring todo bankruptcy, dmesg goes back into pending until I get a chance | Rob Landley | |
to unify the two codepaths in Elliott's rewrite. | |||
2017-02-20 | Fix dmesg -c and -C. | Elliott Hughes | |
I never use these, so I didn't notice I'd broken them until someone who does bringup complained. The "one weird trick" with SEEK_DATA is documented at the URL we already point to. SEEK_DATA was added in Linux 3.1 (2011) and isn't available in glibc 2.19 (2014), so I've added that to "portability.h" for the benefit of Ubuntu 14.04. Also make -c and -C mutually exclusive. Also fix some of the formatting I introduced earlier. (A clang-format file would help prevent these mistakes...) | |||
2017-02-18 | Ascii only showed 15 rows instead of 16 and spacing was wrong for 96-100. | Rob Landley | |
2017-02-16 | Teach file(1) about bzip2 files. | Elliott Hughes | |
If we can read and write bzip2 files, we should be able to identify them too... | |||
2017-02-09 | Document df -a | Rob Landley | |
2017-02-07 | Add ascii: display ascii table. | Rob Landley | |
2017-02-06 | ps -l has 4 chars left for "cmd", switch "ADDR" to "BIT" to save space. | Rob Landley | |
2017-02-06 | Make tty size failure to enable -w (Elliott prefers that), and fix last field | Rob Landley | |
to be left justified again. | |||
2017-02-05 | Don't set SIGWINCH when reading ANSI size probe data, it causes a loop. | Rob Landley | |
2017-02-05 | Bugfix: last field was padding to width with trailing spaces (oops), and | Rob Landley | |
when we can't query terminal size pad to 80 but add -w. | |||
2017-02-05 | Patch from Elliott to silence a "const" warning in android/getprop.c. | Rob Landley | |
(Broken out of a larger patch, fixed the other part a different way.) | |||
2017-02-05 | Default to width 80 when tty size probe fails (ala serial console). | Rob Landley | |
(It was defaulting to 99999 but not FLAG_w, so it tried to _pad_ to 99999.) | |||
2017-02-04 | Switch oneit to use xopen_stdio() for -c (oops) and switch XVFORK() to use | Rob Landley | |
__attribute__((returns_twice)) instead of noinline. Yes LLVM supports it: https://llvm.org/bugs/show_bug.cgi?id=6287 | |||
2017-02-03 | Fix typo in pgrep help. | Elliott Hughes | |
2017-02-03 | Fix operator precedence error in df. | Elliott Hughes | |
2017-02-01 | Extend default USER length to 12 and output "+" as last character of truncated | Rob Landley | |
(left-justified) fields. | |||
2017-01-31 | ps bugfix: len of TTY field doesn't include null terminator, so memmove should | Rob Landley | |
subtract one _less_ than /dev prefix length or string isn't terminated. | |||
2017-01-30 | Cleanup leftover debris. | Rob Landley | |
2017-01-30 | Improve file's ELF parsing. | Elliott Hughes | |
An ELF file with no program headers is valid, and binutils leaves e_phentsize zero in that case. Fix the corruption check to cope. Also, since notes are in both the program and section headers (and I'm not aware of the possibility of having no sections but still having notes --- where would they be?), look for them in the section headers instead. Also extend the parsing of the .android.note.ident ELF note to include the NDK version information if present. (This won't be present for platform binaries, but will be present for NDK-built binaries such as app libraries.) | |||
2017-01-29 | Izabera suggested seq should multiply to avoid accumulating rounding errors | Rob Landley | |
from incrementing by a double. | |||
2017-01-28 | Tweak -w help text to clarify that it prevents truncating _any_ fields, not | Rob Landley | |
just for terminal width. | |||
2017-01-28 | Add missing `static`s and remove an unused function. | Elliott Hughes | |
2017-01-28 | Whitespace. | Rob Landley | |
2017-01-28 | modprobe: Small cleanup pass, described on the list. | Rob Landley | |
2017-01-28 | modprobe: use finit_module when possible | Steve Muckle | |
The finit_module() system call, introduced in Linux 3.8, reads the module from a supplied file descriptor. This allows the kernel to do security checks based on the file's location. |