aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2012-02-26Teach lib/args.c that " " this option must take a _separate_ argument, so ↵Rob Landley
"kill -stop" and "kill -s top" aren't the same thing. Make kill.c use it, and remove leftover debug printfs.
2012-02-26Factor out common code between killall/kill and move it to lib/lib.c, plus ↵Rob Landley
cleanups on kill.c.
2012-02-18Nathan McSween convinced me compilers that inline memset() can optimize the ↵Rob Landley
bzero case pretty well.
2012-02-18And again, I forgot to check in a file. Oops.Rob Landley
2012-02-18Cleanups to pidof (including some global infrastructure shared with killall).Rob Landley
2012-02-18Add killall by Andreas Heck, and factor out common pid code to lib.h.Rob Landley
2012-02-09Make atolx() error_exit() if fed a string that doesn't convert entirely into ↵Rob Landley
an integer.
2012-02-08Use stpcpy() (posix 2008) for slight code shrink.Rob Landley
2012-02-03Removing unecessary allocation.Luis Felipe Strano Moraes
2012-02-02Quick and dirty terminal_size() and yesno() functions, both of which need to ↵Rob Landley
be improved.
2012-02-02Commit 415 needs the other two files. (Oops.)Rob Landley
2012-01-29Add <>= to lib/args.c, with documentation.Rob Landley
2011-12-28Bugfix (spotted by Nathan McSween): xread can't detect <0 if the return type ↵Rob Landley
is stored in an unsigned variable.
2011-12-12Forgot to check in loopfiles_rw changes needed by truncate.Rob Landley
2011-11-30Split out parse_optflaglist(), and move local variables to optflagstate.Rob Landley
2011-11-28Fix "tar cvjfC file dir", make @ not eat an argument, add debug check for ↵Rob Landley
(as yet) unsupported multi-function option (ala "x*@").
2011-11-13xreadall() returns void... how does that even compile?Rob Landley
2010-01-06Shut up even MORE gcc/glibc spurious warnings.Rob Landley
2010-01-05Add TOYBOX_SUID.Rob Landley
2010-01-05Correct return types of xstrdup() and xstrndup()Rob Landley
2010-01-05Typo fix in comment.Rob Landley
2009-04-16Fix bug spotted by Jean-Christphe Dubois: reserve space for null terminator.Rob Landley
2009-01-25Fix thinko.Rob Landley
2009-01-19Fix typo.0.0.8Rob Landley
2009-01-18Add mkswap.Rob Landley
2009-01-05Add -N, -I, -L, and -P options to cksum.Rob Landley
2009-01-03Check in crc_init needed by cksum. (Oops.)Rob Landley
2008-11-12Work around a reiserfs bug. (One line change, switch from looking at broken ↵Rob Landley
struct dirent->dt_type to looking at stat() output. The rest are unrelated variable renames.)
2008-10-23Upgrade patch to detect hunks that start after a false start.Rob Landley
Imagine a hunk that starts with a blank line, but the site to patch starts with two blank lines. Before we'd read the first blank line, think it was the start of the hunk and buffer it, read the second blank line, notice that it didn't match the second line of the hunk, and discard _both_ buffered lines of context (writing them to the output file) without checking that one of the later context lines might have been the real start of the hunk. Make it re-check the rest of the buffered context for matches each time it discards a line of buffered context.
2008-07-18Tweak from Roberto Foglietta.Rob Landley
2008-07-18Roberto Foglietta pointed out that readall() needs fdlength() to restoreRob Landley
the original position before exiting.
2008-07-18Bug spotted by Roberto Foglietta: at EOF readall() should return count, not len.Rob Landley
2008-07-03Add "tee" command.Rob Landley
2008-07-03Teach option parsing logic that ^ means stop parsing after this option.Rob Landley
2008-06-28A pathological case of huffman coding that uses 8 bits to code each of 256Rob Landley
symbols could cause an unsigned char limit[8] to wrap back to 0, setting limit to -1 and making the decompressor exit with a data error.
2008-06-26Option parsing: stopearly is now a ^ prefix (not +), and an option string withRob Landley
no flags auto-enables stopearly (so seq doesn't have to specify it to avoid having negative number arguments eaten by the option parsing logic).
2008-06-16Assemble '*' repeated argument list in order. Also implement '@' counter.Rob Landley
2008-05-17Fix which (the meaning of -a was reversed, and it was finding the _last_ hit).Rob Landley
2008-05-17Fix command line option parsing so "echo -xen" actually prints "-xen". AddRob Landley
echo.test while I'm at it.
2008-05-12Update mdev to work around the newest sysfs api breakage in the 2.6.25 kernel.Rob Landley
(Yeah, I know sysfs hasn't actually got an API, but I like to pretend...)
2008-05-04Fluffier error message.Rob Landley
2008-04-13Teach get_rawline() to continue until a configurable char, and xstrndup()Rob Landley
shouldn't die when it's told to chop out a subsection of a string.
2008-03-24If we don't remember to closedir(), the leaked filehandles add up.Rob Landley
2008-03-24Enabling debugging should not change behavior. Oops.Rob Landley
2008-02-21Make cp pass most of its test suite. Still need to add symlink support.Rob Landley
2008-02-20Add first pass at cp, totally untested, unlikely to work yet. :)Rob Landley
2008-02-18Add enable/disable/exclude logic, update docs.Rob Landley
2008-02-16Dirtree needs to use lstat(), not stat. And failure should probably be aRob Landley
warning rather than an error (it means the directory tree is changing out from under it, but only the user knows if that's fatal).
2008-02-12Add toys.optc, an argv-style count for toys.optargs.Rob Landley
2008-01-27Add spaces after some commas (from Charlie Shepherd).Rob Landley