Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-12-23 | Factor out draw_str() and friends. | Rob Landley | |
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-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 | Don't pass target $CFLAGS to host builds (telling x86 compiler to be big-endian | Rob Landley | |
seldom ends well). Instead add -DBUILD_FOR_HOST to $HOSTCC and wrap #ifdefs around problematic (smack) includes from toys.h. | |||
2015-11-02 | If chomp() needs to test it found \n, should also test it's at end of string. | Rob Landley | |
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 | help_exit() tweak. | 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-07 | Remove prompt argument from yesno(), caller can fprintf(stderr, "blah") itself. | Rob Landley | |
This fixes the build break, the change to yesno() prototype accidentally got checked in last commit. (Oops, sorry.) | |||
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-30 | Add portability.h glue to let uptime build without TOYBOX_UTMPX. | Rob Landley | |
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-08 | First pass at proper bunzip2 command line handling. | Rob Landley | |
2015-08-06 | Adjust xexec() exit code to be 127, and tweaks for nommu friendliness. | Rob Landley | |
2015-08-05 | Switch nbd_client to xconnect() and make xconnect() try all returned addresses | Rob Landley | |
before failing. | |||
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-11 | Fix 32-bit bionic toybox build. | Elliott Hughes | |
https://android-review.googlesource.com/159035/ | |||
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-07-10 | Move comment about TOYBOX_DEBUG to start of file so it's more obvious. | Rob Landley | |
2015-07-03 | Probe for fork() instead of relying on a distro-specific #define. | Rob Landley | |
2015-07-01 | Fix segfault with "mount -o ro,remount". | Elliott Hughes | |
Or any call to comma_scan where 'opt' appears as the last item in 'optlist'. | |||
2015-06-26 | Factor out more not-curses infrastructure into lib. | Rob Landley | |
2015-05-31 | Move the magic list of commands needing cleanup from toys/pending/README | Rob Landley | |
to greppable TODO annotations in the individual files. (grep -riw TODO) | |||
2015-05-28 | Attempt to fix the mkdir LSM race. | Rob Landley | |
Doing a world writeable mkdir and _then_ adding a label seems like a race window, so set the global "create stuff with these labels" context, then do the creates. | |||
2015-05-18 | Switch id over to new infrastructure, switch id to use FORCE_FLAGS, and | Rob Landley | |
make lib/lsm.h auto-include from toys.h. | |||
2015-05-18 | More ls -Z upgrading. Move TOYBOX_SELINUX and TOYBOX_SMACK support from | Rob Landley | |
portability.h to new lib/lsm.h. Update ls.c to use it. Fix "ls . toys" (two directories when one is . or ..), which was filtering out the . as something we shouldn't recurse into even though it was explicitly listed on the command line. For some reason "ls -Z . toys" is still segfaulting though (but "ls -Z ." isn't), need to figure out why... | |||
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-05-03 | Move a prototype to the start of portability.h (suggested by Elliott Hughes) | Rob Landley | |
2015-05-01 | Portability bits for the recent ls smack changes. | Rob Landley | |
2015-04-30 | And remove the header part too. | Rob Landley | |
2015-04-30 | Remove redundant numlen. | 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-17 | Link against libattr and libsmack. | Xavier Roche | |
2015-04-16 | terminal_size should use LINES, not ROWS. | Elliott Hughes | |
The shell's pseudo-variable is called LINES. This is true of at least bash and mksh. | |||
2015-04-15 | Put SELINUX in a a menu, and add config option for SMACK. | Rob Landley | |
2015-04-03 | Add readfileat() to lib | Rob Landley | |