aboutsummaryrefslogtreecommitdiff
path: root/toys
AgeCommit message (Collapse)Author
2013-12-18Ashwini Sharma added -v, I tweaked it a bit and added a couple test suite ↵Rob Landley
entries.
2013-12-16Fix pidof -o bug aborting output, reported by Ashwini Sharma.Rob Landley
2013-12-08Forgot to set new pending entry to default n.Rob Landley
2013-12-08Can't test <0 on an unsigned, reported by Nathan McSween.Rob Landley
2013-12-07Ashwini Sharma submitted tcpsvd/udpsvd.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-12-03Redo od whitespace with multiple output types so the columns align.Rob Landley
Factor out single output type into od_out_t(), call it in a loop for each type finding largest output (and if output consumes more than one byte of input average rounding up), pad each output to the largest output times number of bytes input consumed.
2013-12-01Minor drive-by cleanups to cpio. Whitespace, curly brackets, replace %4 with ↵Rob Landley
&3, turn a switch/case into if/else.
2013-11-30Fix cut.Rob Landley
Some commands went in before "pending", and thus need cleanup but are enabled in defconfig. The fact cut used a function out of lib/pending.c is a hint it might be in this category...
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-28Add xgetpwnam() to lib/xwrap.c.Rob Landley
2013-11-28Move xgetpwuid() and xgetgrgid() into xwrap.cRob Landley
2013-11-26Ifconfig cleanup.Rob Landley
2013-11-23The return of ifconfig cleanup.Rob Landley
2013-11-20tftpd upgrade from Ashwini Sharma based on comments from Felix Janda.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-16Support -F, and ignore -u since that's what we do anyway.Isaac Dunham
(Really, checking the original file date is the Right Thing, but I haven't written it yet.)
2013-11-10fsck wrapper from Ashwini Sharma. (Note: this just calls filesystem-specific ↵Rob Landley
programs not yet in toybox.)
2013-11-10dumpleases (for dhcpd) submitted by Ashwini Sharma.Rob Landley
2013-11-10du from Ashwini Sharma.Rob Landley
2013-11-10Stuff in pending should default n until cleaned up.Rob Landley
2013-11-10Add tftpdAshwini Sharma
2013-11-09grep doesn't allocate enough spaceWilliam Haddon
Grep miscalculates the amount of memory it needs to allocate when "converting strings to one big regex" when the -e flag is not specified. Since in this case "\|" is inserted between strings rather than "|", two extra bytes rather than one need to be provided for each string. I noticed this because it caused grep to seg-fault on musl when a regex of exactly seven characters is provided.
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-31Patch from William Haddon to make xargs with blank input call its command ↵Rob Landley
line once. (Tweaked slightly for whitespace and to collate variable declarations.)
2013-10-31Make the patch -x option (only enabled with CONFIG_DEBUG) provide more ↵Rob Landley
information about why a patch didn't apply. (Offset of first nonmatching character at each line during seek phase.)
2013-10-27Promote nl from pending to posix, and add tests.Rob Landley
2013-10-27Cleanup nl, add support for more bits of posix.Rob Landley
2013-10-27Here's a revised cpio.Isaac Dunham
I've reduced the use of malloc(), dropped an extra function call, and -at least in theory- allowed proper handling of non-regular files. (If we have a file we can't read, we still should record it when it's of a type where file content is ignored).
2013-10-13watch: Add support for -e option, remove memory leak and deal with not-wide ↵Elie De Brauwer
terminals
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-16useradd, groupadd, and mkpasswd submitted by Ashwini Sharma.Rob Landley
2013-10-16Prep work for useradd by Ashwini Sharma.Rob Landley
2013-10-14I've finally gotten 'cpio' into a shape where it could be useable.Isaac Dunham
This version can archive and extract directories, sockets, FIFOs, devices, symlinks, and regular files. Supported options are -iot, -H FMT (which is a dummy right now). It only writes newc, and could read newc or newcrc. This does NOT implement -d, which essentially is equivalent to mkdir -p $(dirname $FILE) for every file that needs it. Hard links are not supported, though it would be easy to add them given a hash table or something like that. I also have not implemented the "<n> blocks" output on stderr. If desired, I can add it pretty simply. There is one assumption this makes: that the mode of a file, as mode_t, is bitwise equivalent to the mode as defined for the cpio format. This is true of Linux, but is not mandated by POSIX. If it is compiled for a system where that is false, the archives will not be portable.
2013-10-08Move blkid out of pending, default y.Rob Landley
2013-10-08Cleanup chvtRob Landley
2013-10-08Cleanup blkidRob Landley
2013-10-07blkid cleanup: more whitespace (including fixing a strange unindented if ↵Rob Landley
block), convert strange fstype inclusion to OLDTOY(), use "<1" arg so calling with no arguments doesn't hang, convert typedef to normal struct.
2013-10-07blkid cleanup: Convert tabs to spaces.Rob Landley
2013-10-07Add blkid.cBrad Conroy
I finally figured out the NTFS labels after reading a rant on how UTF-8 rocks and how MS switched to UTF16 or UCS1 or whatever. The reason I couldn't grep for the label (mine was "myntfs") was that it is stored as "m\0y\0n\0t\0f\0s\0\0" - found another good use for hexdump :) Notes: I only have x86 to test on, so there are a couple of places that may need bswap_{16,32} for endianness. I used a 65k buf instead of toybuf (4k) for simplicity, but tried to organize it for toybuf if wanted. I have info on more fs types, to patch with after review. blkid does output for all devices if 0 args -> read /proc/partitions?
2013-10-06top submitted by Ashwini SharmaRob Landley
2013-09-22traceroute from Ashwini SharmaRob Landley
2013-09-21Tweak args (yank old + that never worked, rename | to +), and add uname -o ↵Rob Landley
as a synonym for -s.
2013-09-16Fix -t c0 and -J as reported by heehooman at gmail on the list.Rob Landley
Also fix up help text, and hook up -c.
2013-09-11Ah, that's why commit 1057 was skipped last pull: it was unfinished. Oops. ↵0.4.6Rob Landley
(Fix it.)