aboutsummaryrefslogtreecommitdiff
path: root/toys/other
AgeCommit message (Collapse)Author
2015-12-27Add scan_key_getsize() doing the ANSI probe, switch scan_key() to TAGGED_ARRAY,Rob Landley
and add test_scankey.
2015-12-23Factor out draw_str() and friends.Rob Landley
2015-12-06Add free -h, based on a patch from Isabella Parakiss.Rob Landley
2015-12-04Tom Marshall reported that blkid was handling ext2 wrong.Rob Landley
Even though ext2 has a comment that it has to be at the start, I added swap to the start of the array (oops). The test suite was also wrong (it was matching the _incorrect_ output).
2015-11-03Whitespace and parentheses.Rob Landley
2015-11-02Explain signals in oneit help text.Rob Landley
2015-10-27Replace xcount_cpus() with a call to sysconf(_SC_NPROCESSORS_CONF)Rob Landley
2015-10-25Add xcount_cpus()Rob Landley
2015-10-20Move d/h units from %d %D output to default format string.Rob Landley
2015-10-10"stat -c %T" support (filesystem type names) based on patch from Hyejin Kim.Rob Landley
2015-10-06New command: flock.Elliott Hughes
The brillo folks wanted this in a shell script they're porting over (so I've only implemented the fd style they wanted, not the named file style).
2015-09-29help_exit() tweak.Rob Landley
2015-09-29Make 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-23Add 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-17Fix a couple things gcc is too dumb to figure out on its own.Rob Landley
2015-09-11Replace toys.exithelp with help_exit() in lib.Rob Landley
2015-09-05Two large thinkos in oneit: -3 was always enabled and signal numbers wereRob Landley
overwritten before we set up signal handlers.
2015-09-02vmstat: fix units for bi and bo columnsColin Cross
pgpgin and pgpgout in /proc/vmstat are in kbytes, not pages. (see http://lxr.free-electrons.com/source/mm/vmstat.c?v=4.2#L1310). Remove the extra * page_kb for io_in and io_out.
2015-09-01Trivial code style tweak.Rob Landley
2015-09-01vmstat: reset header pointer when loopingColin Cross
Modifying the headers pointer when printing the headers causes a buffer overrun the second time they are printed. Use a local header pointer that is reset to the beginning of the buffer for each loop.
2015-08-20I discovered that the reason SIGINT causes a reboot on sysvinit is thatIsaac Dunham
it's how the kernel signals that ctrl-alt-delete has been pressed; thus, setting it as the signal for reboot prevents ctrlaltdel scripts from working. SIGTERM is what Busybox uses, so we might as well be compatible.
2015-08-14Fix ionice default class.Elliott Hughes
2015-08-08First pass at proper bunzip2 command line handling.Rob Landley
2015-08-08login: execl() requires a path, not a file nameIsaac Dunham
2015-08-08Fix switch_root implementation.Alistair Strachan
Add the MS_MOVE of cwd to / and chroot into it. chdir is also called to ensure cwd does not point outside the chroot. The switch_root toy was also blocking any case where NEW_ROOT/init did not exist, even though NEW_INIT was a required parameter and did not have to be '/init'. Change it to handle any NEW_INIT passed as either a relative or absolute path. With this change, the switch_root toy actually works from initramfs.
2015-08-06Detect swap partitions, inline loop_partitions(), various cleanups.Rob Landley
2015-08-06Initialize uninitialized variable. (Oops.)Rob Landley
2015-08-05I've added support for running blkid without specifying a partition (so it ↵Dima Krasner
scans /proc/partitions).
2015-08-05Minor tweak of reboot.cRob Landley
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