aboutsummaryrefslogtreecommitdiff
path: root/toys/other
AgeCommit message (Collapse)Author
2014-05-31Introduce xfork() and make commands use it, and make some WEXITSTATUS() use ↵Rob Landley
WIFEXITED() and WTERMSIG()+127.
2014-05-29Make "losetup /dev/loop0 filename" work.Rob Landley
Sigh. Implement the complex cases and you screw up the simple cases you already tested...
2014-05-25atolx_range() is already added into lib/lib.c, in vconfig.c atolx_range() ↵Ashwini Sharma
can be used in place of locally defined strtorange() function.
2014-05-25logname and whoami are the same as id -un, so merge them.Isaac Dunham
Since the starting letters are greater than those for 'id' or 'groups', we cn just check if the first letter is greater than 'i'.
2014-05-15Promote sysctl from pending to other, default y.Rob Landley
2014-05-02Attached is the patch for lsattr and chattr implementation.Ashwini Sharma
This is the modified and better version from the last one I sent. It is having the both the mains (lsattr_main() and chattr_main() ) in single file. Also removed the dependency of additional file in lib, as common code is in the same .c file.
2014-04-23Add example directory, move hello.c into it, add skeleton.c to demonstrate ↵Rob Landley
more complciated stuff (multiple commands per file, etc), and have genconfig.sh sort backwards so posix is first and example last in menuconfig.
2014-04-16Revert lots of half-finished local debris I didn't mean to check in with ↵Rob Landley
Isaac's roadmap update. Mercurial's "import" command is still broken, committing local tree changes to files that weren't even touched by the patch because the hg developers inisist, when I point out how stupid it is, that they meant to do that. (hg record can do hunks, but import can't even track _files_.)
2014-04-16Probe for the existence of FIFREEZE and make fsfreeze depend on it.Rob Landley
2014-04-13An issue in ifconfig while verifying the HW Address, which is assumed to be ↵Ashwini sharma
of the format __C2:79:38:95:CD:AB__ but can be of form __C2:79:38:95:D:A__. In this case the HW address is reported as bad.
2014-04-12roadmap: describe glibc commands.Isaac Dunham
Some glibc commands are irrelevant because they're for functionality that is excluded from musl (mtrace, rpc*, localedef, iconvconfig, nscd). getconf and catchsegv look like candidates for the development toolchain; locale and iconv were already triaged. getent is pretty lame, but it and the timezone stuff (tzselect zic zdump) are the only new possibly interesting commands.
2014-04-02In ifconfig.c, there is a glitch in function get_addrinfo() when computing ↵Ashwini Sharma
the prefix length.
2014-04-01New toy fsfreeze, from Isaac Dunham, plus minor cleanups.Rob Landley
2014-03-28Add help -a (to show all commands) and -h (to produce HTML output).Rob Landley
2014-03-09Promote freeramdisk from pending to other, default y.Rob Landley
2014-02-28Fix two bugs reported by Ashwini Sharma.Rob Landley
2014-02-16Various cleanups found by Tom Sparrow's static analysis.Rob Landley
2014-02-07Move bunzip2 logic from lib into bzcat.Rob Landley
2014-02-04Tweak help text.Rob Landley
2014-02-04Add /prefix netmask support to ifconfig, ala "ifconfig eth0 192.168.1.42/28"Rob Landley
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