Rob Landley [Tue, 15 Nov 2011 06:57:45 +0000 (00:57 -0600)]
Implement tty command.
Rob Landley [Mon, 14 Nov 2011 03:05:28 +0000 (21:05 -0600)]
xreadall() returns void... how does that even compile?
Rob Landley [Mon, 14 Nov 2011 02:02:47 +0000 (20:02 -0600)]
Prepare for license switch by (regrettably) removing Charlie Shepherd's code, at least until I can get in touch with him to to get permission to relicense it.
Charlie's @gentoo address bounces, and he hasn't replied to his @gmail address.
I welcome him as a contributor but can't _find_ him, so I can't ship his
basename, dirname, mkfifo, touch, and tty command code under a non-GPL license.
This essentially reverts the following commits:
147: implement touch
157: implement mkfifo
160: tweak touch
161: touch bugfix
162: touch -l
176: implement basename, dirname
179: implement tty
I also looked at these commits, which Charlie contributed to but which
don't need to be reverted. (Mostly whitespace changes and typo fixes,
plus some minor changes to build infrastructure that don't affect the
resulting code.)
*149: add null pointer check
*154: add .hgignore
*155: whitespace
*156: whitespace (the rest is by me)
*158: add toys/help.h to makefile dependencies
*159: fix typo in description
*164: typo in df (dereference pointer)
*180: .hgignore
*182: whitespace in error messages
*183: add headers to make dependencies
*244: comment and whitespace cleanups
*247: build tweak: error checking
*248: typo in comment
*249: .hgignore
*250: wrong word in comment
*251: whitespace
*252: whitespace
Several files in the "scripts" directory are still GPLv2 (kconfig,
bloat-o-meter, Robert Foglietta's bash version of config2help.sh), but
they're just build infrastructure that doesn't wind up in the resulting
binary. I plan to address this later on general principles, but it's
"mere aggregation" and not an immediate priority.)
Rob Landley [Sun, 22 May 2011 03:54:21 +0000 (22:54 -0500)]
The @@ -1,2 +3,4 @@ lines treat ,1 as implied, so the format isn't regular.
(Yes, this was designed by the FSF, what gave it away?)
Rob Landley [Sun, 28 Feb 2010 20:11:41 +0000 (14:11 -0600)]
For CFG_TOYBOX_DEBUG add -x option to patch to dump lots of debug output about the search and match.
Rob Landley [Sun, 28 Feb 2010 18:16:43 +0000 (12:16 -0600)]
One more little tweak to patch: unrecognized date format != delete file.
Rob Landley [Wed, 6 Jan 2010 11:29:53 +0000 (05:29 -0600)]
Add command "nice".
Rob Landley [Wed, 6 Jan 2010 11:29:17 +0000 (05:29 -0600)]
Make toy_init() reentrant, or else xexec() has funky errors.
Rob Landley [Wed, 6 Jan 2010 11:28:32 +0000 (05:28 -0600)]
Shut up even MORE gcc/glibc spurious warnings.
Rob Landley [Tue, 5 Jan 2010 19:17:47 +0000 (13:17 -0600)]
Add setsid.
Rob Landley [Tue, 5 Jan 2010 18:17:05 +0000 (12:17 -0600)]
Add TOYBOX_SUID.
Rob Landley [Tue, 5 Jan 2010 16:48:32 +0000 (10:48 -0600)]
Correct return types of xstrdup() and xstrndup()
Rob Landley [Tue, 5 Jan 2010 16:46:16 +0000 (10:46 -0600)]
menuconfig indentation should be handled by dependencies, not whitespace in description.
Rob Landley [Tue, 5 Jan 2010 16:45:16 +0000 (10:45 -0600)]
Use fdlength() instead of lseek(SEEK_END).
Rob Landley [Tue, 5 Jan 2010 16:43:36 +0000 (10:43 -0600)]
Typo fix in comment.
Rob Landley [Tue, 5 Jan 2010 16:41:52 +0000 (10:41 -0600)]
Minor web page updates (put header/footer back, add a few <hr> tags).
Rob Landley [Sun, 13 Dec 2009 06:12:26 +0000 (00:12 -0600)]
The "strip" in gcc 4.4 doesn't set the executable bit on its output, despite what SUSv4 says it should do, so cope with buggy FSF tools.
Rob Landley [Sun, 13 Dec 2009 06:11:30 +0000 (00:11 -0600)]
Let the minicom script take the speed as an optional second argument.
Rob Landley [Mon, 30 Nov 2009 04:14:06 +0000 (22:14 -0600)]
Fix reversed patch detection logic, remove unused variables, rename variables, better comments.
Rob Landley [Fri, 23 Oct 2009 22:42:13 +0000 (17:42 -0500)]
Add .tar.bz2 to tarball links.
Rob Landley [Thu, 1 Oct 2009 04:30:26 +0000 (23:30 -0500)]
Remove header/footer includes to prepare for css instead.
Rob Landley [Fri, 7 Aug 2009 01:39:28 +0000 (20:39 -0500)]
Make a warning go away on Fedora 11.
Rob Landley [Fri, 7 Aug 2009 01:38:24 +0000 (20:38 -0500)]
Unconditionally add the $CROSS_COMPILE prefix to $CC, even if it's already set.
Rob Landley [Fri, 5 Jun 2009 20:58:48 +0000 (15:58 -0500)]
Fix broken links spotted by Cedric Duval.
Rob Landley [Fri, 17 Apr 2009 10:35:11 +0000 (05:35 -0500)]
Added tag 0.0.9.2 for changeset
f142d02036b6
Rob Landley [Fri, 17 Apr 2009 10:34:59 +0000 (05:34 -0500)]
Announce 0.0.9.2 bugfix release.
Rob Landley [Thu, 16 Apr 2009 22:03:38 +0000 (17:03 -0500)]
Fix bug spotted by Jean-Christphe Dubois: reserve space for null terminator.
Rob Landley [Mon, 30 Mar 2009 02:55:27 +0000 (21:55 -0500)]
Announce 0.0.9.1 bugfix release.
Rob Landley [Mon, 30 Mar 2009 02:54:01 +0000 (21:54 -0500)]
Added tag 0.0.9.1 for changeset
add8b512f41a
Rob Landley [Sun, 29 Mar 2009 06:08:34 +0000 (01:08 -0500)]
Another patch corner case.
Rob Landley [Sun, 29 Mar 2009 04:25:47 +0000 (23:25 -0500)]
Old news.html update, but never actually checked in.
Rob Landley [Sun, 29 Mar 2009 04:24:42 +0000 (23:24 -0500)]
Regenerate Config.in when toys/*.c changes.
Rob Landley [Sun, 29 Mar 2009 02:33:03 +0000 (21:33 -0500)]
Rearchitect patch to handle more darn corner cases.
Rob Landley [Fri, 30 Jan 2009 22:17:35 +0000 (16:17 -0600)]
Convert non-bool config values (such as int) into config.h entries.
Rob Landley [Fri, 30 Jan 2009 22:10:55 +0000 (16:10 -0600)]
Re-wordwrap and reorder the .config->config.h sed script. (No real changes, just one command/line in a clearer order.)
Rob Landley [Sun, 25 Jan 2009 22:59:14 +0000 (16:59 -0600)]
Comment tweaks.
Rob Landley [Sun, 25 Jan 2009 22:34:46 +0000 (16:34 -0600)]
Fix thinko.
Rob Landley [Tue, 20 Jan 2009 04:59:21 +0000 (22:59 -0600)]
Announce 0.0.8 release.
Rob Landley [Tue, 20 Jan 2009 04:49:17 +0000 (22:49 -0600)]
Added tag 0.0.8 for changeset
86e2bdb2ad66
Rob Landley [Tue, 20 Jan 2009 04:08:01 +0000 (22:08 -0600)]
Fix typo.
Rob Landley [Sun, 18 Jan 2009 22:19:25 +0000 (16:19 -0600)]
Add mkswap.
Rob Landley [Thu, 15 Jan 2009 02:41:37 +0000 (20:41 -0600)]
Hello shouldn't be enabled in defconfig.
Rob Landley [Mon, 5 Jan 2009 07:47:48 +0000 (01:47 -0600)]
Accidentally changed cksum behavior with the -P flag, toggle its meaning.
Rob Landley [Mon, 5 Jan 2009 07:05:43 +0000 (01:05 -0600)]
Add -N, -I, -L, and -P options to cksum.
Rob Landley [Mon, 5 Jan 2009 04:45:03 +0000 (22:45 -0600)]
Add -F option to cksum.
Rob Landley [Sun, 4 Jan 2009 19:27:36 +0000 (13:27 -0600)]
Make patch work with -R when deleting files.
Rob Landley [Sun, 4 Jan 2009 00:15:18 +0000 (18:15 -0600)]
Check in crc_init needed by cksum. (Oops.)
Rob Landley [Sat, 27 Dec 2008 11:37:47 +0000 (05:37 -0600)]
Add cksum.
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.)
Rob Landley [Tue, 16 Dec 2008 07:48:27 +0000 (01:48 -0600)]
Two bugfixes for deleting files (-p and message)
Rob Landley [Sun, 14 Dec 2008 08:12:07 +0000 (02:12 -0600)]
Teach oneit to reboot on exit more reliably.
Rob Landley [Sun, 14 Dec 2008 07:08:37 +0000 (01:08 -0600)]
Shut up some new aggressively stupid warnings gcc 4.3 produces.
Rob Landley [Mon, 8 Dec 2008 06:16:07 +0000 (00:16 -0600)]
Fix netcat -f
Rob Landley [Mon, 1 Dec 2008 02:42:16 +0000 (20:42 -0600)]
Fix typo.
Rob Landley [Thu, 27 Nov 2008 13:31:34 +0000 (07:31 -0600)]
Add uname
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".
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.
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.
Rob Landley [Sun, 16 Nov 2008 07:57:06 +0000 (01:57 -0600)]
Second attempt at making netcat -l work properly.
Rob Landley [Sat, 15 Nov 2008 11:17:23 +0000 (05:17 -0600)]
Add netcat server mode, -l, -L, and -t.
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.)
Rob Landley [Wed, 12 Nov 2008 19:56:49 +0000 (13:56 -0600)]
Announce 0.0.7.
Rob Landley [Wed, 12 Nov 2008 19:38:12 +0000 (13:38 -0600)]
Added tag 0.0.7 for changeset
db86f4df58b9
Rob Landley [Wed, 12 Nov 2008 19:31:30 +0000 (13:31 -0600)]
Added tag 0.0.6 for changeset
6e65eefc37e9
Rob Landley [Sat, 25 Oct 2008 04:19:38 +0000 (23:19 -0500)]
Tighten up chvt, save a few bytes.
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.
Rob Landley [Thu, 28 Aug 2008 22:32:05 +0000 (17:32 -0500)]
Fix giant glaring thinko.
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.
Rob Landley [Fri, 15 Aug 2008 19:14:10 +0000 (14:14 -0500)]
Chroot should stop option parsing at the first non-option argument.
Rob Landley [Fri, 18 Jul 2008 13:43:18 +0000 (08:43 -0500)]
Tweak from Roberto Foglietta.
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.
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.
Rob Landley [Fri, 4 Jul 2008 00:19:00 +0000 (19:19 -0500)]
Add "tee" command.
Rob Landley [Fri, 4 Jul 2008 00:16:38 +0000 (19:16 -0500)]
Finish bzcat.
Rob Landley [Fri, 4 Jul 2008 00:14:23 +0000 (19:14 -0500)]
Teach option parsing logic that ^ means stop parsing after this option.
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.
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).
Rob Landley [Sun, 22 Jun 2008 09:18:39 +0000 (04:18 -0500)]
Basic tests for sort. Needs more...
Rob Landley [Sun, 22 Jun 2008 09:15:36 +0000 (04:15 -0500)]
Only apply global flags to fallback sort.
Rob Landley [Sun, 22 Jun 2008 05:57:44 +0000 (00:57 -0500)]
Cosmetic tweak, only show skipped tests when VERBOSE set.
Rob Landley [Sun, 22 Jun 2008 05:57:15 +0000 (00:57 -0500)]
Adjust "optional" function (gen_config.h became generated/config.h).
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...
Rob Landley [Tue, 17 Jun 2008 00:27:35 +0000 (19:27 -0500)]
Assemble '*' repeated argument list in order. Also implement '@' counter.
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.)
Rob Landley [Sat, 17 May 2008 22:54:21 +0000 (17:54 -0500)]
Add seq, and tests for it.
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).
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.
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.
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...)
Rob Landley [Mon, 5 May 2008 00:44:39 +0000 (19:44 -0500)]
More tweaks to rmdir.test and the testing infrastructure.
Rob Landley [Sun, 4 May 2008 23:59:16 +0000 (18:59 -0500)]
Add rmdir and test for it.
Rob Landley [Sun, 4 May 2008 23:52:29 +0000 (18:52 -0500)]
Fluffier error message.
Rob Landley [Sun, 4 May 2008 21:20:15 +0000 (16:20 -0500)]
Try to convince make to be less stupid about rebuilding.
Rob Landley [Sun, 4 May 2008 21:03:10 +0000 (16:03 -0500)]
Teach run-all-tests mode to only test enabled commands.
Rob Landley [Sun, 4 May 2008 21:00:52 +0000 (16:00 -0500)]
Remove extraneous output.
Rob Landley [Sun, 4 May 2008 20:35:04 +0000 (15:35 -0500)]
Very simple cat tests, with more test ideas commented out.
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.
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.
Rob Landley [Thu, 10 Apr 2008 03:01:20 +0000 (22:01 -0500)]
Add -v to cp.
Rob Landley [Wed, 9 Apr 2008 05:22:04 +0000 (00:22 -0500)]
Thinko in cat.