platform/upstream/toybox.git
15 years agoComment tweaks.
Rob Landley [Sun, 25 Jan 2009 22:59:14 +0000 (16:59 -0600)]
Comment tweaks.

15 years agoFix thinko.
Rob Landley [Sun, 25 Jan 2009 22:34:46 +0000 (16:34 -0600)]
Fix thinko.

15 years agoAnnounce 0.0.8 release.
Rob Landley [Tue, 20 Jan 2009 04:59:21 +0000 (22:59 -0600)]
Announce 0.0.8 release.

15 years agoAdded tag 0.0.8 for changeset 86e2bdb2ad66
Rob Landley [Tue, 20 Jan 2009 04:49:17 +0000 (22:49 -0600)]
Added tag 0.0.8 for changeset 86e2bdb2ad66

15 years agoFix typo. 0.0.8
Rob Landley [Tue, 20 Jan 2009 04:08:01 +0000 (22:08 -0600)]
Fix typo.

15 years agoAdd mkswap.
Rob Landley [Sun, 18 Jan 2009 22:19:25 +0000 (16:19 -0600)]
Add mkswap.

15 years agoHello shouldn't be enabled in defconfig.
Rob Landley [Thu, 15 Jan 2009 02:41:37 +0000 (20:41 -0600)]
Hello shouldn't be enabled in defconfig.

15 years agoAccidentally changed cksum behavior with the -P flag, toggle its meaning.
Rob Landley [Mon, 5 Jan 2009 07:47:48 +0000 (01:47 -0600)]
Accidentally changed cksum behavior with the -P flag, toggle its meaning.

15 years agoAdd -N, -I, -L, and -P options to cksum.
Rob Landley [Mon, 5 Jan 2009 07:05:43 +0000 (01:05 -0600)]
Add -N, -I, -L, and -P options to cksum.

15 years agoAdd -F option to cksum.
Rob Landley [Mon, 5 Jan 2009 04:45:03 +0000 (22:45 -0600)]
Add -F option to cksum.

15 years agoMake patch work with -R when deleting files.
Rob Landley [Sun, 4 Jan 2009 19:27:36 +0000 (13:27 -0600)]
Make patch work with -R when deleting files.

15 years agoCheck in crc_init needed by cksum. (Oops.)
Rob Landley [Sun, 4 Jan 2009 00:15:18 +0000 (18:15 -0600)]
Check in crc_init needed by cksum.  (Oops.)

15 years agoAdd cksum.
Rob Landley [Sat, 27 Dec 2008 11:37:47 +0000 (05:37 -0600)]
Add cksum.

15 years agoFix the old dead link about mepis with one from linux.com. (Thanks Christian Holtje.)
Rob Landley [Thu, 18 Dec 2008 22:19:43 +0000 (16:19 -0600)]
Fix the old dead link about mepis with one from linux.com.  (Thanks Christian Holtje.)

15 years agoTwo bugfixes for deleting files (-p and message)
Rob Landley [Tue, 16 Dec 2008 07:48:27 +0000 (01:48 -0600)]
Two bugfixes for deleting files (-p and message)

15 years agoTeach oneit to reboot on exit more reliably.
Rob Landley [Sun, 14 Dec 2008 08:12:07 +0000 (02:12 -0600)]
Teach oneit to reboot on exit more reliably.

15 years agoShut up some new aggressively stupid warnings gcc 4.3 produces.
Rob Landley [Sun, 14 Dec 2008 07:08:37 +0000 (01:08 -0600)]
Shut up some new aggressively stupid warnings gcc 4.3 produces.

15 years agoFix netcat -f
Rob Landley [Mon, 8 Dec 2008 06:16:07 +0000 (00:16 -0600)]
Fix netcat -f

15 years agoFix typo.
Rob Landley [Mon, 1 Dec 2008 02:42:16 +0000 (20:42 -0600)]
Fix typo.

15 years agoAdd uname
Rob Landley [Thu, 27 Nov 2008 13:31:34 +0000 (07:31 -0600)]
Add uname

15 years agoThe epoch can also show up as 1970-01-01 (depending on timezone), so treat any year...
Rob Landley [Wed, 19 Nov 2008 04:22:18 +0000 (22:22 -0600)]
The epoch can also show up as 1970-01-01 (depending on timezone), so treat any year >0 and <= 1970 as meaning "file does not exist".

15 years agoMore than 4k of input can be queued up in a pipe, so loop needs to continue reading...
Rob Landley [Wed, 19 Nov 2008 04:17:43 +0000 (22:17 -0600)]
More than 4k of input can be queued up in a pipe, so loop needs to continue reading until POLLIN is exhausted before acknowledging POLLHUP.

15 years agoShell $(netcat) won't return unless child's stdin/stdout/stderr are closed.
Rob Landley [Sun, 16 Nov 2008 08:41:04 +0000 (02:41 -0600)]
Shell $(netcat) won't return unless child's stdin/stdout/stderr are closed.

15 years agoSecond attempt at making netcat -l work properly.
Rob Landley [Sun, 16 Nov 2008 07:57:06 +0000 (01:57 -0600)]
Second attempt at making netcat -l work properly.

15 years agoAdd netcat server mode, -l, -L, and -t.
Rob Landley [Sat, 15 Nov 2008 11:17:23 +0000 (05:17 -0600)]
Add netcat server mode, -l, -L, and -t.

15 years agoWork around a reiserfs bug. (One line change, switch from looking at broken struct...
Rob Landley [Thu, 13 Nov 2008 00:01:35 +0000 (18:01 -0600)]
Work around a reiserfs bug.  (One line change, switch from looking at broken struct dirent->dt_type to looking at stat() output.  The rest are unrelated variable renames.)

15 years agoAnnounce 0.0.7.
Rob Landley [Wed, 12 Nov 2008 19:56:49 +0000 (13:56 -0600)]
Announce 0.0.7.

15 years agoAdded tag 0.0.7 for changeset db86f4df58b9
Rob Landley [Wed, 12 Nov 2008 19:38:12 +0000 (13:38 -0600)]
Added tag 0.0.7 for changeset db86f4df58b9

15 years agoAdded tag 0.0.6 for changeset 6e65eefc37e9 0.0.7
Rob Landley [Wed, 12 Nov 2008 19:31:30 +0000 (13:31 -0600)]
Added tag 0.0.6 for changeset 6e65eefc37e9

15 years agoTighten up chvt, save a few bytes.
Rob Landley [Sat, 25 Oct 2008 04:19:38 +0000 (23:19 -0500)]
Tighten up chvt, save a few bytes.

15 years agoUpgrade patch to detect hunks that start after a false start.
Rob Landley [Thu, 23 Oct 2008 21:44:30 +0000 (16:44 -0500)]
Upgrade patch to detect hunks that start after a false start.

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.

15 years agoFix giant glaring thinko.
Rob Landley [Thu, 28 Aug 2008 22:32:05 +0000 (17:32 -0500)]
Fix giant glaring thinko.

15 years agoAn error from an input file isn't fatal, keep reading remaining input files.
Rob Landley [Fri, 15 Aug 2008 19:16:53 +0000 (14:16 -0500)]
An error from an input file isn't fatal, keep reading remaining input files.

15 years agoChroot should stop option parsing at the first non-option argument.
Rob Landley [Fri, 15 Aug 2008 19:14:10 +0000 (14:14 -0500)]
Chroot should stop option parsing at the first non-option argument.

16 years agoTweak from Roberto Foglietta.
Rob Landley [Fri, 18 Jul 2008 13:43:18 +0000 (08:43 -0500)]
Tweak from Roberto Foglietta.

16 years agoRoberto Foglietta pointed out that readall() needs fdlength() to restore
Rob Landley [Fri, 18 Jul 2008 10:43:44 +0000 (05:43 -0500)]
Roberto Foglietta pointed out that readall() needs fdlength() to restore
the original position before exiting.

16 years agoBug spotted by Roberto Foglietta: at EOF readall() should return count, not len.
Rob Landley [Fri, 18 Jul 2008 09:15:59 +0000 (04:15 -0500)]
Bug spotted by Roberto Foglietta: at EOF readall() should return count, not len.

16 years agoAdd "tee" command.
Rob Landley [Fri, 4 Jul 2008 00:19:00 +0000 (19:19 -0500)]
Add "tee" command.

16 years agoFinish bzcat.
Rob Landley [Fri, 4 Jul 2008 00:16:38 +0000 (19:16 -0500)]
Finish bzcat.

16 years agoTeach option parsing logic that ^ means stop parsing after this option.
Rob Landley [Fri, 4 Jul 2008 00:14:23 +0000 (19:14 -0500)]
Teach option parsing logic that ^ means stop parsing after this option.

16 years agoA pathological case of huffman coding that uses 8 bits to code each of 256
Rob Landley [Sat, 28 Jun 2008 06:07:34 +0000 (01:07 -0500)]
A pathological case of huffman coding that uses 8 bits to code each of 256
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.

16 years agoOption parsing: stopearly is now a ^ prefix (not +), and an option string with
Rob Landley [Fri, 27 Jun 2008 03:48:43 +0000 (22:48 -0500)]
Option parsing: stopearly is now a ^ prefix (not +), and an option string with
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).

16 years agoBasic tests for sort. Needs more...
Rob Landley [Sun, 22 Jun 2008 09:18:39 +0000 (04:18 -0500)]
Basic tests for sort.  Needs more...

16 years agoOnly apply global flags to fallback sort.
Rob Landley [Sun, 22 Jun 2008 09:15:36 +0000 (04:15 -0500)]
Only apply global flags to fallback sort.

16 years agoCosmetic tweak, only show skipped tests when VERBOSE set.
Rob Landley [Sun, 22 Jun 2008 05:57:44 +0000 (00:57 -0500)]
Cosmetic tweak, only show skipped tests when VERBOSE set.

16 years agoAdjust "optional" function (gen_config.h became generated/config.h).
Rob Landley [Sun, 22 Jun 2008 05:57:15 +0000 (00:57 -0500)]
Adjust "optional" function (gen_config.h became generated/config.h).

16 years agoMost of an susv3 compliant sort implementation (loosely based on the one I wrote...
Rob Landley [Thu, 19 Jun 2008 00:31:32 +0000 (19:31 -0500)]
Most of an susv3 compliant sort implementation (loosely based on the one I wrote back in 2005).
Still a few bugs.  Needs a _biiiiig_ test suite...

16 years agoAssemble '*' repeated argument list in order. Also implement '@' counter.
Rob Landley [Tue, 17 Jun 2008 00:27:35 +0000 (19:27 -0500)]
Assemble '*' repeated argument list in order.  Also implement '@' counter.

16 years agoAnnounce 0.0.6 release. (A bit early, so the next FWL release can use it.) 0.0.6
Rob Landley [Mon, 26 May 2008 21:07:16 +0000 (16:07 -0500)]
Announce 0.0.6 release.  (A bit early, so the next FWL release can use it.)

16 years agoAdd seq, and tests for it.
Rob Landley [Sat, 17 May 2008 22:54:21 +0000 (17:54 -0500)]
Add seq, and tests for it.

16 years agoFix which (the meaning of -a was reversed, and it was finding the _last_ hit).
Rob Landley [Sat, 17 May 2008 22:52:51 +0000 (17:52 -0500)]
Fix which (the meaning of -a was reversed, and it was finding the _last_ hit).

16 years agoFix command line option parsing so "echo -xen" actually prints "-xen". Add
Rob Landley [Sat, 17 May 2008 22:13:26 +0000 (17:13 -0500)]
Fix command line option parsing so "echo -xen" actually prints "-xen".  Add
echo.test while I'm at it.

16 years agoSort was including the trailing comma and getting the order wrong.
Rob Landley [Mon, 12 May 2008 06:23:19 +0000 (01:23 -0500)]
Sort was including the trailing comma and getting the order wrong.
(Specifically, it was comparing "sh," with "sha1sum," and putting sha1sum first
in generated/newtoys.h so the binary search wasn't finding sha1sum.  Alas, you
can't feed separate beginning and ending delimiters to "sort -t".  The fix is
to copy the appropriate field out with sed, duplicate it at the start of the
string where it's easy to compare, and then remove it again with a second
sed after the sort.

16 years agoUpdate mdev to work around the newest sysfs api breakage in the 2.6.25 kernel.
Rob Landley [Mon, 12 May 2008 05:52:27 +0000 (00:52 -0500)]
Update mdev to work around the newest sysfs api breakage in the 2.6.25 kernel.
(Yeah, I know sysfs hasn't actually got an API, but I like to pretend...)

16 years agoMore tweaks to rmdir.test and the testing infrastructure.
Rob Landley [Mon, 5 May 2008 00:44:39 +0000 (19:44 -0500)]
More tweaks to rmdir.test and the testing infrastructure.

16 years agoAdd rmdir and test for it.
Rob Landley [Sun, 4 May 2008 23:59:16 +0000 (18:59 -0500)]
Add rmdir and test for it.

16 years agoFluffier error message.
Rob Landley [Sun, 4 May 2008 23:52:29 +0000 (18:52 -0500)]
Fluffier error message.

16 years agoTry to convince make to be less stupid about rebuilding.
Rob Landley [Sun, 4 May 2008 21:20:15 +0000 (16:20 -0500)]
Try to convince make to be less stupid about rebuilding.

16 years agoTeach run-all-tests mode to only test enabled commands.
Rob Landley [Sun, 4 May 2008 21:03:10 +0000 (16:03 -0500)]
Teach run-all-tests mode to only test enabled commands.

16 years agoRemove extraneous output.
Rob Landley [Sun, 4 May 2008 21:00:52 +0000 (16:00 -0500)]
Remove extraneous output.

16 years agoVery simple cat tests, with more test ideas commented out.
Rob Landley [Sun, 4 May 2008 20:35:04 +0000 (15:35 -0500)]
Very simple cat tests, with more test ideas commented out.

16 years agoTeach get_rawline() to continue until a configurable char, and xstrndup()
Rob Landley [Sun, 13 Apr 2008 05:29:00 +0000 (00:29 -0500)]
Teach get_rawline() to continue until a configurable char, and xstrndup()
shouldn't die when it's told to chop out a subsection of a string.

16 years agoWe don't open a destination filehandle for symlinks, so xclose() would barf.
Rob Landley [Thu, 10 Apr 2008 03:24:36 +0000 (22:24 -0500)]
We don't open a destination filehandle for symlinks, so xclose() would barf.

16 years agoAdd -v to cp.
Rob Landley [Thu, 10 Apr 2008 03:01:20 +0000 (22:01 -0500)]
Add -v to cp.

16 years agoThinko in cat.
Rob Landley [Wed, 9 Apr 2008 05:22:04 +0000 (00:22 -0500)]
Thinko in cat.

16 years agoTeach patch that a file dated 1969-12-31 means doesn't exist, and to fail
Rob Landley [Wed, 9 Apr 2008 03:59:18 +0000 (22:59 -0500)]
Teach patch that a file dated 1969-12-31 means doesn't exist, and to fail
if a create isn't exclusive.

16 years agoSpent the five minutes to implement "cat".
Rob Landley [Fri, 4 Apr 2008 17:19:21 +0000 (12:19 -0500)]
Spent the five minutes to implement "cat".

16 years agoAdded tag 0.0.5 for changeset 09ecbdf58c87
Rob Landley [Sat, 29 Mar 2008 22:27:35 +0000 (17:27 -0500)]
Added tag 0.0.5 for changeset 09ecbdf58c87

16 years agoNew release coming. 0.0.5
Rob Landley [Sat, 29 Mar 2008 22:27:16 +0000 (17:27 -0500)]
New release coming.

16 years agoWow is make stupid. (Ahem, full of "magic, implicit rules". Which are stupid.)
Rob Landley [Sat, 29 Mar 2008 22:25:28 +0000 (17:25 -0500)]
Wow is make stupid.  (Ahem, full of "magic, implicit rules".  Which are stupid.)
The directory scripts/test is not related to the script scripts/test.sh.  If
the shell script is newer than the directory, IT DOESN'T MATTER.

16 years agoUpdate help, move test.sh to scripts, and fix "make test" to call right script.
Rob Landley [Fri, 28 Mar 2008 05:44:44 +0000 (00:44 -0500)]
Update help, move test.sh to scripts, and fix "make test" to call right script.

16 years agoAdd uninstall and uninstall_flat.
Rob Landley [Fri, 28 Mar 2008 05:40:57 +0000 (00:40 -0500)]
Add uninstall and uninstall_flat.

16 years agoAdd install target, and make install_flat use scripts/install.sh
Rob Landley [Fri, 28 Mar 2008 05:09:31 +0000 (00:09 -0500)]
Add install target, and make install_flat use scripts/install.sh

16 years agoAnother cp -r fix, another test case...
Rob Landley [Wed, 26 Mar 2008 05:54:56 +0000 (00:54 -0500)]
Another cp -r fix, another test case...

16 years agoUpdate cp -r to work better, add relevant tests to test suite.
Rob Landley [Tue, 25 Mar 2008 22:09:40 +0000 (17:09 -0500)]
Update cp -r to work better, add relevant tests to test suite.

16 years agoIf we don't remember to closedir(), the leaked filehandles add up.
Rob Landley [Mon, 24 Mar 2008 10:34:58 +0000 (05:34 -0500)]
If we don't remember to closedir(), the leaked filehandles add up.

16 years agoFix -r logic, it needs both source and dest paths explicitly stated.
Rob Landley [Mon, 24 Mar 2008 10:14:37 +0000 (05:14 -0500)]
Fix -r logic, it needs both source and dest paths explicitly stated.

16 years agoEnabling debugging should not change behavior. Oops.
Rob Landley [Mon, 24 Mar 2008 05:32:25 +0000 (00:32 -0500)]
Enabling debugging should not change behavior.  Oops.

16 years agoMake cp pass the rest of its test suite. Needs a bigger test suite (-lsHPLi
Rob Landley [Sun, 24 Feb 2008 09:48:06 +0000 (03:48 -0600)]
Make cp pass the rest of its test suite.  Needs a bigger test suite (-lsHPLi
and maybe -xviu), most of which still need to be implemented.

16 years agoAdd an install script, with --long --symlink --force and --uninstall options.
Rob Landley [Sun, 24 Feb 2008 07:34:01 +0000 (01:34 -0600)]
Add an install script, with --long --symlink --force and --uninstall options.

16 years agoDon't delete testdir after running test.sh. Add it to make clean instead.
Rob Landley [Sat, 23 Feb 2008 21:02:11 +0000 (15:02 -0600)]
Don't delete testdir after running test.sh.  Add it to make clean instead.

16 years agoRemove some commented out code.
Rob Landley [Sat, 23 Feb 2008 20:59:22 +0000 (14:59 -0600)]
Remove some commented out code.

16 years agoMake cp pass most of its test suite. Still need to add symlink support.
Rob Landley [Thu, 21 Feb 2008 10:44:42 +0000 (04:44 -0600)]
Make cp pass most of its test suite.  Still need to add symlink support.

16 years agoAdd first pass at cp, totally untested, unlikely to work yet. :)
Rob Landley [Wed, 20 Feb 2008 07:47:56 +0000 (01:47 -0600)]
Add first pass at cp, totally untested, unlikely to work yet. :)

16 years agoAdd enable/disable/exclude logic, update docs.
Rob Landley [Mon, 18 Feb 2008 09:32:17 +0000 (03:32 -0600)]
Add enable/disable/exclude logic, update docs.

16 years agoYet more build dependency tweaks...
Rob Landley [Sun, 17 Feb 2008 22:19:52 +0000 (16:19 -0600)]
Yet more build dependency tweaks...

16 years agoStart of tests for cp.
Rob Landley [Sun, 17 Feb 2008 02:00:11 +0000 (20:00 -0600)]
Start of tests for cp.

16 years agoDirtree needs to use lstat(), not stat. And failure should probably be a
Rob Landley [Sun, 17 Feb 2008 01:41:20 +0000 (19:41 -0600)]
Dirtree needs to use lstat(), not stat.  And failure should probably be a
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).

16 years agoAdd TOYFLAG_UMASK.
Rob Landley [Wed, 13 Feb 2008 01:05:44 +0000 (19:05 -0600)]
Add TOYFLAG_UMASK.

16 years agoPartial update. Needs more work.
Rob Landley [Wed, 13 Feb 2008 00:41:34 +0000 (18:41 -0600)]
Partial update.  Needs more work.

16 years agoAdd toys.optc, an argv-style count for toys.optargs.
Rob Landley [Tue, 12 Feb 2008 23:36:13 +0000 (17:36 -0600)]
Add toys.optc, an argv-style count for toys.optargs.

16 years agoFix up (admittedly stubby) mdev so it's actually hooked up to the build.
Rob Landley [Tue, 12 Feb 2008 23:35:10 +0000 (17:35 -0600)]
Fix up (admittedly stubby) mdev so it's actually hooked up to the build.

16 years agoScript from Roberto Foglietta to do config2help in bash instead of python.
Rob Landley [Wed, 30 Jan 2008 23:05:37 +0000 (17:05 -0600)]
Script from Roberto Foglietta to do config2help in bash instead of python.

16 years agoAdd spaces after some commas (from Charlie Shepherd).
Rob Landley [Sun, 27 Jan 2008 22:22:41 +0000 (16:22 -0600)]
Add spaces after some commas (from Charlie Shepherd).

16 years agoRemove extra newlines on error_paths
Charlie Shepherd [Fri, 25 Jan 2008 12:54:31 +0000 (12:54 +0000)]
Remove extra newlines on error_paths

16 years agoFix filename in header
Charlie Shepherd [Fri, 25 Jan 2008 12:36:24 +0000 (12:36 +0000)]
Fix filename in header

16 years agoUpdate .hgignore to cover new generated/ directory
Charlie Shepherd [Fri, 25 Jan 2008 12:34:18 +0000 (12:34 +0000)]
Update .hgignore to cover new generated/ directory

16 years agoFix copyright name
Charlie Shepherd [Fri, 25 Jan 2008 12:33:33 +0000 (12:33 +0000)]
Fix copyright name

16 years agoDie on compilation or stripping failure
Charlie Shepherd [Fri, 25 Jan 2008 14:44:01 +0000 (14:44 +0000)]
Die on compilation or stripping failure

16 years agoHave chvt print an error message (and exit with error) when it fails.
Rob Landley [Sun, 27 Jan 2008 21:26:32 +0000 (15:26 -0600)]
Have chvt print an error message (and exit with error) when it fails.