aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2008-01-19Move NEWTOY() list from end of toylist.h to generated/newtoys.h.Rob Landley
2008-01-19Zap toys/Config.in and instead create generated/Config.in from contents ofRob Landley
toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also convert more of Makefile into a thin wrapper around shell scripts that actually do the work. (Makefile is only still there for the user interface.)
2008-01-01Fix loopfiles to not call function() on file not found.0.0.4Rob Landley
2007-12-27Make patch's file add actually work, including directory creating andRob Landley
understanding zero-context hunks.
2007-12-24Major refactoring of bunzip.c in preparation for doing a multi-threaded version.Rob Landley
2007-12-20Upgrade patch to understand creating and deleting files.Rob Landley
2007-12-18Patch command.Rob Landley
2007-12-15Start of "patch" support. Writes to stdout at the moment.Rob Landley
2007-12-09Changeset 186 assumed that toys.exitval defaults to 0. Actually change theRob Landley
default and have [p]error_exit() always return nonzero anyway.
2007-11-29Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.Rob Landley
2007-11-29Add loopfiles() function, make catv use it.Rob Landley
2007-11-27Patch from Charlie Shepherd: remove extra \n from error_exit() arguments.Rob Landley
2007-11-19Replace strlcpy() with xstrcpy(), which exits if the string won't fit.Rob Landley
2007-11-15Add noreturn mark to [p]error_exit(), suggested by Charlie Shepherd.Rob Landley
2007-11-15Remove trailing whitespace (thanks to Charlie Shepherd), and a couple commentRob Landley
tweaks.
2007-11-15Change strlcpy not to use strncpy. (Adds 24 bytes, but doesn't memset theRob Landley
unused portion of the buffer to 0, which can touch and allocate physical pages for a large virtual mapping.)
2007-11-04Fix from Charlie Shepherd: at end of string, don't match the null terminatorRob Landley
as a yottabyte suffix. Also, the shift increment needs to be a long constant on 64-bit platforms for the top three suffixes to mean anything.
2007-11-04xcreate(): perror already prints error name and newline, remove redundancy.Rob Landley
2007-10-11Promote help to global config option, teach error_exit() to output usage ↵Rob Landley
message when called from get_optflags().
2007-10-04Break out dirtree.c and let it call a function instead of returning the data.Rob Landley
2007-08-15More klibc fixes from Maximilian Attems, strlcpy() this time.Rob Landley
2007-06-18Add xputs() to detect EOF on writes.Rob Landley
2007-06-18Fix "Need 1 arguments".Rob Landley
2007-06-15Vladimir Oleynik pointed out that va_start() twice in the same functionRob Landley
isn't portable (with ppc 4xx as an example of a platform it doesn't work on). This is why va_copy exists.
2007-06-07Work around uClibc weirdness.Rob Landley
2007-04-29Add readlink, xreadlink(), and change xrealloc() to not fight the stupidRob Landley
compiler so much.
2007-04-23Add sync and an incomplete version of mdev.Rob Landley
2007-02-16Add atolx() which understands extensions for kilobytes and megabytes and such.Rob Landley
2007-02-13MacOS X has a defective sed with no -r.Rob Landley
2007-02-04Add parent pointer to dirtree, more work on mke2fs (populate dirtree, countRob Landley
index blocks).
2007-02-04Rename functions.c to lib.c. (Easier name to remember.)Rob Landley
2007-02-03Add xstat(), read_dirtree(), and read_dirtree_node().Rob Landley
2007-02-03Teach build to build only the toys/*.c selected in .config, and teachRob Landley
CFG_TOYSH_DEBUG to shut up the spurious "gcc can't tell that this is never actually used uninitialized because gcc is stupid" warnings.
2007-01-31Add "make defconfig". Modify global options to start with CONFIG_TOYBOX_.Rob Landley
2007-01-25Update args.c to implement numeric arguments.Rob Landley
2007-01-25The fdlength() ioctl apparently doesn't work on files (and the lseek trickRob Landley
doesn't work on some devices, and we can't always tell _when_ it failed), so go to the binary search for now.
2007-01-23More random progress on mke2fs. Nothing to see yet.Rob Landley
2007-01-20Add "echo". Has -n and -e (but not \0123 yet).Rob Landley
2007-01-20Merge a memset with an existing loop, tweak comments.Rob Landley
2007-01-19Merge two similar loops and expand a comment.Rob Landley
2007-01-19Another suggestion from Manuel: Grab 2 bits instead of 1 inside a loop. SavesRob Landley
4 bytes and reduces running time by one half of one percent.
2007-01-18In bunzip replace setjmp/longjmp handling with error_exit(), replace stringRob Landley
based handling of a 6-byte header with with two 24-bit integer reads. Use xmalloc() and xzalloc().
2007-01-18Add fdprintf(). Remove reread() and rewrite() which handle -EINTR, whichRob Landley
shouldn't be a problem if we register signal handlers with sigaction(SA_RESTART) Straighten out count and len (I generally consistently use "count" for the current progress and "len" for the total, but this time I got them backwards for some reason and don't want to confuse myself in future.)
2007-01-18More optimizations originally suggested by Manuel Nova: Use a sentinel valueRob Landley
for limit[] to move a test out of a loop. Unroll a single-bit get_bits() to avoid a function call in the common case on a hot path. And one more application of the old "two tests in one via typecasting and/or math" trick.
2007-01-17Minor cleanups.Rob Landley
2007-01-17Turn a memmove into a while(), reducing running time by 3.5% in my tests.Rob Landley
2007-01-17Another application of Manuel Nova's "math instead of ifs" trick. Saves 17b.Rob Landley
2007-01-17Minor optimization the compiler already does for us (according to bloatcheck),Rob Landley
but it looks cleaner.
2007-01-17Fix off by one error in a test.Rob Landley
2007-01-17Comment and whitespace changes.Rob Landley