OSDN Git Service
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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.
Rob Landley [Sun, 26 Nov 2006 23:47:14 +0000 (18:47 -0500)]
Add bloat-o-meter, make bloatcheck, and scripts/showasm.
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.
Rob Landley [Sun, 26 Nov 2006 22:19:18 +0000 (17:19 -0500)]
More whitespace/cowbell. (And change comment style to //.)
Rob Landley [Sun, 26 Nov 2006 22:18:29 +0000 (17:18 -0500)]
Reduce flag duplication and make kconfig use HOST_CC.
Rob Landley [Sat, 25 Nov 2006 21:50:00 +0000 (16:50 -0500)]
Add my old micro-bunzip library. Needs some cleanup...
Rob Landley [Sat, 25 Nov 2006 21:23:47 +0000 (16:23 -0500)]
Leftover from when I cleaned this up for another project.
Rob Landley [Sat, 25 Nov 2006 21:06:55 +0000 (16:06 -0500)]
Add cat -v.
Rob Landley [Sat, 25 Nov 2006 18:48:02 +0000 (13:48 -0500)]
Add oneit.
Rob Landley [Sat, 25 Nov 2006 18:45:39 +0000 (13:45 -0500)]
Fix a warning.
Rob Landley [Sat, 25 Nov 2006 18:34:51 +0000 (13:34 -0500)]
More work on option parsing. "df -t tmpfs" actually seems to work now.
Rob Landley [Sat, 25 Nov 2006 18:32:01 +0000 (13:32 -0500)]
Add another warning check and a missing dependency.
Rob Landley [Sat, 25 Nov 2006 07:11:10 +0000 (02:11 -0500)]
I got the mercurial web browser thingy set up, note it on the web page.
Rob Landley [Fri, 24 Nov 2006 05:15:21 +0000 (00:15 -0500)]
Fix a half-dozen bugs in argument parsing. More seems to work than not now.
Rob Landley [Mon, 20 Nov 2006 01:35:19 +0000 (20:35 -0500)]
Allocate a more sane amount of memory.
Rob Landley [Mon, 20 Nov 2006 01:35:05 +0000 (20:35 -0500)]
Fix thinko (inverted test).
Rob Landley [Sun, 19 Nov 2006 22:29:35 +0000 (17:29 -0500)]
Add one if() that has lots of whitespace fallout.
Rob Landley [Sun, 19 Nov 2006 07:49:22 +0000 (02:49 -0500)]
New option parsing infrastructure (doesn't use getopt). Hook it up to
existing applets. Still a bit buggy, but bits of it work.
Rob Landley [Fri, 10 Nov 2006 00:19:37 +0000 (19:19 -0500)]
Web site updates, and a design document.
Rob Landley [Sun, 5 Nov 2006 06:01:34 +0000 (01:01 -0500)]
Redo the index page (flesh it out about halfway), and a couple tweaks to
the license page.
Rob Landley [Sun, 5 Nov 2006 04:57:18 +0000 (23:57 -0500)]
The web page should be in the repository, and while I'm at it let's see if I
can commit a file that lives under a symlink.
Rob Landley [Sat, 4 Nov 2006 22:45:18 +0000 (17:45 -0500)]
Add pwd. Consolidate toy list information under toylist.h.
Rob Landley [Fri, 3 Nov 2006 05:05:52 +0000 (00:05 -0500)]
Implement which. Add hello world to menuconfig. Wrap the various applet main
functions in main.c with USE() macros so --gc-sections can strip them.
Rob Landley [Fri, 3 Nov 2006 00:50:02 +0000 (19:50 -0500)]
Better dependencies, and feed the linker --gc-sections. (Which is not an
substitute for building just the stuff we need, but is easy to do for now.)
Rob Landley [Thu, 2 Nov 2006 16:59:25 +0000 (11:59 -0500)]
Added tag 0.0.1 for changeset
8f8a8ac59c14
Rob Landley [Thu, 2 Nov 2006 16:20:53 +0000 (11:20 -0500)]
Thinko: the Config.in for the toys should be in ./toys, not ./lib.
Rob Landley [Thu, 2 Nov 2006 07:57:27 +0000 (02:57 -0500)]
Add xabspath(), is_file_type(), which_in_path(), and find_in_path().
Rob Landley [Thu, 2 Nov 2006 03:28:46 +0000 (22:28 -0500)]
Linked list functions, forgot to add this to the repository.
Rob Landley [Thu, 2 Nov 2006 03:26:25 +0000 (22:26 -0500)]
Make the config generate gen_config.h with CFG_ and USE() macros.
Add distclean. Make clean have double colons so the kconfig makefile's
clean matches.
Rob Landley [Thu, 2 Nov 2006 03:23:58 +0000 (22:23 -0500)]
Add a hello world applet, partly as an example and partly for testing purposes.
Rob Landley [Thu, 2 Nov 2006 03:19:34 +0000 (22:19 -0500)]
The darn thing accidentally created a branch. I had to copy a half-dozen
files to temporary locations to get them out of the way of the merge, and
the next checkin will be putting them _back_. This commit is entirely to
humor mercurial, and if I could figure out how to avoid getting it in this
weird state, I would.
landley [Thu, 2 Nov 2006 02:12:20 +0000 (21:12 -0500)]
The Config files don't need the CONFIG_ prefix.
landley [Wed, 1 Nov 2006 04:30:06 +0000 (23:30 -0500)]
Add menuconfig, plus some basic Config info, lots of which is just future
plans for toysh. Nothing's currently _using_ this config info, but at least
it's being generated now.
landley [Mon, 30 Oct 2006 16:18:30 +0000 (11:18 -0500)]
Closer support for "pedantic" option for SUSv3. (Ok, it's %ld instead of the
%d the spec says, but same output. And you can't actually select it until I
get menuconfig in. But hey...)
landley [Mon, 30 Oct 2006 15:01:19 +0000 (10:01 -0500)]
Add reread(), readall(), and xread() on the bus ride in to work...
landley [Mon, 30 Oct 2006 06:38:00 +0000 (01:38 -0500)]
Implement df. Add -Wall to build and fix up warnings. Add copyright notices.
Add error_msg() and itoa() to library. Remove argc from globals (since argv is
null terminated), add optflags to globals.
landley [Thu, 26 Oct 2006 16:04:37 +0000 (12:04 -0400)]
Rest of thinko fix.
landley [Thu, 26 Oct 2006 16:04:17 +0000 (12:04 -0400)]
Thinko fix.
landley [Wed, 25 Oct 2006 22:38:37 +0000 (18:38 -0400)]
Add xmsprintf(), xgetcwd(), xgetcwd(), find_in_path().
landley [Wed, 18 Oct 2006 22:38:16 +0000 (18:38 -0400)]
Next drop of toysh, plus more infratructure.
landley [Thu, 5 Oct 2006 20:18:03 +0000 (16:18 -0400)]
Infrastructure, first drop of toy shell, and a bit of work on df.
landley [Thu, 28 Sep 2006 21:18:51 +0000 (17:18 -0400)]
Next snapshot. Tries to grab something out of lib in order to build, I have
an empty "blah.c" in there to make it happy but I'm not checking that in.
landley [Wed, 27 Sep 2006 04:45:05 +0000 (00:45 -0400)]
Starting a new project. Just a bit past the "hello world" stage...