aboutsummaryrefslogtreecommitdiff
path: root/toys/other
AgeCommit message (Collapse)Author
2014-01-28Two changes to shut up GCC:Isaac Dunham
* __GLIBC__ was checked unconditionally; this made for a very messy build on musl. * int fd in chvt is always initialized; GCC 3.4 does not recognize this.
2014-01-16Rename xmsprintf() to just xmprintf().Rob Landley
Partly because there's no supplied target string ala sprintf, and partly because I can never remember what order the m and s go in.
2013-12-27Cleanup vmstat. Procs, memory, and cpu are reading right, the others not so ↵Rob Landley
much.
2013-12-23Fix some issues raised (albeit indirectly) by Isaac Dunham.Rob Landley
POLL_IN defined as a constant by some libc. Factor out login.c's change_identity() to xwrap.c as xsetuser(). Replace xsetuid() with xsetuser() Put a space between argument globals and non-argument globals. TT starts zeroed, don't need to re-zero entries in it. STDIN_FILENO has been 0 since 1969, even DOS copied that. Just say 0. Added an xchroot() using xchdir() to lib/xwrap.c. Remove endgrent() call until somebody can explain why it was there.
2013-12-22Ashwini sharma pointed out that show_help() doesn't exit so "ifconfig eth0 ↵Rob Landley
netmask" would segfault. Replace it with an error_exit(), see list for aesthetic issue this raises re: help text.
2013-12-19Don't permute toys.optargs, cleanup code (xexec()) can free it.Rob Landley
2013-12-04When building for 32-bit, the compiler can't figure out that a constant too ↵Rob Landley
big to fit in a long isn't trying to unless you explicitly postfix the constant with the type of the varable it's being assigned into.
2013-11-30Cleanup help text, remove dead fields unused by linux kernel.Rob Landley
2013-11-28Promote ifconfig from pending to other.Rob Landley
2013-11-18Add test suite for blkid and clean up an editorial comment that shouldn't ↵0.4.7Rob Landley
have been checked in.
2013-11-02Sceond cleanup pass on vconfigRob Landley
2013-11-02Merge toynet.h into toys.h: musl supports it and micromanaging uClibc config ↵Rob Landley
options isn't very interesting anymore.
2013-11-02Cleanup vconfig.Rob Landley
2013-10-26I noticed the user count was missing and added this, borrowing a bit of code ↵Jeroen van Rijn
from toys/posix/who.c.
2013-10-17Minor cleanup of rebootRob Landley
2013-10-01New toy: reboot/halt/poweroffElie De Brauwer
2013-10-08Move blkid out of pending, default y.Rob Landley
2013-10-08Cleanup chvtRob Landley
2013-09-09Cleanup on acpi, switch to default y.Rob Landley
2013-09-09I got tired of trying to guess how much terminal time I could get in on my ↵Isaac Dunham
phone, so here's a basic acpi. I could probably add -c fairly easily (print type, cur_state, and max_state) -t is more difficult, since temperatures are reported in at least 1000 * degrees F and 10 * degrees C.
2013-09-04Don't pad stat's %a field.Rob Landley
2013-09-03Introduce libbuf analogous to toybuf but for use by lib/*.c. Change ↵Rob Landley
readfile() semantics to be able to read into an existing buffer, or malloc its own if that's NULL.
2013-09-02Cleanup pwdxRob Landley
2013-09-02pwdx by Lukasz Skalski.Rob Landley
2013-09-01Improve --longopt parsing: general bugfixes, better error reporting, new ; ↵Rob Landley
option for optional arguments only suppliable with =.
2013-08-29PID and UID namespaces for unshare, pointed out by heehooman@gmail.com.Rob Landley
2013-08-27Rewrite pmap to be simpler and match other implementation's output more closely.Rob Landley
2013-08-09New toy: fallocateFelix Janda
2013-07-18Replace users of xexec(toys.optargs) with xexec_optargs(0) to avoid ↵Rob Landley
free/reuse bug during argument parsing.
2013-07-17Add timeout, factoring out common code from sleep.Rob Landley
2013-07-11Eject cleanups.Rob Landley
2013-07-11Eject, by Kyungwan Han.Rob Landley
2013-07-10add paramtype in to the list of tagsIsaac Dunham
2013-07-06This inlines CRC64, and nothing more.Isaac Dunham
The functions involved were called only once.
2013-06-28modinfo: support -b basedir and -k kernel.release, fix two bugsIsaac Dunham
Add two less-frequently used flags for modinfo; -b specifies an alternate root and -k replaces the output of uname -r. Additionally, avoid a potential overflow in sprintf, and correct an inverted test.
2013-06-23Modinfo cleanups.Rob Landley
Don't use xopen() if you want to iterate through multiple files. Don't abort if unable to open the file, but return error if it can't map it. (And leak the filehandle.) All modinfo_file() actually uses is the filename, no reason to go through dirtree() for that. Nothing is actually _checking_ the return value of modinfo_file(). Avoid global data outside of toy_union. Make sure extension is at end of file (we can add support for more extensions later).
2013-06-23Patch that assumes that the presence of the string ".ko" indicatesIsaac Dunham
use of a path to a module (*.ko.xz and similar included, but not supported).
2013-06-18Add pivot_root.Rob Landley
2013-06-16Upgrade modinfo to support multiple modules, and add tests, from Isaac Dunham.Rob Landley
2013-06-02Move stat from pending to other, default y.Rob Landley
2013-05-14Tighten up lsusb, default to "y".Rob Landley
2013-05-14Attached is a pretty simple implementation of lsub. It doesn't implement any ↵Andre Renaud
of the flags/options, but does the raw output.
2013-04-27Add firmware field to modinfo output.idunham
2013-04-24Isaac Dunham pointed out that the kernel treats - and _ as identical in ↵Rob Landley
module names, so modinfo should too. Made it use mmap() while I was there, and some cosmetic refactoring.
2013-04-14Move guts of help command into show_help() in lib/help.c, with config ↵Rob Landley
TOYBOX_HELP controlling infrastructure.
2013-03-16Move mdev into the pending directory, since it's not done yet.Rob Landley
2013-02-24Add readahead.Rob Landley
2013-02-22Move some unfinished commands to the "pending" directory.Rob Landley
2013-02-03Some older build environments don't have LOOP_CTL_GET_FREE or ↵Rob Landley
LOOP_SET_CAPACITY. Substitute constants so they can get the rest of losetup without a build break.
2013-01-17Switch readlink on by default, and fill out readlink.test.Rob Landley