Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-11-15 | Add noreturn mark to [p]error_exit(), suggested by Charlie Shepherd. | Rob Landley | |
2007-11-15 | Remove trailing whitespace (thanks to Charlie Shepherd), and a couple comment | Rob Landley | |
tweaks. | |||
2007-11-15 | Change strlcpy not to use strncpy. (Adds 24 bytes, but doesn't memset the | Rob Landley | |
unused portion of the buffer to 0, which can touch and allocate physical pages for a large virtual mapping.) | |||
2007-11-04 | Fix from Charlie Shepherd: at end of string, don't match the null terminator | Rob 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-04 | xcreate(): perror already prints error name and newline, remove redundancy. | Rob Landley | |
2007-10-11 | Promote help to global config option, teach error_exit() to output usage ↵ | Rob Landley | |
message when called from get_optflags(). | |||
2007-10-04 | Break out dirtree.c and let it call a function instead of returning the data. | Rob Landley | |
2007-08-15 | More klibc fixes from Maximilian Attems, strlcpy() this time. | Rob Landley | |
2007-06-18 | Add xputs() to detect EOF on writes. | Rob Landley | |
2007-06-18 | Fix "Need 1 arguments". | Rob Landley | |
2007-06-15 | Vladimir Oleynik pointed out that va_start() twice in the same function | Rob 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-07 | Work around uClibc weirdness. | Rob Landley | |
2007-04-29 | Add readlink, xreadlink(), and change xrealloc() to not fight the stupid | Rob Landley | |
compiler so much. | |||
2007-04-23 | Add sync and an incomplete version of mdev. | Rob Landley | |
2007-02-16 | Add atolx() which understands extensions for kilobytes and megabytes and such. | Rob Landley | |
2007-02-13 | MacOS X has a defective sed with no -r. | Rob Landley | |
2007-02-04 | Add parent pointer to dirtree, more work on mke2fs (populate dirtree, count | Rob Landley | |
index blocks). | |||
2007-02-04 | Rename functions.c to lib.c. (Easier name to remember.) | Rob Landley | |
2007-02-03 | Add xstat(), read_dirtree(), and read_dirtree_node(). | Rob Landley | |
2007-02-03 | Teach build to build only the toys/*.c selected in .config, and teach | Rob 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-31 | Add "make defconfig". Modify global options to start with CONFIG_TOYBOX_. | Rob Landley | |
2007-01-25 | Update args.c to implement numeric arguments. | Rob Landley | |
2007-01-25 | The fdlength() ioctl apparently doesn't work on files (and the lseek trick | Rob 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-23 | More random progress on mke2fs. Nothing to see yet. | Rob Landley | |
2007-01-20 | Add "echo". Has -n and -e (but not \0123 yet). | Rob Landley | |
2007-01-20 | Merge a memset with an existing loop, tweak comments. | Rob Landley | |
2007-01-19 | Merge two similar loops and expand a comment. | Rob Landley | |
2007-01-19 | Another suggestion from Manuel: Grab 2 bits instead of 1 inside a loop. Saves | Rob Landley | |
4 bytes and reduces running time by one half of one percent. | |||
2007-01-18 | In bunzip replace setjmp/longjmp handling with error_exit(), replace string | Rob Landley | |
based handling of a 6-byte header with with two 24-bit integer reads. Use xmalloc() and xzalloc(). | |||
2007-01-18 | Add fdprintf(). Remove reread() and rewrite() which handle -EINTR, which | Rob 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-18 | More optimizations originally suggested by Manuel Nova: Use a sentinel value | Rob 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-17 | Minor cleanups. | Rob Landley | |
2007-01-17 | Turn a memmove into a while(), reducing running time by 3.5% in my tests. | Rob Landley | |
2007-01-17 | Another application of Manuel Nova's "math instead of ifs" trick. Saves 17b. | Rob Landley | |
2007-01-17 | Minor optimization the compiler already does for us (according to bloatcheck), | Rob Landley | |
but it looks cleaner. | |||
2007-01-17 | Fix off by one error in a test. | Rob Landley | |
2007-01-17 | Comment and whitespace changes. | Rob Landley | |
2007-01-16 | Memmove is 11 bytes shorter than the unrolled loop, and Manuel Nova pointed | Rob Landley | |
out how to turn an if/else into a multiply and subtract (saving 2 bytes). | |||
2007-01-16 | Add a quick and dirt bzcat (stdin to stdout only for the moment) to test | Rob Landley | |
out the bunzip2 library. | |||
2007-01-14 | Add start of mke2fs/gene2fs, and some other stuff I've been working on. | Rob Landley | |
2007-01-08 | xread() and xwrite() should take void *, not char *. | Rob Landley | |
2007-01-08 | Add xaccess() | Rob Landley | |
2007-01-08 | Add rewrite(), writeall(),and xwrite() to match the read versions. | Rob Landley | |
2007-01-07 | xopen() wants 2 arguments unless you're creating a file, in which case you | Rob Landley | |
need 3. Doing varargs for this doesn't really appeal to me (bugs in waiting) so I made an xcreate() that takes 3 args, and had xopen() call it with 0 for the third argument. That way, if we feed O_CREAT to xopen() the permission 000 result should be easy to spot. | |||
2006-12-31 | Remove more warnings. | Rob Landley | |
2006-12-30 | Comment tweak. | Rob Landley | |
2006-11-26 | Trawling through the archives: a broken test, an unnecessary memset, and a | Rob Landley | |
unrolling a small memmove. | |||
2006-11-26 | More whitespace/cowbell. (And change comment style to //.) | Rob Landley | |
2006-11-25 | Add my old micro-bunzip library. Needs some cleanup... | Rob Landley | |
2006-11-25 | Add cat -v. | Rob Landley | |