Rob Landley [Wed, 23 Jan 2008 01:20:06 +0000 (19:20 -0600)]
Might as well make the dependencies slightly more paranoid.
(The only reason to have dependencies at all is so "make install" doesn't
trigger a rebuild. A rebuild is always a build all anyway.)
Rob Landley [Tue, 22 Jan 2008 23:38:55 +0000 (17:38 -0600)]
Sort newtoys.h by command name, not by USE_ macro.
Rob Landley [Tue, 22 Jan 2008 21:33:50 +0000 (15:33 -0600)]
Fix crash when running unknown command via symlink.
(The error message was trying to print an uninitialied field. Oops.)
Rob Landley [Mon, 21 Jan 2008 20:47:08 +0000 (14:47 -0600)]
Hit makefile dependencies so install step doesn't rebuild toybox.
Rob Landley [Mon, 21 Jan 2008 01:00:16 +0000 (19:00 -0600)]
Fluff out hello.c to supply more example code as a skeleton for new commands,
and update a chunk of code.html (much more to do there).
Rob Landley [Sun, 20 Jan 2008 23:34:53 +0000 (17:34 -0600)]
Move dlist_add() to lib/llist.c
Rob Landley [Sun, 20 Jan 2008 23:25:44 +0000 (17:25 -0600)]
Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()
macros in each C file, and making generated/globals.h from that. Rename
"toy" to "this" along the way to avoid toy/toys confusion.
Rob Landley [Sat, 19 Jan 2008 23:55:45 +0000 (17:55 -0600)]
Minor cleanup: move mke2fs options into mke2fs.c.
Rob Landley [Sat, 19 Jan 2008 23:49:51 +0000 (17:49 -0600)]
More documentation for generated/* files.
Rob Landley [Sat, 19 Jan 2008 23:43:27 +0000 (17:43 -0600)]
Move NEWTOY() list from end of toylist.h to generated/newtoys.h.
Rob Landley [Sat, 19 Jan 2008 23:08:39 +0000 (17:08 -0600)]
Zap toys/Config.in and instead create generated/Config.in from contents of
toys/*.c. Move relevant info into comment at the top of each toys/*.c. Also
convert more of Makefile into a thin wrapper around shell scripts that actually
do the work. (Makefile is only still there for the user interface.)
Rob Landley [Thu, 10 Jan 2008 20:40:13 +0000 (14:40 -0600)]
Move some generated files into the "generated" subdirectory.
Rob Landley [Thu, 10 Jan 2008 20:34:15 +0000 (14:34 -0600)]
Very early stub of sed, does nothing yet.
Rob Landley [Tue, 8 Jan 2008 02:28:26 +0000 (20:28 -0600)]
Web page tweak.
Rob Landley [Sun, 6 Jan 2008 22:01:11 +0000 (16:01 -0600)]
Add chvt from David Anders.
Rob Landley [Sun, 6 Jan 2008 00:23:30 +0000 (18:23 -0600)]
Fluffier web page.
Rob Landley [Sun, 6 Jan 2008 00:13:19 +0000 (18:13 -0600)]
More web page tweaks.
Rob Landley [Sun, 6 Jan 2008 00:09:49 +0000 (18:09 -0600)]
Update web pages.
Rob Landley [Sun, 6 Jan 2008 00:08:17 +0000 (18:08 -0600)]
A bit more documentation on Patch.
Rob Landley [Sat, 5 Jan 2008 22:40:40 +0000 (16:40 -0600)]
Update help text a bit.
Rob Landley [Sat, 5 Jan 2008 21:20:26 +0000 (15:20 -0600)]
Teach readlink to actually do -f.
Rob Landley [Wed, 2 Jan 2008 07:40:09 +0000 (01:40 -0600)]
Release notice.
Rob Landley [Wed, 2 Jan 2008 07:36:38 +0000 (01:36 -0600)]
Added tag 0.0.4 for changeset
104792581cc9
Rob Landley [Tue, 1 Jan 2008 08:39:29 +0000 (02:39 -0600)]
Fix loopfiles to not call function() on file not found.
Rob Landley [Mon, 31 Dec 2007 20:34:41 +0000 (14:34 -0600)]
Fix patch to use @@ values and match EOF when fewer trailing than starting
context lines.
Rob Landley [Fri, 28 Dec 2007 09:29:33 +0000 (03:29 -0600)]
Make touch work reliably when file doesn't exist and clean up headers a bit.
Rob Landley [Fri, 28 Dec 2007 03:36:44 +0000 (21:36 -0600)]
Brief note about code style.
Rob Landley [Fri, 28 Dec 2007 03:36:33 +0000 (21:36 -0600)]
Make patch's file add actually work, including directory creating and
understanding zero-context hunks.
Rob Landley [Tue, 25 Dec 2007 01:53:20 +0000 (19:53 -0600)]
Major refactoring of bunzip.c in preparation for doing a multi-threaded version.
Rob Landley [Thu, 20 Dec 2007 12:30:19 +0000 (06:30 -0600)]
Upgrade patch to understand creating and deleting files.
Rob Landley [Thu, 20 Dec 2007 12:29:59 +0000 (06:29 -0600)]
More random unfinished code documentation.
Rob Landley [Thu, 20 Dec 2007 10:39:26 +0000 (04:39 -0600)]
Typo spotted by Adrian Davey.
Rob Landley [Tue, 18 Dec 2007 08:34:08 +0000 (02:34 -0600)]
Patch should be working now, change config default...
Rob Landley [Tue, 18 Dec 2007 08:02:47 +0000 (02:02 -0600)]
Fluff out code.html a bit more.
Rob Landley [Tue, 18 Dec 2007 08:02:21 +0000 (02:02 -0600)]
Patch command.
Rob Landley [Mon, 17 Dec 2007 23:34:02 +0000 (17:34 -0600)]
minicom.sh should check for a char device, not a file.
Rob Landley [Mon, 17 Dec 2007 00:02:44 +0000 (18:02 -0600)]
A couple more readlink tests.
Rob Landley [Mon, 17 Dec 2007 00:02:05 +0000 (18:02 -0600)]
Delete testdir after use.
Rob Landley [Sun, 16 Dec 2007 23:56:31 +0000 (17:56 -0600)]
Tweak testing.sh so VERBOSE=1 is less noisy.
Rob Landley [Sun, 16 Dec 2007 23:55:34 +0000 (17:55 -0600)]
Add a wrapper to run tests out of scripts/test. With no arguments, runs all
*.test files. Arguments are names of commands to test. When environment
variable "OLD" is set, tests commands in $PATH rather than new toybox versions.
Rob Landley [Sun, 16 Dec 2007 06:04:17 +0000 (00:04 -0600)]
Script to use stty with netcat -f to talk to a serial port.
Rob Landley [Sun, 16 Dec 2007 04:05:42 +0000 (22:05 -0600)]
Basic tests for readlink.
Rob Landley [Sun, 16 Dec 2007 03:47:25 +0000 (21:47 -0600)]
Start of "patch" support. Writes to stdout at the moment.
Rob Landley [Thu, 13 Dec 2007 13:00:27 +0000 (07:00 -0600)]
Update web pages.
Rob Landley [Wed, 12 Dec 2007 22:19:00 +0000 (16:19 -0600)]
Set the executable bit in license.html so the server side #includes get parsed.
Rob Landley [Tue, 11 Dec 2007 21:41:31 +0000 (15:41 -0600)]
Update links and add some more spec comments.
Rob Landley [Sun, 9 Dec 2007 21:35:42 +0000 (15:35 -0600)]
Changeset 186 assumed that toys.exitval defaults to 0. Actually change the
default and have [p]error_exit() always return nonzero anyway.
Rob Landley [Sun, 9 Dec 2007 21:32:07 +0000 (15:32 -0600)]
Add some more .PHONY targets.
Rob Landley [Sun, 9 Dec 2007 21:30:36 +0000 (15:30 -0600)]
Add -c option to oneit, to specify console other than /dev/tty0.
Rob Landley [Tue, 4 Dec 2007 02:05:57 +0000 (20:05 -0600)]
Add comments about SUSv3 specs (or lack thereof).
Rob Landley [Tue, 4 Dec 2007 02:05:14 +0000 (20:05 -0600)]
Other chroots fall back to "/bin/sh -i", so add the -i.
Rob Landley [Tue, 4 Dec 2007 01:59:34 +0000 (19:59 -0600)]
Minor cleanups to sha1sum.
Rob Landley [Tue, 4 Dec 2007 01:28:51 +0000 (19:28 -0600)]
Add chroot.
Rob Landley [Tue, 4 Dec 2007 00:57:57 +0000 (18:57 -0600)]
Netcat needs this to build.
Rob Landley [Tue, 4 Dec 2007 00:53:00 +0000 (18:53 -0600)]
Add first pass at netcat. Base applet, -f, and -w implemented.
Rob Landley [Fri, 30 Nov 2007 10:37:24 +0000 (04:37 -0600)]
Minor cleanups/tweaks to touch.
Rob Landley [Fri, 30 Nov 2007 00:32:20 +0000 (18:32 -0600)]
Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
Rob Landley [Fri, 30 Nov 2007 00:14:37 +0000 (18:14 -0600)]
Change command main() functions to return void, and exit(toys.exitval) from
the toybox infrastructure instead. Eliminates a return call from each command.
Rob Landley [Thu, 29 Nov 2007 23:49:50 +0000 (17:49 -0600)]
Add loopfiles() function, make catv use it.
Rob Landley [Tue, 27 Nov 2007 07:44:27 +0000 (01:44 -0600)]
Add a comment about a case that made me stop and think.
Charlie Shepherd [Sun, 25 Nov 2007 16:54:29 +0000 (16:54 +0000)]
Rebuild toybox when a header file changes
Rob Landley [Tue, 27 Nov 2007 07:41:32 +0000 (01:41 -0600)]
Patch from Charlie Shepherd: remove extra \n from error_exit() arguments.
Rob Landley [Tue, 27 Nov 2007 07:36:50 +0000 (01:36 -0600)]
Add comment, and whitespace changes.
Charlie Shepherd [Fri, 23 Nov 2007 21:01:37 +0000 (21:01 +0000)]
Add kconfig/conf to .hgignore
Charlie Shepherd [Fri, 23 Nov 2007 20:49:27 +0000 (20:49 +0000)]
Add tty applet
Rob Landley [Tue, 27 Nov 2007 07:19:40 +0000 (01:19 -0600)]
Add comment and very minor tweak.
Rob Landley [Tue, 27 Nov 2007 07:06:43 +0000 (01:06 -0600)]
Remove a few bytes from basename and add 'em back (and more) in the help string.
Rob Landley [Tue, 27 Nov 2007 06:57:42 +0000 (00:57 -0600)]
Patch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
Rob Landley [Sun, 25 Nov 2007 04:05:29 +0000 (22:05 -0600)]
Re-roll loop, making code smaller. Also localize all the crypto information
into a struct that can be blanked in finalize (no more zeroing local variables).
Rob Landley [Sun, 25 Nov 2007 04:02:07 +0000 (22:02 -0600)]
Untangle algorithm: use uint64_t for count, move union into struct, use struct
more consistently, simplify macros a bit, redo finalization. Also toybox
code is gplv2 so remove confusing output to the contrarary (in a main() that's
going to get yanked soon anyway, but just to be clear...)
Rob Landley [Sun, 25 Nov 2007 03:33:23 +0000 (21:33 -0600)]
More cleanup: consistent indents, uint32_t, rename functions and structs,
argument order, etc. Use "this" instead of "context" to annoy the c++ guys.
Rob Landley [Sun, 25 Nov 2007 03:26:56 +0000 (21:26 -0600)]
Whitespace change: 4 spaces become one tab.
Rob Landley [Sun, 25 Nov 2007 03:26:09 +0000 (21:26 -0600)]
Minimal changes to make it actually work on an x86-64 host.
Rob Landley [Sun, 25 Nov 2007 03:25:18 +0000 (21:25 -0600)]
Start with public domain SHA-1 in C by Steve Reid <steve@edmweb.com>
http://www.mirrors.wiretapped.net/security/cryptography/hashes/sha1/sha1.c
Rob Landley [Tue, 20 Nov 2007 07:06:29 +0000 (01:06 -0600)]
Implement dmesg.
Rob Landley [Mon, 19 Nov 2007 13:07:50 +0000 (07:07 -0600)]
Tighten up error handling, add a umask() call so -m 123 actually works.
Rob Landley [Mon, 19 Nov 2007 07:51:00 +0000 (01:51 -0600)]
Replace strlcpy() with xstrcpy(), which exits if the string won't fit.
Rob Landley [Fri, 16 Nov 2007 03:12:24 +0000 (21:12 -0600)]
Add noreturn mark to [p]error_exit(), suggested by Charlie Shepherd.
Rob Landley [Fri, 16 Nov 2007 02:52:01 +0000 (20:52 -0600)]
Zap a warning.
Charlie Shepherd [Sat, 10 Nov 2007 10:25:23 +0000 (10:25 +0000)]
Fix error message
Rob Landley [Fri, 16 Nov 2007 02:43:35 +0000 (20:43 -0600)]
Simplify touch -l slightly.
Charlie Shepherd [Sat, 10 Nov 2007 10:03:01 +0000 (10:03 +0000)]
Add an option to let touch extend or truncate a file and rename the err label to time_error to reduce confusion.
Charlie Shepherd [Sat, 10 Nov 2007 10:01:28 +0000 (10:01 +0000)]
Don't error on stat success, and create files with a sensible mode instead of 000
Charlie Shepherd [Sat, 10 Nov 2007 09:30:02 +0000 (09:30 +0000)]
Use builtin functions to simplify some code in touch
Charlie Shepherd [Sat, 10 Nov 2007 09:10:51 +0000 (09:10 +0000)]
Fix typo in toysh tty description.
Charlie Shepherd [Sat, 10 Nov 2007 08:54:22 +0000 (08:54 +0000)]
Make toybox_unstripped depend upon toys/help.h (so it will be rebuilt when toys/Config.in is updated)
Charlie Shepherd [Wed, 7 Nov 2007 00:11:20 +0000 (00:11 +0000)]
Add initial mkfifo implementation
Rob Landley [Fri, 16 Nov 2007 00:30:30 +0000 (18:30 -0600)]
Remove trailing whitespace (thanks to Charlie Shepherd), and a couple comment
tweaks.
Charlie Shepherd [Tue, 6 Nov 2007 23:24:56 +0000 (23:24 +0000)]
Replace space indent with tab indent
Charlie Shepherd [Tue, 6 Nov 2007 23:12:03 +0000 (23:12 +0000)]
Add .hgignore file
Rob Landley [Thu, 15 Nov 2007 22:18:33 +0000 (16:18 -0600)]
Change strlcpy not to use strncpy. (Adds 24 bytes, but doesn't memset the
unused portion of the buffer to 0, which can touch and allocate physical
pages for a large virtual mapping.)
Rob Landley [Tue, 13 Nov 2007 01:24:52 +0000 (19:24 -0600)]
Patch fromm Roberto Foglietta: distclean should remove toys/help.h
Charlie Shepherd [Tue, 6 Nov 2007 20:47:18 +0000 (20:47 +0000)]
Add or correct file descriptions
Rob Landley [Tue, 6 Nov 2007 06:35:26 +0000 (00:35 -0600)]
Move toybox_old delete (for bloatcheck) from clean to distclean.
Rob Landley [Sun, 4 Nov 2007 21:32:59 +0000 (15:32 -0600)]
Fix from Charlie Shepherd: at end of string, don't match the null terminator
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.
Rob Landley [Sun, 4 Nov 2007 21:31:06 +0000 (15:31 -0600)]
xcreate(): perror already prints error name and newline, remove redundancy.
Rob Landley [Wed, 31 Oct 2007 06:13:36 +0000 (01:13 -0500)]
Patch from Charlie Shepherd: Implement touch, set the default in Config.in to
y, and remove the length argument (and all talk of changing the length of
files).
Rob Landley [Sat, 20 Oct 2007 00:12:48 +0000 (19:12 -0500)]
Get toysh.c to start using the option parsing logic, and some minor cleanup.
Rob Landley [Tue, 16 Oct 2007 06:49:05 +0000 (01:49 -0500)]
Need to commit this too. :)
Rob Landley [Thu, 11 Oct 2007 20:36:36 +0000 (15:36 -0500)]
Promote help to global config option, teach error_exit() to output usage message when called
from get_optflags().