platform/upstream/toybox.git
17 years agoUpdate web page to mention 0.0.3 release.
Rob Landley [Mon, 18 Jun 2007 05:27:43 +0000 (01:27 -0400)]
Update web page to mention 0.0.3 release.

17 years agoAdded tag 0.0.3 for changeset a459c6b39645
Rob Landley [Mon, 18 Jun 2007 05:22:14 +0000 (01:22 -0400)]
Added tag 0.0.3 for changeset a459c6b39645

17 years agoFix makefile to defconfig properly, and leak in a bit of the new test 0.0.3
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. :)

17 years agoFix READLINK_F dependency.
Rob Landley [Mon, 18 Jun 2007 05:00:32 +0000 (01:00 -0400)]
Fix READLINK_F dependency.

17 years agoChange defaults of working commands to yes, so "make defconfig" is more
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".

17 years agoAdd a dummy "touch" to make it all build again.
Rob Landley [Mon, 18 Jun 2007 04:17:04 +0000 (00:17 -0400)]
Add a dummy "touch" to make it all build again.

17 years agoAdd readlink. Why doesn't mercurial show newly added files in "hg diff"?
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"?

17 years agoAdd xputs() to detect EOF on writes.
Rob Landley [Mon, 18 Jun 2007 04:14:03 +0000 (00:14 -0400)]
Add xputs() to detect EOF on writes.

17 years agoFix "Need 1 arguments".
Rob Landley [Mon, 18 Jun 2007 04:12:43 +0000 (00:12 -0400)]
Fix "Need 1 arguments".

17 years agoVladimir Oleynik pointed out that va_start() twice in the same function
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.

17 years agoMake warning go away.
Rob Landley [Thu, 7 Jun 2007 19:20:26 +0000 (15:20 -0400)]
Make warning go away.

17 years agoWork around uClibc weirdness.
Rob Landley [Thu, 7 Jun 2007 19:19:44 +0000 (15:19 -0400)]
Work around uClibc weirdness.

17 years agoMore cross compiling infrastructure.
Rob Landley [Thu, 7 Jun 2007 19:19:00 +0000 (15:19 -0400)]
More cross compiling infrastructure.

17 years agoShow the compiler how to optimize out the option parsing logic when nothing
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.

17 years agoAllow applets with optarg string NULL to use toy.optargs[].
Rob Landley [Fri, 1 Jun 2007 17:41:24 +0000 (13:41 -0400)]
Allow applets with optarg string NULL to use toy.optargs[].

17 years agoHumor dash, which is broken.
Rob Landley [Fri, 1 Jun 2007 15:46:56 +0000 (11:46 -0400)]
Humor dash, which is broken.

17 years agoMake it easier to specify which compiler to use.
Rob Landley [Tue, 29 May 2007 20:26:47 +0000 (16:26 -0400)]
Make it easier to specify which compiler to use.

17 years agoAdd sleep.
Rob Landley [Thu, 17 May 2007 06:38:27 +0000 (02:38 -0400)]
Add sleep.

17 years agoLink to ars technica paedia broke because ars is now using Windows 2003 on
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.

17 years agoAdd true and false.
Rob Landley [Mon, 30 Apr 2007 04:08:48 +0000 (00:08 -0400)]
Add true and false.

17 years agoAdd readlink, xreadlink(), and change xrealloc() to not fight the stupid
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.

17 years agoAdd sync and an incomplete version of mdev.
Rob Landley [Mon, 23 Apr 2007 19:45:55 +0000 (15:45 -0400)]
Add sync and an incomplete version of mdev.

17 years agoAnd more mke2fs changes.
Rob Landley [Thu, 19 Apr 2007 01:41:38 +0000 (21:41 -0400)]
And more mke2fs changes.

17 years agoNext iteration of mke2fs development.
Rob Landley [Thu, 19 Apr 2007 01:39:46 +0000 (21:39 -0400)]
Next iteration of mke2fs development.

17 years agoApply uClibc's changes to this kconfig.
Rob Landley [Thu, 15 Mar 2007 17:59:06 +0000 (13:59 -0400)]
Apply uClibc's changes to this kconfig.

17 years agoMove project name to Makefile.
Rob Landley [Tue, 13 Mar 2007 02:54:02 +0000 (22:54 -0400)]
Move project name to Makefile.

17 years agoConvert HOST_CC to HOSTCC to be more like uClibc build.
Rob Landley [Tue, 13 Mar 2007 01:17:01 +0000 (21:17 -0400)]
Convert HOST_CC to HOSTCC to be more like uClibc build.

17 years agoChange help text: not just used for the kernel.
Rob Landley [Tue, 13 Mar 2007 01:10:06 +0000 (21:10 -0400)]
Change help text: not just used for the kernel.

17 years agoAdd web page background image and check in some half-finished ext2
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.

17 years agoFix oneit: <1 is only parsed at the start of the argument list.
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.

17 years agoCalculate block and inode usage in group table and bitmaps.
Rob Landley [Mon, 19 Feb 2007 06:44:28 +0000 (01:44 -0500)]
Calculate block and inode usage in group table and bitmaps.

17 years agoPrecalculate block and inode usage given a starting file tree. This compiles,
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.

17 years agoAn old test suite wrapper I wrote, cleaned up a bit and checked for copyrights.
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.

17 years agoAdd atolx() which understands extensions for kilobytes and megabytes and such.
Rob Landley [Sat, 17 Feb 2007 02:08:22 +0000 (21:08 -0500)]
Add atolx() which understands extensions for kilobytes and megabytes and such.

17 years agoCalculate st_nlink for each node, via a small but n^2 algorithm.
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.

17 years agoMacOS X has a defective sed with no -r.
Rob Landley [Tue, 13 Feb 2007 21:41:51 +0000 (16:41 -0500)]
MacOS X has a defective sed with no -r.

17 years agoMore work on mke2fs.c. Random in-progress snapshot...
Rob Landley [Tue, 13 Feb 2007 01:03:01 +0000 (20:03 -0500)]
More work on mke2fs.c.  Random in-progress snapshot...

17 years agoMake kconfig build on MacOS X. (Because it's there.)
Rob Landley [Tue, 13 Feb 2007 00:59:12 +0000 (19:59 -0500)]
Make kconfig build on MacOS X.  (Because it's there.)

17 years agoAdd parent pointer to dirtree, more work on mke2fs (populate dirtree, count
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).

17 years agoRename functions.c to lib.c. (Easier name to remember.)
Rob Landley [Mon, 5 Feb 2007 00:06:07 +0000 (19:06 -0500)]
Rename functions.c to lib.c.  (Easier name to remember.)

17 years agoAdd xstat(), read_dirtree(), and read_dirtree_node().
Rob Landley [Sat, 3 Feb 2007 19:11:26 +0000 (14:11 -0500)]
Add xstat(), read_dirtree(), and read_dirtree_node().

17 years agoTeach build to build only the toys/*.c selected in .config, and teach
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.

17 years agoTrim a redundant definition that confuses older compilers. (Regression testing
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.)

17 years agoToybox option parsing must stop at the first non-option argument.
Rob Landley [Thu, 1 Feb 2007 22:39:14 +0000 (17:39 -0500)]
Toybox option parsing must stop at the first non-option argument.

17 years agoMissing comma, and slight simplification in defconfig sed invocation.
Rob Landley [Wed, 31 Jan 2007 20:23:21 +0000 (15:23 -0500)]
Missing comma, and slight simplification in defconfig sed invocation.

17 years agoAdd "make defconfig". Modify global options to start with CONFIG_TOYBOX_.
Rob Landley [Wed, 31 Jan 2007 19:37:01 +0000 (14:37 -0500)]
Add "make defconfig".  Modify global options to start with CONFIG_TOYBOX_.

17 years agoAdd make install_flat.
Rob Landley [Wed, 31 Jan 2007 19:18:05 +0000 (14:18 -0500)]
Add make install_flat.

17 years agoSmall cleanup to prepare for cross-compile friendly make install.
Rob Landley [Wed, 31 Jan 2007 18:31:19 +0000 (13:31 -0500)]
Small cleanup to prepare for cross-compile friendly make install.

17 years agoAdded tag 0.0.2 for changeset d2e38cb0b1cd
Rob Landley [Wed, 31 Jan 2007 17:28:50 +0000 (12:28 -0500)]
Added tag 0.0.2 for changeset d2e38cb0b1cd

17 years agoI forgot to add count.c a while ago. (Memo to self: grab snapshots and build 0.0.2
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...)

17 years agoMove download->downloads (be consistent) and add a skeletal index bar along
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).

17 years agoThis creates an almost valid empty ext2 filesystem, except for a few superblock
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.)

17 years agomke2fs: Stopping for dinner. It compiles.
Rob Landley [Mon, 29 Jan 2007 22:44:28 +0000 (17:44 -0500)]
mke2fs: Stopping for dinner.  It compiles.

17 years agoMore work on mke2fs.
Rob Landley [Sun, 28 Jan 2007 09:54:01 +0000 (04:54 -0500)]
More work on mke2fs.

17 years agoMove superblock initialization to a function. Trim unused padding from
Rob Landley [Sun, 28 Jan 2007 01:43:26 +0000 (20:43 -0500)]
Move superblock initialization to a function.  Trim unused padding from
superblock.

17 years agoOne more field, minor shrinking, and start on block groups.
Rob Landley [Sat, 27 Jan 2007 20:10:48 +0000 (15:10 -0500)]
One more field, minor shrinking, and start on block groups.

17 years agoFilling out most of the ext2 superblock correctly now.
Rob Landley [Fri, 26 Jan 2007 15:48:35 +0000 (10:48 -0500)]
Filling out most of the ext2 superblock correctly now.

17 years agoUpdate args.c to implement numeric arguments.
Rob Landley [Thu, 25 Jan 2007 21:11:23 +0000 (16:11 -0500)]
Update args.c to implement numeric arguments.

17 years agoThe fdlength() ioctl apparently doesn't work on files (and the lseek trick
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.

17 years agoMore work on mke2fs.
Rob Landley [Wed, 24 Jan 2007 00:54:01 +0000 (19:54 -0500)]
More work on mke2fs.

17 years agoMore random progress on mke2fs. Nothing to see yet.
Rob Landley [Tue, 23 Jan 2007 18:20:38 +0000 (13:20 -0500)]
More random progress on mke2fs.  Nothing to see yet.

17 years agoAdd "yes" command.
Rob Landley [Sun, 21 Jan 2007 04:41:49 +0000 (23:41 -0500)]
Add "yes" command.

17 years agoTeach pwd to detect write errors.
Rob Landley [Sun, 21 Jan 2007 03:59:00 +0000 (22:59 -0500)]
Teach pwd to detect write errors.

17 years agoComment and whitespace cleanups
Rob Landley [Sun, 21 Jan 2007 03:41:29 +0000 (22:41 -0500)]
Comment and whitespace cleanups

17 years agoHelps to "hg add" echo.c. Also, implement \0123 escapes for -e.
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.

17 years agoAdd "echo". Has -n and -e (but not \0123 yet).
Rob Landley [Sat, 20 Jan 2007 23:04:20 +0000 (18:04 -0500)]
Add "echo".  Has -n and -e (but not \0123 yet).

17 years agoMerge a memset with an existing loop, tweak comments.
Rob Landley [Sat, 20 Jan 2007 17:30:19 +0000 (12:30 -0500)]
Merge a memset with an existing loop, tweak comments.

17 years agoMerge two similar loops and expand a comment.
Rob Landley [Fri, 19 Jan 2007 21:31:11 +0000 (16:31 -0500)]
Merge two similar loops and expand a comment.

17 years agoAnother suggestion from Manuel: Grab 2 bits instead of 1 inside a loop. Saves
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.

17 years agoAdd count command.
Rob Landley [Fri, 19 Jan 2007 03:01:04 +0000 (22:01 -0500)]
Add count command.

17 years agoSave 4 bytes of stack space.
Rob Landley [Fri, 19 Jan 2007 03:00:46 +0000 (22:00 -0500)]
Save 4 bytes of stack space.

17 years agoIn bunzip replace setjmp/longjmp handling with error_exit(), replace string
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().

17 years agoAdd fdprintf(). Remove reread() and rewrite() which handle -EINTR, which
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.)

17 years agoMore optimizations originally suggested by Manuel Nova: Use a sentinel value
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.

17 years agoMinor cleanups.
Rob Landley [Wed, 17 Jan 2007 23:24:17 +0000 (18:24 -0500)]
Minor cleanups.

17 years agoTurn a memmove into a while(), reducing running time by 3.5% in my tests.
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.

17 years agoAnother application of Manuel Nova's "math instead of ifs" trick. Saves 17b.
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.

17 years agoMinor optimization the compiler already does for us (according to bloatcheck),
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.

17 years agoFix off by one error in a test.
Rob Landley [Wed, 17 Jan 2007 21:31:23 +0000 (16:31 -0500)]
Fix off by one error in a test.

17 years agoComment and whitespace changes.
Rob Landley [Wed, 17 Jan 2007 18:58:08 +0000 (13:58 -0500)]
Comment and whitespace changes.

17 years agoMemmove is 11 bytes shorter than the unrolled loop, and Manuel Nova pointed
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).

17 years agoAdd a quick and dirt bzcat (stdin to stdout only for the moment) to test
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.

17 years agoAdd start of mke2fs/gene2fs, and some other stuff I've been working on.
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.

17 years agoxread() and xwrite() should take void *, not char *.
Rob Landley [Mon, 8 Jan 2007 09:26:01 +0000 (04:26 -0500)]
xread() and xwrite() should take void *, not char *.

17 years agoAdd xaccess()
Rob Landley [Mon, 8 Jan 2007 08:25:47 +0000 (03:25 -0500)]
Add xaccess()

17 years agoAdd rewrite(), writeall(),and xwrite() to match the read versions.
Rob Landley [Mon, 8 Jan 2007 07:49:39 +0000 (02:49 -0500)]
Add rewrite(), writeall(),and xwrite() to match the read versions.

17 years agoxopen() wants 2 arguments unless you're creating a file, in which case you
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.

17 years agoTwo unrelated additions I'm working on cross over in this file. In theory I
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.

17 years agoBlah. The sed filter's not right, I'll try again later.
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.

17 years agoRemove more warnings.
Rob Landley [Mon, 1 Jan 2007 00:10:24 +0000 (19:10 -0500)]
Remove more warnings.

17 years agoMake some of gcc 4.1's dumber warnings go away.
Rob Landley [Mon, 1 Jan 2007 00:09:42 +0000 (19:09 -0500)]
Make some of gcc 4.1's dumber warnings go away.

17 years agoComment tweak.
Rob Landley [Sun, 31 Dec 2006 03:01:47 +0000 (22:01 -0500)]
Comment tweak.

17 years agoNote the mailing list.
Rob Landley [Thu, 14 Dec 2006 20:19:34 +0000 (15:19 -0500)]
Note the mailing list.

17 years agoTeach clean and distclean to zap more files.
Rob Landley [Sun, 26 Nov 2006 23:54:03 +0000 (18:54 -0500)]
Teach clean and distclean to zap more files.

17 years agoAdd bloat-o-meter, make bloatcheck, and scripts/showasm.
Rob Landley [Sun, 26 Nov 2006 23:47:14 +0000 (18:47 -0500)]
Add bloat-o-meter, make bloatcheck, and scripts/showasm.

17 years agoTrawling through the archives: a broken test, an unnecessary memset, and a
Rob Landley [Sun, 26 Nov 2006 23:27:33 +0000 (18:27 -0500)]
Trawling through the archives: a broken test, an unnecessary memset, and a
unrolling a small memmove.

17 years agoMore whitespace/cowbell. (And change comment style to //.)
Rob Landley [Sun, 26 Nov 2006 22:19:18 +0000 (17:19 -0500)]
More whitespace/cowbell.  (And change comment style to //.)

17 years agoReduce flag duplication and make kconfig use HOST_CC.
Rob Landley [Sun, 26 Nov 2006 22:18:29 +0000 (17:18 -0500)]
Reduce flag duplication and make kconfig use HOST_CC.

17 years agoAdd my old micro-bunzip library. Needs some cleanup...
Rob Landley [Sat, 25 Nov 2006 21:50:00 +0000 (16:50 -0500)]
Add my old micro-bunzip library.  Needs some cleanup...

17 years agoLeftover from when I cleaned this up for another project.
Rob Landley [Sat, 25 Nov 2006 21:23:47 +0000 (16:23 -0500)]
Leftover from when I cleaned this up for another project.