platform/upstream/toybox.git
12 years agoFix from Georgi Chorbadzhiyski to make cross compiling more robust. 0.2.1
Rob Landley [Sat, 3 Mar 2012 16:56:11 +0000 (10:56 -0600)]
Fix from Georgi Chorbadzhiyski to make cross compiling more robust.

12 years agoThis uses floating point.
Rob Landley [Sat, 3 Mar 2012 02:18:17 +0000 (20:18 -0600)]
This uses floating point.

12 years agoAdd copyright notice, fluff out help text, use xexec().
Rob Landley [Sat, 3 Mar 2012 02:18:02 +0000 (20:18 -0600)]
Add copyright notice, fluff out help text, use xexec().

12 years agoOnly show one normal difference (sans -l) and EOF message should go to stdout, not...
Rob Landley [Fri, 2 Mar 2012 14:33:01 +0000 (08:33 -0600)]
Only show one normal difference (sans -l) and EOF message should go to stdout, not stderr.

12 years agoCleanup pass, and support unrecognized slash chars ala "echo -e \p".
Rob Landley [Fri, 2 Mar 2012 14:27:50 +0000 (08:27 -0600)]
Cleanup pass, and support unrecognized slash chars ala "echo -e \p".

12 years agoAdd -n, which kernel build needs.
Rob Landley [Fri, 2 Mar 2012 03:36:20 +0000 (21:36 -0600)]
Add -n, which kernel build needs.

12 years agoNow that generated/Config.probed is its own file, add it to build dependencies.
Rob Landley [Tue, 28 Feb 2012 12:34:35 +0000 (06:34 -0600)]
Now that generated/Config.probed is its own file, add it to build dependencies.

12 years agoMake documentation even fluffier.
Rob Landley [Tue, 28 Feb 2012 12:34:09 +0000 (06:34 -0600)]
Make documentation even fluffier.

12 years agoAdd "-" type to optargs and teach tail.c to use it. Tighten up help text, use xzallo...
Rob Landley [Tue, 28 Feb 2012 06:29:52 +0000 (00:29 -0600)]
Add "-" type to optargs and teach tail.c to use it.  Tighten up help text, use xzalloc() and xputc() as appropriate.

12 years agoUpgrade yesno() and make cp -i use it.
Rob Landley [Tue, 28 Feb 2012 03:56:49 +0000 (21:56 -0600)]
Upgrade yesno() and make cp -i use it.

12 years agoThe aboriginal linux build needs ls -ditc and probably some more unimplemented option...
Rob Landley [Mon, 27 Feb 2012 04:04:37 +0000 (22:04 -0600)]
The aboriginal linux build needs ls -ditc and probably some more unimplemented options yet...

12 years agoWeb page tweaks. Remove background image (makes it hard ot read for some people...
Rob Landley [Mon, 27 Feb 2012 03:53:15 +0000 (21:53 -0600)]
Web page tweaks.  Remove background image (makes it hard ot read for some people), and use local roadmap instead of third party wiki.

12 years agoTeach patch -p that consecutive /// counts as one path component.
Rob Landley [Mon, 27 Feb 2012 03:52:07 +0000 (21:52 -0600)]
Teach patch -p that consecutive /// counts as one path component.

12 years agoTeach lib/args.c that " " this option must take a _separate_ argument, so "kill ...
Rob Landley [Sun, 26 Feb 2012 22:11:25 +0000 (16:11 -0600)]
Teach lib/args.c that " " this option must take a _separate_ argument, so "kill -stop" and "kill -s top" aren't the same thing. Make kill.c use it, and remove leftover debug printfs.

12 years agoFactor out common code between killall/kill and move it to lib/lib.c, plus cleanups...
Rob Landley [Sun, 26 Feb 2012 19:48:00 +0000 (13:48 -0600)]
Factor out common code between killall/kill and move it to lib/lib.c, plus cleanups on kill.c.

12 years agoImplemented -i for cp
Bryce Fricke [Fri, 24 Feb 2012 03:08:27 +0000 (22:08 -0500)]
Implemented -i for cp

12 years agoDon't mix the the probed symbols with the command symbols.
Rob Landley [Fri, 24 Feb 2012 03:03:18 +0000 (21:03 -0600)]
Don't mix the the probed symbols with the command symbols.

12 years agoBugfix: use the right USE symbol.
Rob Landley [Fri, 24 Feb 2012 02:56:10 +0000 (20:56 -0600)]
Bugfix: use the right USE symbol.

12 years agoAdd tail.
Timothy Elliott [Thu, 23 Feb 2012 19:51:13 +0000 (11:51 -0800)]
Add tail.

Disabled by default because the -f option is not implemented.

12 years agoupdate id to be SUS compliant
Daniel Walter [Wed, 22 Feb 2012 03:39:20 +0000 (21:39 -0600)]
update id to be SUS compliant

 * add -n and -G flag
 * allow a username to be given as argument
 * display complete list of groups
 * include it in default build

12 years agoReplace GPL python debug script with BSD shell script.
Rob Landley [Wed, 22 Feb 2012 03:27:10 +0000 (21:27 -0600)]
Replace GPL python debug script with BSD shell script.

12 years agoAdd in the -n support, and the 64-bit defines. Force ls to act as ls -1 if used in...
Andre Renaud [Wed, 22 Feb 2012 02:48:52 +0000 (20:48 -0600)]
Add in the -n support, and the 64-bit defines. Force ls to act as ls -1 if used in a pipe.

12 years agoAdd new kill toy. Used to send signals to a process or a process group.
Daniel Walter [Wed, 22 Feb 2012 01:45:19 +0000 (19:45 -0600)]
Add new kill toy. Used to send signals to a process or a process group.

12 years agoAdding insmod and rmmod
Elie De Brauwer [Sat, 18 Feb 2012 12:25:36 +0000 (13:25 +0100)]
Adding insmod and rmmod

12 years agoAdding mknod
Elie De Brauwer [Mon, 13 Feb 2012 18:58:48 +0000 (19:58 +0100)]
Adding mknod

12 years agoTighten up the source code in largely cosmetic ways.
Rob Landley [Tue, 21 Feb 2012 05:15:32 +0000 (23:15 -0600)]
Tighten up the source code in largely cosmetic ways.

12 years agoMinor cleanups: lsmod should USE_LSMOD() instead of USE_FREE(), use consistent tab...
Rob Landley [Tue, 21 Feb 2012 02:20:12 +0000 (20:20 -0600)]
Minor cleanups: lsmod should USE_LSMOD() instead of USE_FREE(), use consistent tab/space idents, and doesn't need a break after a function that exits.

12 years agoAdding lsmod
Elie De Brauwer [Sat, 18 Feb 2012 08:44:53 +0000 (09:44 +0100)]
Adding lsmod

12 years agoSet HOSTCC only if it isn't already set as an environment variable.
Rob Landley [Mon, 20 Feb 2012 04:21:45 +0000 (22:21 -0600)]
Set HOSTCC only if it isn't already set as an environment variable.

12 years agoMinor tweaks.
Rob Landley [Sun, 19 Feb 2012 23:37:49 +0000 (17:37 -0600)]
Minor tweaks.

12 years agoAdding swapon and swapoff
Elie De Brauwer [Sat, 18 Feb 2012 14:33:27 +0000 (15:33 +0100)]
Adding swapon and swapoff

12 years agomkswap helpstring and argument string
Elie De Brauwer [Sat, 18 Feb 2012 13:13:55 +0000 (14:13 +0100)]
mkswap helpstring and argument string

12 years agoNathan McSween convinced me compilers that inline memset() can optimize the bzero...
Rob Landley [Sun, 19 Feb 2012 04:44:11 +0000 (22:44 -0600)]
Nathan McSween convinced me compilers that inline memset() can optimize the bzero case pretty well.

12 years agoCleanups to killall.
Rob Landley [Sun, 19 Feb 2012 00:54:30 +0000 (18:54 -0600)]
Cleanups to killall.

12 years agoAnd again, I forgot to check in a file. Oops.
Rob Landley [Sun, 19 Feb 2012 00:53:57 +0000 (18:53 -0600)]
And again, I forgot to check in a file.  Oops.

12 years agoCleanups to pidof (including some global infrastructure shared with killall).
Rob Landley [Sun, 19 Feb 2012 00:09:14 +0000 (18:09 -0600)]
Cleanups to pidof (including some global infrastructure shared with killall).

12 years agoMore ls updates from Andre Renaud: Add -R and initial support for listing files on...
Rob Landley [Sat, 18 Feb 2012 21:19:00 +0000 (15:19 -0600)]
More ls updates from Andre Renaud: Add -R and initial support for listing files on the command line.

12 years agoAdd killall by Andreas Heck, and factor out common pid code to lib.h.
Rob Landley [Sat, 18 Feb 2012 21:12:41 +0000 (15:12 -0600)]
Add killall by Andreas Heck, and factor out common pid code to lib.h.

12 years agoAdd pidof by Andreas Heck.
Rob Landley [Sat, 18 Feb 2012 21:08:31 +0000 (15:08 -0600)]
Add pidof by Andreas Heck.

12 years agoAdd tests for cmp.
Timothy Elliott [Thu, 9 Feb 2012 06:47:36 +0000 (22:47 -0800)]
Add tests for cmp.

Still needs to handle directories properly and needs padding for
-l output.

12 years agoAdd V=1 support to make.
Rob Landley [Fri, 17 Feb 2012 18:06:12 +0000 (12:06 -0600)]
Add V=1 support to make.

12 years agoSigh: moving a header to toys.h isn't very useful if I forget to check in toys.h.
Rob Landley [Fri, 17 Feb 2012 18:05:26 +0000 (12:05 -0600)]
Sigh: moving a header to toys.h isn't very useful if I forget to check in toys.h.

12 years agoMove realpath from loopfiles() to a for loop, so we don't get hung on read permission...
Rob Landley [Fri, 17 Feb 2012 11:27:37 +0000 (05:27 -0600)]
Move realpath from loopfiles() to a for loop, so we don't get hung on read permission for file data when we just want to look at directory info.

12 years agoRealpath, by Andre Renaud.
Rob Landley [Fri, 17 Feb 2012 10:47:16 +0000 (04:47 -0600)]
Realpath, by Andre Renaud.

12 years agoMove includes into toys.h, more xprintf()
Rob Landley [Fri, 17 Feb 2012 10:46:55 +0000 (04:46 -0600)]
Move includes into toys.h, more xprintf()

12 years agoMinor cleanups: trim spaces from strings, use xprintf().
Rob Landley [Thu, 16 Feb 2012 23:51:51 +0000 (17:51 -0600)]
Minor cleanups: trim spaces from strings, use xprintf().

12 years agoAdding free and uptime
Elie De Brauwer [Mon, 13 Feb 2012 16:15:49 +0000 (17:15 +0100)]
Adding free and uptime

12 years agoError message fix from Pere (gotrunks at gmail).
Rob Landley [Wed, 15 Feb 2012 12:12:38 +0000 (06:12 -0600)]
Error message fix from Pere (gotrunks at gmail).

12 years agoMinor cleanups to hostname.
Rob Landley [Wed, 15 Feb 2012 11:55:38 +0000 (05:55 -0600)]
Minor cleanups to hostname.

12 years agoAdd hostname from Andre Renaud.
Rob Landley [Wed, 15 Feb 2012 11:47:38 +0000 (05:47 -0600)]
Add hostname from Andre Renaud.

12 years agoTeach ln about multiple arguments.
Rob Landley [Tue, 14 Feb 2012 05:43:33 +0000 (23:43 -0600)]
Teach ln about multiple arguments.

12 years agoAdd ln from Andre Renaud.
Rob Landley [Tue, 14 Feb 2012 04:57:30 +0000 (22:57 -0600)]
Add ln from Andre Renaud.

12 years agoTweak from Frank Bergmann: some broken optimizers complain about "type-punned pointer...
Rob Landley [Tue, 14 Feb 2012 03:48:22 +0000 (21:48 -0600)]
Tweak from Frank Bergmann: some broken optimizers complain about "type-punned pointers", so typecast to void * instead to shut it up. (Up there with the "may be used uninitialized" gripes.)

12 years agoSecond drop of ls from Andre, adds -l.
Rob Landley [Tue, 14 Feb 2012 03:27:50 +0000 (21:27 -0600)]
Second drop of ls from Andre, adds -l.

12 years agoAdd ls from Andre Renaud.
Rob Landley [Tue, 14 Feb 2012 03:26:27 +0000 (21:26 -0600)]
Add ls from Andre Renaud.

12 years agoCommit the web page change that announced the release.
Rob Landley [Tue, 14 Feb 2012 03:16:03 +0000 (21:16 -0600)]
Commit the web page change that announced the release.

12 years agoMinor code cleanup and typo fix.
Rob Landley [Tue, 14 Feb 2012 03:13:05 +0000 (21:13 -0600)]
Minor code cleanup and typo fix.

12 years agoAdd test for basename, fix issue where suffix is wrongfully applied if it appears...
Elie De Brauwer [Sun, 12 Feb 2012 13:14:58 +0000 (14:14 +0100)]
Add test for basename, fix issue where suffix is wrongfully applied if it appears in the middle of the filename

12 years agoThe unshare test needs $CC defined, source configure to get it.
Rob Landley [Mon, 13 Feb 2012 14:44:32 +0000 (08:44 -0600)]
The unshare test needs $CC defined, source configure to get it.

12 years agoAdded tag 0.2.0 for changeset e708e8933a50
Rob Landley [Mon, 13 Feb 2012 13:46:36 +0000 (07:46 -0600)]
Added tag 0.2.0 for changeset e708e8933a50

12 years agoAdd clear (wrapper). 0.2.0
Rob Landley [Mon, 13 Feb 2012 00:04:15 +0000 (18:04 -0600)]
Add clear (wrapper).

12 years agoAdd tests for head
Timothy Elliott [Sat, 11 Feb 2012 05:59:57 +0000 (21:59 -0800)]
Add tests for head

This exposed one issue in head.c -- printf was not flushing and
file names could appear after file contents instead of before.

The issue is fixed by calling xflush after xprintf.

12 years agoMinor cleanups to echo: collapse together three tolower() calls, make indent/brackets...
Rob Landley [Sat, 11 Feb 2012 19:42:24 +0000 (13:42 -0600)]
Minor cleanups to echo: collapse together three tolower() calls, make indent/brackets a bit more regular/obvious, and replace some spaces with tabs in help text (in a way that won't matter until I finish rewriting scripts/config2help.py in C).

12 years agoFix overflow in octal formatting in echo, add support for hexadecimal input, add...
Elie De Brauwer [Sat, 11 Feb 2012 13:58:50 +0000 (14:58 +0100)]
Fix overflow in octal formatting in echo, add support for hexadecimal input, add tests for octal and hexadecimal formatting

12 years agoAdd tests for cksum
Elie De Brauwer [Sat, 11 Feb 2012 12:46:49 +0000 (13:46 +0100)]
Add tests for cksum

12 years agoCorrect cksum parameters and clarify -N option
Elie De Brauwer [Sat, 11 Feb 2012 12:48:04 +0000 (13:48 +0100)]
Correct cksum parameters and clarify -N option

12 years agoCorrect description of nice levels in help of nice
Elie De Brauwer [Fri, 10 Feb 2012 12:36:48 +0000 (13:36 +0100)]
Correct description of nice levels in help of nice

12 years agoCleanups for head.
Rob Landley [Thu, 9 Feb 2012 12:36:42 +0000 (06:36 -0600)]
Cleanups for head.

12 years agoImplement head
Timothy Elliott [Tue, 7 Feb 2012 01:35:59 +0000 (17:35 -0800)]
Implement head

12 years agoMake atolx() error_exit() if fed a string that doesn't convert entirely into an integer.
Rob Landley [Thu, 9 Feb 2012 12:09:27 +0000 (06:09 -0600)]
Make atolx() error_exit() if fed a string that doesn't convert entirely into an integer.

12 years agoUse stpcpy() (posix 2008) for slight code shrink.
Rob Landley [Thu, 9 Feb 2012 01:29:39 +0000 (19:29 -0600)]
Use stpcpy() (posix 2008) for slight code shrink.

12 years agoSwitch from deprecated function to gratuitously renamed identical non-depricated...
Rob Landley [Thu, 9 Feb 2012 01:29:14 +0000 (19:29 -0600)]
Switch from deprecated function to gratuitously renamed identical non-depricated function.  *shrug*

12 years agoMore cmp.c shrinkage.
Rob Landley [Wed, 8 Feb 2012 04:25:59 +0000 (22:25 -0600)]
More cmp.c shrinkage.

Abuse loopfiles() to handle both arguments, caching the first pass in globals.
That eliminates get_fd() since loopfiles already knows how to handle "-" arg.
Chop toybuf in half and use half for each file, eliminating malloc/free.
main() becomes just a call to loopfiles(), which does all open/close.

12 years agoIterative cleanups on cmp.c: silence warnings, only free if TOYBOX_FREE, use xopen...
Rob Landley [Wed, 8 Feb 2012 03:32:32 +0000 (21:32 -0600)]
Iterative cleanups on cmp.c: silence warnings, only free if TOYBOX_FREE, use xopen(), style cleanup on curly brackets.

12 years agoSwitching who default to 'n' since it's not yet fully implemented.
Luis Felipe Strano Moraes [Tue, 7 Feb 2012 20:13:41 +0000 (12:13 -0800)]
Switching who default to 'n' since it's not yet fully implemented.

12 years agoAdded time to the output of who command.
Luis Felipe Strano Moraes [Tue, 7 Feb 2012 17:15:17 +0000 (09:15 -0800)]
Added time to the output of who command.

12 years agoInitial version of who command.
Luis Felipe Strano Moraes [Tue, 7 Feb 2012 00:29:09 +0000 (16:29 -0800)]
Initial version of who command.

12 years agoSilence really boring compiler warning.
Luis Felipe Strano Moraes [Mon, 6 Feb 2012 22:36:56 +0000 (14:36 -0800)]
Silence really boring compiler warning.

12 years agoImplement cmp
Timothy Elliott [Mon, 6 Feb 2012 09:28:40 +0000 (01:28 -0800)]
Implement cmp

12 years agoFix sort -uc (pointer vs pointer to pointer confusion, covered by typecast).
Rob Landley [Tue, 7 Feb 2012 06:31:37 +0000 (00:31 -0600)]
Fix sort -uc (pointer vs pointer to pointer confusion, covered by typecast).

12 years agoDocument that optflags is always an int (so 32 bit and 64 bit platforms behave the...
Rob Landley [Tue, 7 Feb 2012 03:15:19 +0000 (21:15 -0600)]
Document that optflags is always an int (so 32 bit and 64 bit platforms behave the same).

12 years agoBugfix for -x, add CONFIG_SORT_FLOAT, and new test suite entry.
Rob Landley [Tue, 7 Feb 2012 03:14:22 +0000 (21:14 -0600)]
Bugfix for -x, add CONFIG_SORT_FLOAT, and new test suite entry.

12 years agoThis id implementation is not remotely SUSv4 compliant, default n until I get a chanc...
Rob Landley [Sun, 5 Feb 2012 21:25:17 +0000 (15:25 -0600)]
This id implementation is not remotely SUSv4 compliant, default n until I get a chance to finish it.

12 years agoAdd a basic README and an example to "make help".
Rob Landley [Sat, 4 Feb 2012 18:20:39 +0000 (12:20 -0600)]
Add a basic README and an example to "make help".

12 years agoTweak help command's help text, and remove unimplemented option.
Rob Landley [Sat, 4 Feb 2012 17:23:18 +0000 (11:23 -0600)]
Tweak help command's help text, and remove unimplemented option.

12 years agoCleaning out one more old gpl notice that no longer applies after the switch to BSD...
Rob Landley [Sat, 4 Feb 2012 16:39:17 +0000 (10:39 -0600)]
Cleaning out one more old gpl notice that no longer applies after the switch to BSD in november.

12 years agoAdd autodetect for container support.
Rob Landley [Sat, 4 Feb 2012 05:16:28 +0000 (23:16 -0600)]
Add autodetect for container support.

12 years agoFix bad link that was confusing people. (Oops.)
Rob Landley [Sat, 4 Feb 2012 04:39:55 +0000 (22:39 -0600)]
Fix bad link that was confusing people.  (Oops.)

12 years agoRemoving unecessary allocation.
Luis Felipe Strano Moraes [Fri, 3 Feb 2012 13:17:48 +0000 (11:17 -0200)]
Removing unecessary allocation.

12 years agoImplement xargs -E.
Rob Landley [Thu, 2 Feb 2012 13:44:04 +0000 (07:44 -0600)]
Implement xargs -E.

12 years agoVery slight efficiency tweak.
Rob Landley [Thu, 2 Feb 2012 13:42:31 +0000 (07:42 -0600)]
Very slight efficiency tweak.

12 years agoTest suite comment tweaks.
Rob Landley [Thu, 2 Feb 2012 13:29:09 +0000 (07:29 -0600)]
Test suite comment tweaks.

12 years agoBasename and env are usable, default them to y.
Rob Landley [Thu, 2 Feb 2012 13:28:06 +0000 (07:28 -0600)]
Basename and env are usable, default them to y.

12 years agoQuick and dirty terminal_size() and yesno() functions, both of which need to be improved.
Rob Landley [Thu, 2 Feb 2012 13:27:35 +0000 (07:27 -0600)]
Quick and dirty terminal_size() and yesno() functions, both of which need to be improved.

12 years agoUpdate web page a bit.
Rob Landley [Thu, 2 Feb 2012 13:27:05 +0000 (07:27 -0600)]
Update web page a bit.

12 years agoCommit 415 needs the other two files. (Oops.)
Rob Landley [Thu, 2 Feb 2012 13:26:39 +0000 (07:26 -0600)]
Commit 415 needs the other two files.  (Oops.)

12 years agoMore work on xargs: bugfix and tests.
Rob Landley [Mon, 30 Jan 2012 13:40:32 +0000 (07:40 -0600)]
More work on xargs: bugfix and tests.

12 years agoAdd <>= to lib/args.c, with documentation.
Rob Landley [Sun, 29 Jan 2012 19:54:13 +0000 (13:54 -0600)]
Add <>= to lib/args.c, with documentation.

12 years agoImplement xargs (first pass, not full SUSv4 yet).
Rob Landley [Sat, 28 Jan 2012 18:07:45 +0000 (12:07 -0600)]
Implement xargs (first pass, not full SUSv4 yet).

12 years agoAdd id command from Tim Bird.
Rob Landley [Fri, 27 Jan 2012 12:49:28 +0000 (06:49 -0600)]
Add id command from Tim Bird.