Rob Landley [Wed, 5 Sep 2007 04:02:58 +0000 (23:02 -0500)]
Move optimizer flags to OPTIMIZE, so "make CC=tcc OPTIMIZE=" is an option.
Rob Landley [Sat, 1 Sep 2007 21:27:31 +0000 (16:27 -0500)]
Minor tweak to web page.
Rob Landley [Wed, 29 Aug 2007 13:10:01 +0000 (08:10 -0500)]
Add "help" command. (Building help/help.h requires python, but I'll ship
that file with release versions.)
Rob Landley [Tue, 21 Aug 2007 06:42:54 +0000 (01:42 -0500)]
Tweak error message.
Rob Landley [Wed, 15 Aug 2007 17:50:44 +0000 (12:50 -0500)]
More klibc fixes from Maximilian Attems, strlcpy() this time.
Rob Landley [Wed, 15 Aug 2007 16:03:50 +0000 (11:03 -0500)]
Remove strings.h which Maximilian Attems points out is obsolete:
> belows snippet directly taken from mdadm.h.
>
> to quote hpa:
> "Including <strings.h> is a bug in the upstream source;
> <strings.h> has been obsolete since at least 1989"
>
> one small little step for better klibc support ;)
Rob Landley [Mon, 18 Jun 2007 05:27:43 +0000 (01:27 -0400)]
Update web page to mention 0.0.3 release.
Rob Landley [Mon, 18 Jun 2007 05:22:14 +0000 (01:22 -0400)]
Added tag 0.0.3 for changeset
a459c6b39645
Rob Landley [Mon, 18 Jun 2007 05:09:00 +0000 (01:09 -0400)]
Fix makefile to defconfig properly, and leak in a bit of the new test
infrastructure so I don't have to revert it to check this in. :)
Rob Landley [Mon, 18 Jun 2007 05:00:32 +0000 (01:00 -0400)]
Fix READLINK_F dependency.
Rob Landley [Mon, 18 Jun 2007 04:44:53 +0000 (00:44 -0400)]
Change defaults of working commands to yes, so "make defconfig" is more
useful than "make allyesconfig".
Rob Landley [Mon, 18 Jun 2007 04:17:04 +0000 (00:17 -0400)]
Add a dummy "touch" to make it all build again.
Rob Landley [Mon, 18 Jun 2007 04:15:48 +0000 (00:15 -0400)]
Add readlink. Why doesn't mercurial show newly added files in "hg diff"?
Rob Landley [Mon, 18 Jun 2007 04:14:03 +0000 (00:14 -0400)]
Add xputs() to detect EOF on writes.
Rob Landley [Mon, 18 Jun 2007 04:12:43 +0000 (00:12 -0400)]
Fix "Need 1 arguments".
Rob Landley [Fri, 15 Jun 2007 19:16:46 +0000 (15:16 -0400)]
Vladimir Oleynik pointed out that va_start() twice in the same function
isn't portable (with ppc 4xx as an example of a platform it doesn't work
on). This is why va_copy exists.
Rob Landley [Thu, 7 Jun 2007 19:20:26 +0000 (15:20 -0400)]
Make warning go away.
Rob Landley [Thu, 7 Jun 2007 19:19:44 +0000 (15:19 -0400)]
Work around uClibc weirdness.
Rob Landley [Thu, 7 Jun 2007 19:19:00 +0000 (15:19 -0400)]
More cross compiling infrastructure.
Rob Landley [Fri, 1 Jun 2007 18:31:45 +0000 (14:31 -0400)]
Show the compiler how to optimize out the option parsing logic when nothing
is using it.
Rob Landley [Fri, 1 Jun 2007 17:41:24 +0000 (13:41 -0400)]
Allow applets with optarg string NULL to use toy.optargs[].
Rob Landley [Fri, 1 Jun 2007 15:46:56 +0000 (11:46 -0400)]
Humor dash, which is broken.
Rob Landley [Tue, 29 May 2007 20:26:47 +0000 (16:26 -0400)]
Make it easier to specify which compiler to use.
Rob Landley [Thu, 17 May 2007 06:38:27 +0000 (02:38 -0400)]
Add sleep.
Rob Landley [Thu, 17 May 2007 06:38:17 +0000 (02:38 -0400)]
Link to ars technica paedia broke because ars is now using Windows 2003 on
its' webserver and can't competently show "index.html" for a directory. Wheee.
Rob Landley [Mon, 30 Apr 2007 04:08:48 +0000 (00:08 -0400)]
Add true and false.
Rob Landley [Sun, 29 Apr 2007 23:55:21 +0000 (19:55 -0400)]
Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
compiler so much.
Rob Landley [Mon, 23 Apr 2007 19:45:55 +0000 (15:45 -0400)]
Add sync and an incomplete version of mdev.
Rob Landley [Thu, 19 Apr 2007 01:41:38 +0000 (21:41 -0400)]
And more mke2fs changes.
Rob Landley [Thu, 19 Apr 2007 01:39:46 +0000 (21:39 -0400)]
Next iteration of mke2fs development.
Rob Landley [Thu, 15 Mar 2007 17:59:06 +0000 (13:59 -0400)]
Apply uClibc's changes to this kconfig.
Rob Landley [Tue, 13 Mar 2007 02:54:02 +0000 (22:54 -0400)]
Move project name to Makefile.
Rob Landley [Tue, 13 Mar 2007 01:17:01 +0000 (21:17 -0400)]
Convert HOST_CC to HOSTCC to be more like uClibc build.
Rob Landley [Tue, 13 Mar 2007 01:10:06 +0000 (21:10 -0400)]
Change help text: not just used for the kernel.
Rob Landley [Mon, 12 Mar 2007 15:02:04 +0000 (11:02 -0400)]
Add web page background image and check in some half-finished ext2
documentation.
Rob Landley [Wed, 21 Feb 2007 20:19:32 +0000 (15:19 -0500)]
Fix oneit: <1 is only parsed at the start of the argument list.
Rob Landley [Mon, 19 Feb 2007 06:44:28 +0000 (01:44 -0500)]
Calculate block and inode usage in group table and bitmaps.
Rob Landley [Sun, 18 Feb 2007 21:24:55 +0000 (16:24 -0500)]
Precalculate block and inode usage given a starting file tree. This compiles,
probably doesn't actually work yet.
Rob Landley [Sun, 18 Feb 2007 19:23:10 +0000 (14:23 -0500)]
An old test suite wrapper I wrote, cleaned up a bit and checked for copyrights.
Rob Landley [Sat, 17 Feb 2007 02:08:22 +0000 (21:08 -0500)]
Add atolx() which understands extensions for kilobytes and megabytes and such.
Rob Landley [Wed, 14 Feb 2007 07:20:37 +0000 (02:20 -0500)]
Calculate st_nlink for each node, via a small but n^2 algorithm.
Rob Landley [Tue, 13 Feb 2007 21:41:51 +0000 (16:41 -0500)]
MacOS X has a defective sed with no -r.
Rob Landley [Tue, 13 Feb 2007 01:03:01 +0000 (20:03 -0500)]
More work on mke2fs.c. Random in-progress snapshot...
Rob Landley [Tue, 13 Feb 2007 00:59:12 +0000 (19:59 -0500)]
Make kconfig build on MacOS X. (Because it's there.)
Rob Landley [Mon, 5 Feb 2007 00:14:58 +0000 (19:14 -0500)]
Add parent pointer to dirtree, more work on mke2fs (populate dirtree, count
index blocks).
Rob Landley [Mon, 5 Feb 2007 00:06:07 +0000 (19:06 -0500)]
Rename functions.c to lib.c. (Easier name to remember.)
Rob Landley [Sat, 3 Feb 2007 19:11:26 +0000 (14:11 -0500)]
Add xstat(), read_dirtree(), and read_dirtree_node().
Rob Landley [Sat, 3 Feb 2007 19:10:00 +0000 (14:10 -0500)]
Teach build to build only the toys/*.c selected in .config, and teach
CFG_TOYSH_DEBUG to shut up the spurious "gcc can't tell that this is never
actually used uninitialized because gcc is stupid" warnings.
Rob Landley [Fri, 2 Feb 2007 15:53:55 +0000 (10:53 -0500)]
Trim a redundant definition that confuses older compilers. (Regression testing
against Red Hat 9.)
Rob Landley [Thu, 1 Feb 2007 22:39:14 +0000 (17:39 -0500)]
Toybox option parsing must stop at the first non-option argument.
Rob Landley [Wed, 31 Jan 2007 20:23:21 +0000 (15:23 -0500)]
Missing comma, and slight simplification in defconfig sed invocation.
Rob Landley [Wed, 31 Jan 2007 19:37:01 +0000 (14:37 -0500)]
Add "make defconfig". Modify global options to start with CONFIG_TOYBOX_.
Rob Landley [Wed, 31 Jan 2007 19:18:05 +0000 (14:18 -0500)]
Add make install_flat.
Rob Landley [Wed, 31 Jan 2007 18:31:19 +0000 (13:31 -0500)]
Small cleanup to prepare for cross-compile friendly make install.
Rob Landley [Wed, 31 Jan 2007 17:28:50 +0000 (12:28 -0500)]
Added tag 0.0.2 for changeset
d2e38cb0b1cd
Rob Landley [Wed, 31 Jan 2007 17:27:10 +0000 (12:27 -0500)]
I forgot to add count.c a while ago. (Memo to self: grab snapshots and build
out of directory more often, to make sure I've checked in all the files...)
Rob Landley [Wed, 31 Jan 2007 16:57:08 +0000 (11:57 -0500)]
Move download->downloads (be consistent) and add a skeletal index bar along
the left (copied from firmware linux, half the tabs go nowhere).
Rob Landley [Wed, 31 Jan 2007 15:50:56 +0000 (10:50 -0500)]
This creates an almost valid empty ext2 filesystem, except for a few superblock
fields (blank free_blocks and free_inodes), and no root directory. (And
technically, no lost+found either.)
Rob Landley [Mon, 29 Jan 2007 22:44:28 +0000 (17:44 -0500)]
mke2fs: Stopping for dinner. It compiles.
Rob Landley [Sun, 28 Jan 2007 09:54:01 +0000 (04:54 -0500)]
More work on mke2fs.
Rob Landley [Sun, 28 Jan 2007 01:43:26 +0000 (20:43 -0500)]
Move superblock initialization to a function. Trim unused padding from
superblock.
Rob Landley [Sat, 27 Jan 2007 20:10:48 +0000 (15:10 -0500)]
One more field, minor shrinking, and start on block groups.
Rob Landley [Fri, 26 Jan 2007 15:48:35 +0000 (10:48 -0500)]
Filling out most of the ext2 superblock correctly now.
Rob Landley [Thu, 25 Jan 2007 21:11:23 +0000 (16:11 -0500)]
Update args.c to implement numeric arguments.
Rob Landley [Thu, 25 Jan 2007 21:10:37 +0000 (16:10 -0500)]
The fdlength() ioctl apparently doesn't work on files (and the lseek trick
doesn't work on some devices, and we can't always tell _when_ it failed), so
go to the binary search for now.
Rob Landley [Wed, 24 Jan 2007 00:54:01 +0000 (19:54 -0500)]
More work on mke2fs.
Rob Landley [Tue, 23 Jan 2007 18:20:38 +0000 (13:20 -0500)]
More random progress on mke2fs. Nothing to see yet.
Rob Landley [Sun, 21 Jan 2007 04:41:49 +0000 (23:41 -0500)]
Add "yes" command.
Rob Landley [Sun, 21 Jan 2007 03:59:00 +0000 (22:59 -0500)]
Teach pwd to detect write errors.
Rob Landley [Sun, 21 Jan 2007 03:41:29 +0000 (22:41 -0500)]
Comment and whitespace cleanups
Rob Landley [Sun, 21 Jan 2007 02:32:47 +0000 (21:32 -0500)]
Helps to "hg add" echo.c. Also, implement \0123 escapes for -e.
Rob Landley [Sat, 20 Jan 2007 23:04:20 +0000 (18:04 -0500)]
Add "echo". Has -n and -e (but not \0123 yet).
Rob Landley [Sat, 20 Jan 2007 17:30:19 +0000 (12:30 -0500)]
Merge a memset with an existing loop, tweak comments.
Rob Landley [Fri, 19 Jan 2007 21:31:11 +0000 (16:31 -0500)]
Merge two similar loops and expand a comment.
Rob Landley [Fri, 19 Jan 2007 21:01:54 +0000 (16:01 -0500)]
Another suggestion from Manuel: Grab 2 bits instead of 1 inside a loop. Saves
4 bytes and reduces running time by one half of one percent.
Rob Landley [Fri, 19 Jan 2007 03:01:04 +0000 (22:01 -0500)]
Add count command.
Rob Landley [Fri, 19 Jan 2007 03:00:46 +0000 (22:00 -0500)]
Save 4 bytes of stack space.
Rob Landley [Fri, 19 Jan 2007 03:00:12 +0000 (22:00 -0500)]
In bunzip replace setjmp/longjmp handling with error_exit(), replace string
based handling of a 6-byte header with with two 24-bit integer reads. Use
xmalloc() and xzalloc().
Rob Landley [Fri, 19 Jan 2007 02:54:08 +0000 (21:54 -0500)]
Add fdprintf(). Remove reread() and rewrite() which handle -EINTR, which
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.)
Rob Landley [Thu, 18 Jan 2007 23:16:11 +0000 (18:16 -0500)]
More optimizations originally suggested by Manuel Nova: Use a sentinel value
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.
Rob Landley [Wed, 17 Jan 2007 23:24:17 +0000 (18:24 -0500)]
Minor cleanups.
Rob Landley [Wed, 17 Jan 2007 23:18:50 +0000 (18:18 -0500)]
Turn a memmove into a while(), reducing running time by 3.5% in my tests.
Rob Landley [Wed, 17 Jan 2007 21:58:51 +0000 (16:58 -0500)]
Another application of Manuel Nova's "math instead of ifs" trick. Saves 17b.
Rob Landley [Wed, 17 Jan 2007 21:56:28 +0000 (16:56 -0500)]
Minor optimization the compiler already does for us (according to bloatcheck),
but it looks cleaner.
Rob Landley [Wed, 17 Jan 2007 21:31:23 +0000 (16:31 -0500)]
Fix off by one error in a test.
Rob Landley [Wed, 17 Jan 2007 18:58:08 +0000 (13:58 -0500)]
Comment and whitespace changes.
Rob Landley [Tue, 16 Jan 2007 19:25:12 +0000 (14:25 -0500)]
Memmove is 11 bytes shorter than the unrolled loop, and Manuel Nova pointed
out how to turn an if/else into a multiply and subtract (saving 2 bytes).
Rob Landley [Tue, 16 Jan 2007 18:26:02 +0000 (13:26 -0500)]
Add a quick and dirt bzcat (stdin to stdout only for the moment) to test
out the bunzip2 library.
Rob Landley [Mon, 15 Jan 2007 01:20:06 +0000 (20:20 -0500)]
Add start of mke2fs/gene2fs, and some other stuff I've been working on.
Rob Landley [Mon, 8 Jan 2007 09:26:01 +0000 (04:26 -0500)]
xread() and xwrite() should take void *, not char *.
Rob Landley [Mon, 8 Jan 2007 08:25:47 +0000 (03:25 -0500)]
Add xaccess()
Rob Landley [Mon, 8 Jan 2007 07:49:39 +0000 (02:49 -0500)]
Add rewrite(), writeall(),and xwrite() to match the read versions.
Rob Landley [Mon, 8 Jan 2007 03:51:12 +0000 (22:51 -0500)]
xopen() wants 2 arguments unless you're creating a file, in which case you
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.
Rob Landley [Sun, 7 Jan 2007 08:48:26 +0000 (03:48 -0500)]
Two unrelated additions I'm working on cross over in this file. In theory I
can use mercurial branches to keep this sort of thing separate, but at
the moment I'm just going to check in some dangling config entries that
don't control anything yet.
Rob Landley [Thu, 4 Jan 2007 22:26:30 +0000 (17:26 -0500)]
Blah. The sed filter's not right, I'll try again later.
Rob Landley [Mon, 1 Jan 2007 00:10:24 +0000 (19:10 -0500)]
Remove more warnings.
Rob Landley [Mon, 1 Jan 2007 00:09:42 +0000 (19:09 -0500)]
Make some of gcc 4.1's dumber warnings go away.
Rob Landley [Sun, 31 Dec 2006 03:01:47 +0000 (22:01 -0500)]
Comment tweak.
Rob Landley [Thu, 14 Dec 2006 20:19:34 +0000 (15:19 -0500)]
Note the mailing list.
Rob Landley [Sun, 26 Nov 2006 23:54:03 +0000 (18:54 -0500)]
Teach clean and distclean to zap more files.