OSDN Git Service

android-x86/external-toybox.git
16 years agoAdd a comment about a case that made me stop and think.
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.

16 years agoRebuild toybox when a header file changes
Charlie Shepherd [Sun, 25 Nov 2007 16:54:29 +0000 (16:54 +0000)]
Rebuild toybox when a header file changes

16 years agoPatch from Charlie Shepherd: remove extra \n from error_exit() arguments.
Rob Landley [Tue, 27 Nov 2007 07:41:32 +0000 (01:41 -0600)]
Patch from Charlie Shepherd: remove extra \n from error_exit() arguments.

16 years agoAdd comment, and whitespace changes.
Rob Landley [Tue, 27 Nov 2007 07:36:50 +0000 (01:36 -0600)]
Add comment, and whitespace changes.

16 years agoAdd kconfig/conf to .hgignore
Charlie Shepherd [Fri, 23 Nov 2007 21:01:37 +0000 (21:01 +0000)]
Add kconfig/conf to .hgignore

16 years agoAdd tty applet
Charlie Shepherd [Fri, 23 Nov 2007 20:49:27 +0000 (20:49 +0000)]
Add tty applet

16 years agoAdd comment and very minor tweak.
Rob Landley [Tue, 27 Nov 2007 07:19:40 +0000 (01:19 -0600)]
Add comment and very minor tweak.

16 years agoRemove a few bytes from basename and add 'em back (and more) in the help string.
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.

16 years agoPatch from Charlie Shepherd to add basename and dirname. (Fixed up to apply.)
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.)

16 years agoRe-roll loop, making code smaller. Also localize all the crypto information
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).

16 years agoUntangle algorithm: use uint64_t for count, move union into struct, use struct
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...)

16 years agoMore cleanup: consistent indents, uint32_t, rename functions and structs,
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.

16 years agoWhitespace change: 4 spaces become one tab.
Rob Landley [Sun, 25 Nov 2007 03:26:56 +0000 (21:26 -0600)]
Whitespace change: 4 spaces become one tab.

16 years agoMinimal changes to make it actually work on an x86-64 host.
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.

16 years agoStart with public domain SHA-1 in C by Steve Reid <steve@edmweb.com>
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

16 years agoImplement dmesg.
Rob Landley [Tue, 20 Nov 2007 07:06:29 +0000 (01:06 -0600)]
Implement dmesg.

16 years agoTighten up error handling, add a umask() call so -m 123 actually works.
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.

16 years agoReplace strlcpy() with xstrcpy(), which exits if the string won't fit.
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.

16 years agoAdd noreturn mark to [p]error_exit(), suggested by Charlie Shepherd.
Rob Landley [Fri, 16 Nov 2007 03:12:24 +0000 (21:12 -0600)]
Add noreturn mark to [p]error_exit(), suggested by Charlie Shepherd.

16 years agoZap a warning.
Rob Landley [Fri, 16 Nov 2007 02:52:01 +0000 (20:52 -0600)]
Zap a warning.

16 years agoFix error message
Charlie Shepherd [Sat, 10 Nov 2007 10:25:23 +0000 (10:25 +0000)]
Fix error message

16 years agoSimplify touch -l slightly.
Rob Landley [Fri, 16 Nov 2007 02:43:35 +0000 (20:43 -0600)]
Simplify touch -l slightly.

16 years agoAdd an option to let touch extend or truncate a file and rename the err label to...
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.

16 years agoDon't error on stat success, and create files with a sensible mode instead of 000
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

16 years agoUse builtin functions to simplify some code in touch
Charlie Shepherd [Sat, 10 Nov 2007 09:30:02 +0000 (09:30 +0000)]
Use builtin functions to simplify some code in touch

16 years agoFix typo in toysh tty description.
Charlie Shepherd [Sat, 10 Nov 2007 09:10:51 +0000 (09:10 +0000)]
Fix typo in toysh tty description.

16 years agoMake toybox_unstripped depend upon toys/help.h (so it will be rebuilt when toys/Confi...
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)

16 years agoAdd initial mkfifo implementation
Charlie Shepherd [Wed, 7 Nov 2007 00:11:20 +0000 (00:11 +0000)]
Add initial mkfifo implementation

16 years agoRemove trailing whitespace (thanks to Charlie Shepherd), and a couple comment
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.

16 years agoReplace space indent with tab indent
Charlie Shepherd [Tue, 6 Nov 2007 23:24:56 +0000 (23:24 +0000)]
Replace space indent with tab indent

16 years agoAdd .hgignore file
Charlie Shepherd [Tue, 6 Nov 2007 23:12:03 +0000 (23:12 +0000)]
Add .hgignore file

16 years agoChange strlcpy not to use strncpy. (Adds 24 bytes, but doesn't memset the
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.)

16 years agoPatch fromm Roberto Foglietta: distclean should remove toys/help.h
Rob Landley [Tue, 13 Nov 2007 01:24:52 +0000 (19:24 -0600)]
Patch fromm Roberto Foglietta: distclean should remove toys/help.h

16 years agoAdd or correct file descriptions
Charlie Shepherd [Tue, 6 Nov 2007 20:47:18 +0000 (20:47 +0000)]
Add or correct file descriptions

16 years agoMove toybox_old delete (for bloatcheck) from clean to distclean.
Rob Landley [Tue, 6 Nov 2007 06:35:26 +0000 (00:35 -0600)]
Move toybox_old delete (for bloatcheck) from clean to distclean.

16 years agoFix from Charlie Shepherd: at end of string, don't match the null terminator
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.

16 years agoxcreate(): perror already prints error name and newline, remove redundancy.
Rob Landley [Sun, 4 Nov 2007 21:31:06 +0000 (15:31 -0600)]
xcreate(): perror already prints error name and newline, remove redundancy.

16 years agoPatch from Charlie Shepherd: Implement touch, set the default in Config.in to
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).

16 years agoGet toysh.c to start using the option parsing logic, and some minor cleanup.
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.

16 years agoNeed to commit this too. :)
Rob Landley [Tue, 16 Oct 2007 06:49:05 +0000 (01:49 -0500)]
Need to commit this too. :)

16 years agoPromote help to global config option, teach error_exit() to output usage message...
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().

16 years agoBreak out dirtree.c and let it call a function instead of returning the data.
Rob Landley [Thu, 4 Oct 2007 07:04:10 +0000 (02:04 -0500)]
Break out dirtree.c and let it call a function instead of returning the data.

16 years agoMissing config dependency: The mdev config file should depend on mdev.
Rob Landley [Thu, 6 Sep 2007 02:23:56 +0000 (21:23 -0500)]
Missing config dependency: The mdev config file should depend on mdev.

16 years agoMove optimizer flags to OPTIMIZE, so "make CC=tcc OPTIMIZE=" is an option.
Rob Landley [Wed, 5 Sep 2007 04:02:58 +0000 (23:02 -0500)]
Move optimizer flags to OPTIMIZE, so "make CC=tcc OPTIMIZE=" is an option.

16 years agoMinor tweak to web page.
Rob Landley [Sat, 1 Sep 2007 21:27:31 +0000 (16:27 -0500)]
Minor tweak to web page.

17 years agoAdd "help" command. (Building help/help.h requires python, but I'll ship
Rob Landley [Wed, 29 Aug 2007 13:10:01 +0000 (08:10 -0500)]
Add "help" command.  (Building help/help.h requires python, but I'll ship
that file with release versions.)

17 years agoTweak error message.
Rob Landley [Tue, 21 Aug 2007 06:42:54 +0000 (01:42 -0500)]
Tweak error message.

17 years agoMore klibc fixes from Maximilian Attems, strlcpy() this time.
Rob Landley [Wed, 15 Aug 2007 17:50:44 +0000 (12:50 -0500)]
More klibc fixes from Maximilian Attems, strlcpy() this time.

17 years agoRemove strings.h which Maximilian Attems points out is obsolete:
Rob Landley [Wed, 15 Aug 2007 16:03:50 +0000 (11:03 -0500)]
Remove strings.h which Maximilian Attems points out is obsolete:
> belows snippet directly taken from mdadm.h.
>
> to quote hpa:
> "Including <strings.h> is a bug in the upstream source;
> <strings.h> has been obsolete since at least 1989"
>
> one small little step for better klibc support ;)

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
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
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).