Age | Commit message (Collapse) | Author | |
---|---|---|---|
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-06 | Rename dirtree->data to dirfd, and don't store symlink length in it. | Rob Landley | |
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-08 | NOEXIT(thingy()) wrapper to turn xwrap() functions into warning versions. | Rob Landley | |
Also WOULD_EXIT(x, thingy()) to set a variable to 1 or 0 showing whether or not thingy() tried to exit. I'd love to be able to do "x = NOEXIT(thingy());" but haven't figured out a syntax to make that work yet... | |||
2015-11-02 | Add ps -Z. | Elliott Hughes | |
As with ls, it doesn't seem like -Z should be guarded behind LSM availability. On a non-SELinux system, the label is always "unconfined". | |||
2015-10-28 | Oops, forgot to check in the header file change for ps.c. | Rob Landley | |
2015-10-27 | Replace xcount_cpus() with a call to sysconf(_SC_NPROCESSORS_CONF) | Rob Landley | |
2015-10-25 | Add xcount_cpus() | Rob Landley | |
2015-09-29 | Make defconfig build for nommu. | Rob Landley | |
Adds XVFORK() macro, teaches xpopen_both() to call /proc/self/exe with NULL argv (and converts cpio -p to use that), adds TOYBOX_FORK guards to some unconverted commands. | |||
2015-09-27 | Another chunk of nommu support, replacing toys.recursion with toys.stacktop. | Rob Landley | |
2015-09-23 | Add xvfork() as a static inline and use it from various places. | Rob Landley | |
Note: vfork(), like fork(), can return -1 if too many processes, and we should notice and fail loudly. | |||
2015-09-11 | Replace toys.exithelp with help_exit() in lib. | Rob Landley | |
2015-09-06 | Switch HR_SI to HR_1000, make binary the default, make HR_B only affect bytes, | Rob Landley | |
and update the tests. | |||
2015-09-03 | Make human_readable() handle base 1024 units without floating point. | Rob Landley | |
Rounds correctly via brute force, displayed digits are decimal even when working with powers of 2, shows at most 3 significant (decimal) digits. (So no "1023M" nonsense, that's 1.0G.) | |||
2015-08-08 | Different tools have different ideas about what human-readable output | Elliott Hughes | |
looks like. dd uses "7 MB" where du uses "7M", for example. this patch adds flags, similar to the BSD humanize_number. most callers will pass 0. | |||
2015-08-05 | Tweak xconnect: socket can be a string (ala "ftp") from /etc/services. | Rob Landley | |
Still need a rethink on how to handle socket/bind/connect sequence. | |||
2015-08-03 | Factor out xconnect(), plus some other small cleanups to telnet.c. | Rob Landley | |
2015-08-01 | Move strlower() from find to lib. | Rob Landley | |
2015-07-10 | Add a basename_r() and use it in names_to_pid() to avoid basename() overwriting | Rob Landley | |
itself on some inputs. (Which makes killall really impolite. Bug report from Nicholas Noury via Elliott Hughes.) | |||
2015-06-26 | Factor out more not-curses infrastructure into lib. | Rob Landley | |
2015-05-14 | Promote reset (actually write a new one using the simple man 4 console_codes | Rob Landley | |
terminal reset escape sequence) and add gettty() function to lib so terminal gets reset even when we redirect stdout/stderr. (This is apparently the expected behavior.) | |||
2015-05-09 | Add DIRTREE_SHUTUP to disable dirtree warnings if file vanishes out from | Rob Landley | |
under traversal. Pass through full flag set in dirtree_add_node(), add dirtree_start() wrapper to provide symlink-only behavior (avoiding a lot of DIRTREE_SYMFOLLOW*!!(logic) repeated in callers). | |||
2015-05-08 | Move not-curses code into interstingtimes.c | Rob Landley | |
2015-04-30 | And remove the header part too. | Rob Landley | |
2015-04-27 | Some infrastructure hexedit needs. (Poor man's curses.) | Rob Landley | |
2015-04-19 | Cleanup getprop, add qstrcmp() to lib for qsort (because posix-2008 broke | Rob Landley | |
alphasort), add compile-time probe for config symbol TOYBOX_ON_ANDROID. | |||
2015-04-03 | Add readfileat() to lib | Rob Landley | |
2015-03-12 | Factor out xgetgrnamid() and xgetpwnamid() into xwrap.c. | Rob Landley | |
2015-03-09 | Upgrade oneit with -r (restart), -3 (send exiting PID values to child), and ↵ | Rob Landley | |
signal handling. | |||
2015-03-01 | let the compiler check format strings | Elliott Hughes | |
i'll be AFK for a week, so here's the patch i've been using this evening to find other format string mistakes. BSD uses __printflike and takes two arguments instead of hard-coding (1,2), but i figured that as long as you don't need the generality you'd prefer not to have it. and it's easy enough to retrofit if we ever do have a formatting function that takes other arguments. | |||
2015-02-09 | Cleanup/refactoring pass on hwclock. | Rob Landley | |
Inline open_wall_clock_rtc() into rtc_open(), factor out xtzset(), inline set_sysclock_from_hwclock(), set_hwclock_from_sysclock(), and set_sysclock_timezone(). /etc/adjtime is short enough we don't need to bother with a break. The final "else" case in main() should always trigger because >0 in optstr says "at most zero arguments", so the || at the end is always true, so take the test off. | |||
2015-02-07 | Remove xexec_optargs(). | Rob Landley | |
2015-01-01 | strtol() doesn't return error indicator for overflow, it just sets errno. So ↵ | Rob Landley | |
add estrtol() (which clears errno first), and xstrtol() (which error_exit()s on overflow). | |||
2014-12-13 | Forgot to check in a header file for base64. | Rob Landley | |
2014-12-04 | Work with buildroot's extensively patched uClibc, and for nommu support move ↵ | Rob Landley | |
xfork() to portability.h and #ifdef based on __uClinux__ (which seems to be the nommu compiler define). | |||
2014-12-04 | Implement xstrncat() and fix xstrndup(). | Rob Landley | |
2014-10-18 | Factor out printf-style escape parsing logic from echo.c. | Rob Landley | |
2014-09-14 | Split xpopen() into xpopen_both(), xpopen(), and xrun() depending on whether ↵ | Rob Landley | |
we want to redirect both, one, or neither of stdin/stdout. | |||
2014-08-24 | Work in progress snapshot of mount, with fallout to umount. (Not done yet.) | Rob Landley | |
2014-08-03 | Implement exec -user, -group, and -newer. Enable find in defconfig. | Rob Landley | |
2014-08-02 | Yank xrealpath prototype since the function's gone. | Rob Landley | |
2014-07-26 | Move DIRTREE_COMEAGAIN second callback up to when the filehandle is still ↵ | Rob Landley | |
open, and add dir->again variable to distinguish second call instead of checking for -1 filehandle. | |||
2014-07-21 | Little endian and big endian versions of peek (for host.c). | Rob Landley | |
2014-06-25 | Cleanup pass on mkpasswd.c | Rob Landley | |
2014-06-09 | Forgot to check in strstart(). | Rob Landley | |
2014-06-03 | mount: start on option parsing, implement loopback and bind mount autodetection. | Rob Landley | |
2014-05-31 | Introduce xfork() and make commands use it, and make some WEXITSTATUS() use ↵ | Rob Landley | |
WIFEXITED() and WTERMSIG()+127. | |||
2014-05-29 | Switch mtab_list to doubly linked so we can traverse in either order. ↵ | Rob Landley | |
Convert umount and df. Add dlist_terminate() to break lists for traversal in either direction. | |||
2014-05-27 | Add mount options to data getmountlist collects. | Rob Landley | |