aboutsummaryrefslogtreecommitdiff
path: root/toys/other
AgeCommit message (Collapse)Author
2015-08-05reboot: signal init, add -f option to call reboot();Isaac Dunham
init: use SIGINT, use xsignal() Now that oneit supports the same signals as our "sysv"-init for shutdown, make reboot et al. signal pid 1 with the appropriate signal. Of these signals, only SIGINT works with sysvinit 2.88, causing a reboot. The others are only supported in Busybox init. Also, make init accept SIGINT and use xsignal().
2015-08-05Switch nbd_client to xconnect() and make xconnect() try all returned addressesRob Landley
before failing.
2015-08-02Mark command-local functions static.Rob Landley
2015-08-02Long-overdue cleanup on login.Rob Landley
Only tested that it compiled so far.
2015-07-24Promote fsync.Rob Landley
2015-07-24Promote hostid.Rob Landley
2015-07-10ifconfig MAC addresses should be lowercase.Elliott Hughes
A minor nit, but for some reason this really stands out every time I run ifconfig...
2015-07-10Promote hwclock.Rob Landley
2015-07-08Fix ionice.Elliott Hughes
ioprio_set takes a "prio" argument that combines class and level. Although bionic (via the uapi headers) includes the appropriate constants and even a convenience macro, glibc doesn't, so just hard-code the encoding. Also fix the sense of a conditional so we actually execute the provided command.
2015-07-03Promote xxd to other.Rob Landley
2015-06-28Add ionice and iorenice.Rob Landley
2015-06-27Add undo buffer for 'u'.Rob Landley
2015-06-27Simplify hexedit logic by adjusting viewport all in one place up top.Rob Landley
(Easier to genericize logic and reuse later in less or vi...)
2015-06-26Factor out more not-curses infrastructure into lib.Rob Landley
2015-06-11Add nproc.Rob Landley
2015-05-31Move the magic list of commands needing cleanup from toys/pending/READMERob Landley
to greppable TODO annotations in the individual files. (grep -riw TODO)
2015-05-15stat: fix group nameJosé Bollo
Change-Id: I0ad65a40bf380d789c4396ebdc01be217901a2e3
2015-05-14Promote reset (actually write a new one using the simple man 4 console_codesRob 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-13Print name of file at the bottom of the screen.Rob Landley
And yes, I tested $PWD/私はガラスを食べられま す。それは私を傷つけません。 as a name and made it work. If you throw newlines or ascii escapes in the name it'll use the fancy printing logic for chars, otherwise it does the full utf8 fontmetrics deal.
2015-05-13More hexedit cursor boundary tweaking.Rob Landley
2015-05-10Git hates me.Rob Landley
2015-04-28Fix truncate prefix bug and add truncate test suite entry.Rob Landley
2015-04-28Add prefix support Hyejin Kim asked about.Rob Landley
2015-04-27Promote hexedit to other.Rob Landley
2015-04-27Some infrastructure hexedit needs. (Poor man's curses.)Rob Landley
2015-04-21Bugfix from Hyejin Kim (count=1 shouldn't change name), plus a bounds check.Rob Landley
Test is 'echo "AAA c 1 0 0 2 5 0 0 1" | makedevs' makes AAA not AAA0.
2015-04-12unshare: fix -rSamuel Holland
Calling unshare(2) immediately puts us in the new namespace with the "overflow" user and group ID. By calling geteuid() and getegid() in handle_r() after calling unshare(), we try to map that to root, which Linux refuses to let us do. What we really want to map to root is the caller's uid/gid in the original namespace. So we have to save them before calling unshare().
2015-04-04To ensure that toybox can be installed alongside busybox withoutPaul Barker
confusing update-alternatives, the paths of the links installed by toybox should match those installed by busybox. This is accomplished by changing the flags of a few tools within toybox.
2015-03-12Switch nsenter to default y.Rob Landley
2015-03-12Implement shred -u and switch to default y in defconfig.Rob Landley
2015-03-12Make find accept numeric uid/gid, and simplify makedevs using the new ↵Rob Landley
infrastructure.
2015-03-10Use xsignal() instead of signal().Rob Landley
2015-03-09Fix thinko (don't &toybuf to get scratch space) and add -v option.Rob Landley
2015-03-09Upgrade oneit with -r (restart), -3 (send exiting PID values to child), and ↵Rob Landley
signal handling.
2015-03-01Fix several printf_format warnings.Rob Landley
2015-03-01Patches from Elliott Hughes to fix various printf() format strings.Rob Landley
(Don't specify the space flag when it's the default behavior. The ifconfig stuff was actual bugs.)
2015-03-01Patches from Elliott Hughes to add missing arguments to error_exit() calls.Rob Landley
2015-02-25stat -f didn't work on 32 bit systems because type sizes wrong (fix from ↵0.5.2Rob Landley
Elliott Hughes).
2015-02-18Patch from Isaac Dunham to add -r, fixed up so it doesn't try to include two ↵Rob Landley
flag contexts simultaneously.
2015-02-14Split out unix2dos so scripts/single.sh and "make change" can build it ↵Rob Landley
standalone.
2015-02-08Promote chcon to "other".Rob Landley
2015-02-08For some reason, ifconfig was explicitly excluding "ifconfig lo:0 127.0.0.2" ↵Rob Landley
style alias address assignments. No idea why.
2015-02-07Make toy_exec() check if argc is in optargs and deal with it there so we ↵Rob Landley
don't need a separate xexec_optargs().
2015-02-07Merge unshare and nsenter (promoting and cleaning up nsenter).Rob Landley
Needs more testing, don't have a test environment set up for this yet...
2015-01-25Cleanup mountpoint and remove it from the pending README.Rob Landley
2015-01-16AOSP master has <pty.h> and builds netcat/nc.Elliott Hughes
2015-01-14Switch netcat to stop parsing command line at first nonoption argument ↵Rob Landley
instead of stopping after -l or -L. Hyejin Kim tried "toyboxd nc nc -p 1234 -l rm mv ps" (which attempted to run "nc rm mv ps") and "toybox nc -l -p 1234" (which attempted to run "-p 1234") and found the behavior confusing. So make it work like xargs, where all netcat options have to come before the start of any child command.
2015-01-01Switch a lot of strncpy() calls to xstrncpy().Rob Landley
2014-12-31Fix for mix from Isaac Dunham (who can actually test it). (I tweaked the ↵Rob Landley
curly brackets.) He says: In the channel selection loop, "if (TT.chan)" had been combined with a strcmp; the else conditionals were premised on if (TT.chan) alone. The help text had been only partially updated for a couple option changes.
2014-12-31Redo option parsing infrastructure so #define FORCE_FLAGS can unzero flag ↵Rob Landley
macros for a disabled command (needed when multiple commands share infrastructure with a common set of flags). This means the flag space is no longer packed, but leaves gaps where the zeroes go. (Actual flag bit positions are the same for all configs.) Since the option parsing needs to know where the holes are, the OPTSTR values are now generated as part of flags.h with ascii 1 values for the disabled values. (So generated/oldflags.h went away.) This also means that the option string argument for OLDTOY() went away, it now uses the same arguments as the NEWTOY() it references.