Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-06-19 | Last commit depends on new lib code I forgot to check in. (Oops.) | Rob Landley | |
2016-06-15 | Add readlink0() and readlinkat0() which null terminate the data. | Rob Landley | |
2016-05-25 | Stand alone builds of OLDTOY should show help text for corresponding NEWTOY. | Rob Landley | |
2016-05-20 | Add bufgetgrgid() | Rob Landley | |
2016-05-17 | Add bufgetpwuid. (Repeated calls to getpwuid() are really expensive.) | Rob Landley | |
2016-05-04 | Simplify ps android scheduling policy fetch slightly. | Rob Landley | |
2016-04-30 | Add a ps "PCY" field for Android scheduling policy. | Elliott Hughes | |
2016-04-23 | Fix more to not append an extra newline. | Elliott Hughes | |
More's sigatexit handler needs to distinguish between normal exit and exit due to receipt of a signal. Change tty_sigreset to look at the signal number too, so that pressing 'q' to exit top doesn't cause its exit status to be 128. | |||
2016-04-21 | Have dirtree_recurse() take the new dirfd as an argument. | Rob Landley | |
2016-04-16 | Fix "ssh top". | Elliott Hughes | |
The ps.c change allows us to start. The interestingtimes.c change allows us to clean up properly afterwards if you ^C out (which you usually do). Tested with both ssh and "adb shell" (the latter being where I noticed the problem). | |||
2016-04-10 | Didn't check in all my local basename_r->getbasename changes. (Oops.) | Rob Landley | |
2016-04-08 | Redefining basename_r to mean something random seems popular (bionic and freebsd | Rob Landley | |
both did it) so use getbasename instead. | |||
2016-03-29 | Fix build when wchar_t is unsigned. | Elliott Hughes | |
external/toybox/lib/linestack.c:84:5: error: conflicting types for 'crunch_str' int crunch_str(char **str, int width, FILE *out, char *escmore, ^ external/toybox/lib/lib.h:228:5: note: previous declaration is here int crunch_str(char **str, int width, FILE *out, char *escmore, ^ I'm not sure whether the interface was intended to be wchar_t or int, but switching to int is the smaller change... | |||
2016-03-29 | Fix exit code of things like sed -i that use tempfile_handler(). | Rob Landley | |
(The sigatexit() handler list code now calls the handlers on the normal exit path, so _exit(1) from the handler is wrong; exit_signal() modifies toys.exitval if necessary.) | |||
2016-03-15 | Add ls -b and make ls -q work with utf8. | Rob Landley | |
2016-03-13 | Split out _xexit() from xexit() and give sigatexit() multiple callbacks. | Rob Landley | |
2016-03-12 | The xattr functions were added during the 2.5 kernel, lsm.h can #include the | Rob Landley | |
header unconditionally. (This fixes the warning when CP_PRESERVE disabled.) | |||
2016-03-07 | Cleanup pass on the dirtree infrastructure, in preparation for making rm -r | Rob Landley | |
handle infinite depth. Fix docs, tweak dirtree_handle_callback() semantics, remove dirtree_start() and don't export dirtree_handle_callback(), instead offer dirtree_flagread(). (dirtree_read() is a wrapper around dirtree_flagread passing 0 for flags.) | |||
2016-03-02 | For years the man pages have said to #include <sys/types.h> to get | Rob Landley | |
major/minor/makedev, but glibc has vowed to break existing programs (https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html) and replace it with _another_ non-standard header (not in posix or lsb), so let's just add functions to lib/ that do the transform ourselves. | |||
2016-03-01 | The last-ever release of uClibc didn't #define MS_RELATIME. | Rob Landley | |
2016-02-25 | Typecast a printf argument because wchar_t isn't a rigidly defined size. | Rob Landley | |
2016-02-19 | Implement "insmod -". | Elliott Hughes | |
Also use finit_module if available. Given that "insmod -" requires init_module, maybe this isn't a worthwhile optimization. Given that "insmod /actual/file.ko" is the common use case, maybe it is. Fix a bug in readfileat where *plen would be corrupted if you didn't supply your own buffer (because ibuf is 0 in that case, not a pointer to the start of the allocated space). | |||
2016-02-18 | RLIMIT_RTTIME was added to the kernel in 2008, you can't expect uClibc to ↵ | Rob Landley | |
have noticed yet. | |||
2016-02-14 | Implement file(1). | Elliott Hughes | |
Unlike the POSIX file(1), there's no magic file here, just hard-coded common (non-obsolete) file formats. Personally most of my use of file(1) is as a one-line readelf(1) summarizer, so although I assume a full POSIX file(1) is out of scope (because just the database would likely be larger than all the rest of toybox), a subset that only supports in-use file types actually covers most of the use cases I encounter personally. Also fix peek_be/peek_le. | |||
2016-02-10 | Wean scripts/install.c off toys.h so cross compiling less brittle. | Rob Landley | |
2016-02-10 | Don't include toys.h from config2help.c (so cross-compiling from systems we | Rob Landley | |
don't run on is easier), and use HELP_ instead of help_ for macro prefixes to avoid name collisions (such as help_exit() the function). | |||
2016-02-10 | Factor out strnstr() since posix hasn't got it, and add a config option for | Rob Landley | |
the deeply sad passwd heuristics that don't even check numbers and punctuation. | |||
2016-02-09 | Add ulimit. | Rob Landley | |
This isn't a shell builtin, it uses prlimit to target any pid (without -P it defaults to $PPID, so acts like historical ulimit by default). | |||
2016-02-09 | Fix xpipe. (thinko.) | Rob Landley | |
2016-02-08 | Add xpipe() to lib. | Rob Landley | |
2016-01-28 | Add SIGWINCH support to top, and implement -o and -n in pgrep/pkill. | Rob Landley | |
2016-01-28 | Bugfix I forgot to checkin, plus a wrapper function. | Rob Landley | |
2016-01-25 | Fix comma_args error reporting. | Elliott Hughes | |
None of the current callers' callbacks set errno, so this was resulting in bogus errors like "No device or address" when ps tried to complain about a misspelled field. | |||
2016-01-22 | Factor out insanitize() from seq.c to next_printf() in lib. | Rob Landley | |
2016-01-20 | First stab at making readfileat() realloc() in a loop to read long files. | Rob Landley | |
2016-01-19 | Another CFG_TOYBOX_DEBUG test. | Rob Landley | |
2016-01-17 | Extend utf8 fontmetrics so ps can use them. | Rob Landley | |
Also, I forgot to check in uuid_show() last time. | |||
2016-01-17 | Update draw_str() and friends to do standard escaping for ^X <AB> U+ABCD. | Rob Landley | |
2016-01-16 | Move create_uuid() to lib and xpoll() to lib/net.c. | Rob Landley | |
2016-01-10 | Fix hwclock -u. | Elliott Hughes | |
You can't pass a NULL value to setenv(3). The "put things back how they were" intent of this code is best achieved by calling unsetenv(3) in the NULL case. (This causes a crash with "hwclock -u" on Android. glibc silently corrupts the environment instead.) | |||
2016-01-10 | Fix perror_exit_raw. | Elliott Hughes | |
Some things are worse when you remove the 'p'. | |||
2016-01-10 | Make cursor left/right change sort type in iotop. | Rob Landley | |
2016-01-08 | Fix cat -. | Elliott Hughes | |
Commit 4b4ab6a50998 broke loopfiles' handling of "-". This broke the existing cat tests, so no new test is necessary here. | |||
2016-01-07 | Make scan_key() specify timeout in miliseconds, split out terminal_probesize(), | Rob Landley | |
add function key definitions and shift/ctrl/alt cursor keys. | |||
2016-01-05 | Add error_msg_raw() and friends, replace error_msg("%s", s) uses, enable format | Rob Landley | |
checking, and fix up format checking complaints. Added out(type, value) function to stat to avoid a zillion printf typecasts. | |||
2015-12-31 | Tweak error message. | Rob Landley | |
2015-12-30 | Add more keys to scan_key() and fix hang in scan_key_getsize(). | 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-27 | Add scan_key_getsize() doing the ANSI probe, switch scan_key() to TAGGED_ARRAY, | Rob Landley | |
and add test_scankey. |