OSDN Git Service

android-x86/external-toybox.git
11 years agoCheck in the updated news and status web pages.
Rob Landley [Sat, 25 Aug 2012 16:51:25 +0000 (11:51 -0500)]
Check in the updated news and status web pages.

11 years agoFix bug spotted by Avery Pennarun: getusername() and getgroupname() can reuse the...
Rob Landley [Sun, 19 Aug 2012 02:12:02 +0000 (21:12 -0500)]
Fix bug spotted by Avery Pennarun: getusername() and getgroupname() can reuse the utoa buffer when neither is recognized, meaning uid would be shown again instead of gid.

11 years agoBugfix from Avery Pennarun: getpriority() uses a different range than nice(), so...
Rob Landley [Fri, 17 Aug 2012 03:24:30 +0000 (22:24 -0500)]
Bugfix from Avery Pennarun: getpriority() uses a different range than nice(), so follow thenice man page and zero errno then check it if nice returns -1.

11 years agoAdding usleep
Elie De Brauwer [Wed, 15 Aug 2012 10:53:54 +0000 (12:53 +0200)]
Adding usleep

11 years agoReplace TOY_LIST_LEN with more generic ARRAY_LEN()
Rob Landley [Tue, 14 Aug 2012 06:42:06 +0000 (01:42 -0500)]
Replace TOY_LIST_LEN with more generic ARRAY_LEN()

11 years agoRewrite taskset to use syscall directly without macros/prototypes glibc refuses to...
Rob Landley [Mon, 6 Aug 2012 04:05:16 +0000 (23:05 -0500)]
Rewrite taskset to use syscall directly without macros/prototypes glibc refuses to make available without yet more wacky inappropriate #defines. (Linux is not the hurd.)

11 years agoRefactoring, no code change.
Rob Landley [Tue, 31 Jul 2012 11:01:12 +0000 (06:01 -0500)]
Refactoring, no code change.

11 years agoAdd dos2unix/unix2dos, remove old wrapper versions.
Rob Landley [Mon, 30 Jul 2012 06:48:28 +0000 (01:48 -0500)]
Add dos2unix/unix2dos, remove old wrapper versions.

11 years agoAdd signal handler to clean up tempfile.
Rob Landley [Mon, 30 Jul 2012 06:01:33 +0000 (01:01 -0500)]
Add signal handler to clean up tempfile.

11 years agoMinor cleanups, mostly whitespace.
Rob Landley [Tue, 24 Jul 2012 07:52:36 +0000 (02:52 -0500)]
Minor cleanups, mostly whitespace.

11 years agoAdded tag 0.4.0 for changeset 85fc06bd63c4
Rob Landley [Tue, 24 Jul 2012 04:55:34 +0000 (23:55 -0500)]
Added tag 0.4.0 for changeset 85fc06bd63c4

11 years agoWorkaround longstanding glibc/ld bug, ala http://sources.redhat.com/bugzilla/show_bug...
Rob Landley [Tue, 24 Jul 2012 04:38:34 +0000 (23:38 -0500)]
Workaround longstanding glibc/ld bug, ala sources.redhat.com/bugzilla/show_bug.cgi?id=3400, which prevents "./toybox | wc" from producing any output when toybox was statically linked.

11 years agoMore web page roadmap/status update stuff.
Rob Landley [Sun, 22 Jul 2012 04:58:40 +0000 (23:58 -0500)]
More web page roadmap/status update stuff.

11 years agoMake chmod +w respect umask, implement +s and +t, fix ls to show suid/sgid/stid witho...
Rob Landley [Sun, 22 Jul 2012 03:45:05 +0000 (22:45 -0500)]
Make chmod +w respect umask, implement +s and +t, fix ls to show suid/sgid/stid without x bit.

11 years agoUse "_password" instead of "_passwd" for names in lib/password.c.
Rob Landley [Sat, 21 Jul 2012 23:38:36 +0000 (18:38 -0500)]
Use "_password" instead of "_passwd" for names in lib/password.c.

11 years agoAdd date -r, make -u work even when /etc/localtime set, and lots of cleanup/refactoring.
Rob Landley [Sat, 21 Jul 2012 23:37:26 +0000 (18:37 -0500)]
Add date -r, make -u work even when /etc/localtime set, and lots of cleanup/refactoring.

12 years agoAdd status.html and script to calculate it from roadmap info.
Rob Landley [Sat, 21 Jul 2012 05:29:27 +0000 (00:29 -0500)]
Add status.html and script to calculate it from roadmap info.

12 years agotaskset.c now also support executing new commands with a given cpu affinity mask
Elie De Brauwer [Fri, 20 Jul 2012 07:43:27 +0000 (09:43 +0200)]
taskset.c now also support executing new commands with a given cpu affinity mask

12 years agotoys/login.c: make use of the read_passwd function offered by the passwd library.
Elie De Brauwer [Fri, 20 Jul 2012 06:42:44 +0000 (08:42 +0200)]
toys/login.c: make use of the read_passwd function offered by the passwd library.

12 years agoTrivial cleanups.
Rob Landley [Thu, 19 Jul 2012 02:10:57 +0000 (21:10 -0500)]
Trivial cleanups.

12 years agoCleanup of w command.
Rob Landley [Thu, 19 Jul 2012 01:28:19 +0000 (20:28 -0500)]
Cleanup of w command.

12 years agoAdd w command by Gaurang Shastri.
Rob Landley [Thu, 19 Jul 2012 01:21:50 +0000 (20:21 -0500)]
Add w command by Gaurang Shastri.

12 years agoOnly add / in dirtree_path if it hasn't already got one, spotted by Ashwini Sharma.
Rob Landley [Wed, 18 Jul 2012 05:19:08 +0000 (00:19 -0500)]
Only add / in dirtree_path if it hasn't already got one, spotted by Ashwini Sharma.

12 years agoLargely cosmetic code cleanups.
Rob Landley [Wed, 18 Jul 2012 04:11:06 +0000 (23:11 -0500)]
Largely cosmetic code cleanups.

12 years agoAdding initial implementation of taskset
Elie De Brauwer [Sun, 15 Jul 2012 11:28:51 +0000 (13:28 +0200)]
Adding initial implementation of taskset

12 years agoAdd passwd by Kyungwan Han.
Rob Landley [Tue, 17 Jul 2012 13:54:47 +0000 (08:54 -0500)]
Add passwd by Kyungwan Han.

12 years agoAdd documentation for lib/llist.c and lib/dirtree.c.
Rob Landley [Sun, 15 Jul 2012 22:47:08 +0000 (17:47 -0500)]
Add documentation for lib/llist.c and lib/dirtree.c.

12 years agoGenericize llist code a bit: rename llist_free() to llist_traverse(), and no longer...
Rob Landley [Sun, 15 Jul 2012 22:22:04 +0000 (17:22 -0500)]
Genericize llist code a bit: rename llist_free() to llist_traverse(), and no longer accept NULL as a synonym for free.

12 years agoNew infrastructure for od (oops).
Rob Landley [Sun, 15 Jul 2012 21:56:20 +0000 (16:56 -0500)]
New infrastructure for od (oops).

12 years agoFill out od -c and -f.
Rob Landley [Sat, 14 Jul 2012 05:59:32 +0000 (00:59 -0500)]
Fill out od -c and -f.

12 years agoComplete rewrite of od, mostly working. (Need to finish -c and -f.)
Rob Landley [Thu, 12 Jul 2012 01:59:17 +0000 (20:59 -0500)]
Complete rewrite of od, mostly working. (Need to finish -c and -f.)

12 years agoAdd modinfo by Andre Renaud.
Rob Landley [Tue, 10 Jul 2012 04:16:16 +0000 (23:16 -0500)]
Add modinfo by Andre Renaud.

12 years ago- Do not abort testing after running the sort tests
Elie De Brauwer [Thu, 5 Jul 2012 20:58:28 +0000 (22:58 +0200)]
- Do not abort testing after running the sort tests
- Add tail testcases for input not ending on a newline
- Fix condition where input coming from stdin does not have a trailing newline

12 years agoPut cmp.c EOF notice on stderr
Elie De Brauwer [Thu, 5 Jul 2012 18:11:40 +0000 (20:11 +0200)]
Put cmp.c EOF notice on stderr

12 years agoAdd LSB link to the template, for reference.
Rob Landley [Thu, 5 Jul 2012 13:21:57 +0000 (08:21 -0500)]
Add LSB link to the template, for reference.

12 years agoA note on error messages and internationalization.
Rob Landley [Mon, 2 Jul 2012 04:48:15 +0000 (23:48 -0500)]
A note on error messages and internationalization.

12 years agoAdd NOP b (byte) suffix to atolx() since od needs it.
Rob Landley [Sat, 30 Jun 2012 21:31:37 +0000 (16:31 -0500)]
Add NOP b (byte) suffix to atolx() since od needs it.

12 years agoMinor cleanups and refactoring. Make FLAG macros closer to what should eventually...
Rob Landley [Wed, 27 Jun 2012 01:47:01 +0000 (20:47 -0500)]
Minor cleanups and refactoring. Make FLAG macros closer to what should eventually be generated for us by the build infrastructure.

12 years agoLonger usage line and combine ascii[] into a single string.
Rob Landley [Wed, 27 Jun 2012 01:45:56 +0000 (20:45 -0500)]
Longer usage line and combine ascii[] into a single string.

12 years agoSome refactoring, shouldn't affect the generated code.
Rob Landley [Wed, 27 Jun 2012 01:45:14 +0000 (20:45 -0500)]
Some refactoring, shouldn't affect the generated code.

12 years agoFirst drop of od, from Andre Renaud.
Rob Landley [Wed, 27 Jun 2012 00:36:45 +0000 (19:36 -0500)]
First drop of od, from Andre Renaud.

12 years agoUpdate news page for the past two releases.
Rob Landley [Mon, 25 Jun 2012 11:42:24 +0000 (06:42 -0500)]
Update news page for the past two releases.

12 years agoAdded tag 0.3.1 for changeset 8bee9c27c219
Rob Landley [Mon, 25 Jun 2012 11:33:58 +0000 (06:33 -0500)]
Added tag 0.3.1 for changeset 8bee9c27c219

12 years agoAdded tag 0.3.0 for changeset d8566c3321f0
Rob Landley [Mon, 25 Jun 2012 11:33:41 +0000 (06:33 -0500)]
Added tag 0.3.0 for changeset d8566c3321f0

12 years agoUnify chown and chgrp, add support for -hHLP flags.
Rob Landley [Sun, 24 Jun 2012 23:35:49 +0000 (18:35 -0500)]
Unify chown and chgrp, add support for -hHLP flags.

12 years agoWork around a Bash bug that removes "." from the $PATH when you're root. (The FSF...
Rob Landley [Sun, 24 Jun 2012 20:26:53 +0000 (15:26 -0500)]
Work around a Bash bug that removes "." from the $PATH when you're root. (The FSF believes it knows better than you, and won't let you do things, in the name of Freedom.)

12 years agoAdd chgrp test.
Rob Landley [Sun, 24 Jun 2012 02:28:38 +0000 (21:28 -0500)]
Add chgrp test.

12 years agoMinor code refactoring.
Rob Landley [Sat, 23 Jun 2012 03:14:13 +0000 (22:14 -0500)]
Minor code refactoring.

12 years agoReplace CCFLAGS with description of how to add flags to HOSTCC.
Rob Landley [Tue, 19 Jun 2012 04:23:24 +0000 (23:23 -0500)]
Replace CCFLAGS with description of how to add flags to HOSTCC.

12 years agoAdd date command by Andre Renaud.
Rob Landley [Tue, 19 Jun 2012 04:22:08 +0000 (23:22 -0500)]
Add date command by Andre Renaud.

12 years agoAdd dirtree_parentfd()
Rob Landley [Sat, 16 Jun 2012 20:16:08 +0000 (15:16 -0500)]
Add dirtree_parentfd()

12 years agoMore header fiddling: crypt.h is silly, SUSv4 requires crypt() to be prototyped in...
Rob Landley [Sat, 16 Jun 2012 19:19:56 +0000 (14:19 -0500)]
More header fiddling: crypt.h is silly, SUSv4 requires crypt() to be prototyped in unistd.h. The fact glibc refuses to do so without a wacky #define is a glibc bug, treat it as such.

12 years agoA few more links for the index.
Rob Landley [Thu, 14 Jun 2012 05:33:33 +0000 (00:33 -0500)]
A few more links for the index.

12 years agoCosmetic tweak to command preamble.
Rob Landley [Thu, 14 Jun 2012 05:01:14 +0000 (00:01 -0500)]
Cosmetic tweak to command preamble.

12 years agoFix an embarassing bug causing ls -l to segfault on 32 bit targets.
Rob Landley [Thu, 14 Jun 2012 04:58:21 +0000 (23:58 -0500)]
Fix an embarassing bug causing ls -l to segfault on 32 bit targets.

12 years agoDelete wrappers converted to commands.
Rob Landley [Tue, 12 Jun 2012 06:14:50 +0000 (01:14 -0500)]
Delete wrappers converted to commands.

12 years agoMultiplexer needs stayroot flag for suid handling.
Rob Landley [Tue, 12 Jun 2012 04:57:16 +0000 (23:57 -0500)]
Multiplexer needs stayroot flag for suid handling.

12 years agoThe linux from scratch build wants -v on chmod.
Rob Landley [Mon, 11 Jun 2012 00:44:33 +0000 (19:44 -0500)]
The linux from scratch build wants -v on chmod.

12 years agoImplement DIRTREE_SYMFOLLOW and ls -cSHL.
Rob Landley [Sun, 10 Jun 2012 03:25:49 +0000 (22:25 -0500)]
Implement DIRTREE_SYMFOLLOW and ls -cSHL.

12 years agoFeeding -1 to xdup() isn't an error.
Rob Landley [Sun, 10 Jun 2012 00:49:37 +0000 (19:49 -0500)]
Feeding -1 to xdup() isn't an error.

12 years agoAdd ls -kqsunort, and fix -F @symlink.
Rob Landley [Sun, 10 Jun 2012 00:06:49 +0000 (19:06 -0500)]
Add ls -kqsunort, and fix -F @symlink.

12 years agoUpdate chmod to work with new dirtree, and fix bugs in string_to_mode().
Rob Landley [Sun, 3 Jun 2012 05:32:12 +0000 (00:32 -0500)]
Update chmod to work with new dirtree, and fix bugs in string_to_mode().

12 years agoChanged my mind about the design again, now callback is dirtree_opennode() and recurs...
Rob Landley [Sat, 2 Jun 2012 01:27:51 +0000 (20:27 -0500)]
Changed my mind about the design again, now callback is dirtree_opennode() and recursion choice is how caller interprets flags.

12 years agoFactor out dirtree_comeagain() callback, setting up depth-first search with open...
Rob Landley [Sat, 2 Jun 2012 01:04:39 +0000 (20:04 -0500)]
Factor out dirtree_comeagain() callback, setting up depth-first search with open filehandle in node->extra.

12 years agoConvert another realpath use to xrealpath().
Rob Landley [Fri, 1 Jun 2012 22:59:11 +0000 (17:59 -0500)]
Convert another realpath use to xrealpath().

12 years agoConvert mktemp to use xrealpath, and general clean up while there.
Rob Landley [Fri, 1 Jun 2012 18:51:22 +0000 (13:51 -0500)]
Convert mktemp to use xrealpath, and general clean up while there.

12 years agoAdd xrealpath() at suggestion of Ashish Briggers.
Rob Landley [Fri, 1 Jun 2012 18:50:41 +0000 (13:50 -0500)]
Add xrealpath() at suggestion of Ashish Briggers.

12 years agoImplement -C and -x for ls.
Rob Landley [Fri, 1 Jun 2012 02:22:10 +0000 (21:22 -0500)]
Implement -C and -x for ls.

12 years agocp doesn't really need the optstring + logic. Still needs to be updated for new...
Rob Landley [Fri, 1 Jun 2012 02:17:11 +0000 (21:17 -0500)]
cp doesn't really need the optstring + logic.  Still needs to be updated for new dirtree, though.

12 years agoUpdate chgrp so -R works, tweaking DIRTREE_COMEAGAIN design along the way.
Rob Landley [Sun, 27 May 2012 05:56:17 +0000 (00:56 -0500)]
Update chgrp so -R works, tweaking DIRTREE_COMEAGAIN design along the way.

12 years agoProbe available libraries to link --as-needed, avoiding "unknown libarary" errors.
Rob Landley [Thu, 24 May 2012 02:54:16 +0000 (21:54 -0500)]
Probe available libraries to link --as-needed, avoiding "unknown libarary" errors.

12 years agodirtree logic cleanup: switch DIRTREE_NORECURSE and DIRTREE_NOSAVE to DIRTREE_RECURSE...
Rob Landley [Sun, 20 May 2012 20:00:19 +0000 (15:00 -0500)]
dirtree logic cleanup: switch DIRTREE_NORECURSE and DIRTREE_NOSAVE to DIRTREE_RECURSE and DIRTREE_SAVE.

12 years agoSilence pointless warnings.
Rob Landley [Sun, 20 May 2012 19:58:39 +0000 (14:58 -0500)]
Silence pointless warnings.

12 years agoFirst pass at a complete rewrite of string_to_mode(). (It compiled!)
Rob Landley [Thu, 17 May 2012 02:11:43 +0000 (21:11 -0500)]
First pass at a complete rewrite of string_to_mode().  (It compiled!)

12 years agoRemove strndupa() gnu-ism at Georgi's suggestion, and adjust mdev to compile with...
Rob Landley [Wed, 9 May 2012 11:39:01 +0000 (06:39 -0500)]
Remove strndupa() gnu-ism at Georgi's suggestion, and adjust mdev to compile with new dirtree. (No idea if it works, this command was never finished and needs a lot more work.)

12 years agoWhitespace (tabs vs spaces) cleanup.
Rob Landley [Wed, 9 May 2012 11:11:23 +0000 (06:11 -0500)]
Whitespace (tabs vs spaces) cleanup.

12 years agoAddition of mktemp
Elie De Brauwer [Tue, 1 May 2012 09:45:45 +0000 (11:45 +0200)]
Addition of mktemp

12 years agoGeorgi pointed out that some overly-pedantic C libraries require you to include both...
Rob Landley [Sat, 28 Apr 2012 06:22:50 +0000 (01:22 -0500)]
Georgi pointed out that some overly-pedantic C libraries require you to include both "string.h" and "strings.h". (Most don't.)

12 years agoSimplify/unify listfiles recursion: populate directory node (and detect top of tree...
Rob Landley [Fri, 27 Apr 2012 00:59:38 +0000 (19:59 -0500)]
Simplify/unify listfiles recursion: populate directory node (and detect top of tree) at start of function rather than end (and redundantly in main). Move title printing down next to total printing.

12 years agoAdding initial version of login.c
Elie De Brauwer [Tue, 24 Apr 2012 21:09:27 +0000 (23:09 +0200)]
Adding initial version of login.c

12 years agoMake -d work in ls.
Rob Landley [Wed, 25 Apr 2012 01:44:09 +0000 (20:44 -0500)]
Make -d work in ls.

12 years agoRequire -R to recurse, but descend into directories listed on command line.
Rob Landley [Tue, 24 Apr 2012 10:48:03 +0000 (05:48 -0500)]
Require -R to recurse, but descend into directories listed on command line.

12 years agoMore work on ls. Now ls -lR sort of works-ish.
Rob Landley [Mon, 23 Apr 2012 04:01:23 +0000 (23:01 -0500)]
More work on ls.  Now ls -lR sort of works-ish.

12 years agoAdding logname
Elie De Brauwer [Sat, 14 Apr 2012 17:55:13 +0000 (19:55 +0200)]
Adding logname

12 years agoRefactor uniq.c a bit.
Rob Landley [Sun, 15 Apr 2012 03:34:34 +0000 (22:34 -0500)]
Refactor uniq.c a bit.

12 years agoTeach make.sh to create flag macros, but with the wrong names. Dunno how to make...
Rob Landley [Sun, 15 Apr 2012 03:31:53 +0000 (22:31 -0500)]
Teach make.sh to create flag macros, but with the wrong names. Dunno how to make a translation macro or #ifdef guard to get the names right so they actually be _used_ yet...

12 years agoRewrite dirtree so we don't need readdir, scandir, and fts.h. Rewrite ls (from scrat...
Rob Landley [Sun, 15 Apr 2012 03:30:41 +0000 (22:30 -0500)]
Rewrite dirtree so we don't need readdir, scandir, and fts.h.  Rewrite ls (from scratch) to use new dirtree infrastructure. (This breaks everything else that currently uses dirtree.)

12 years agoComment and whitespace changes.
Rob Landley [Sun, 15 Apr 2012 02:43:24 +0000 (21:43 -0500)]
Comment and whitespace changes.

12 years agoUse FLAG_ macros for echo optflags.
Rob Landley [Sun, 15 Apr 2012 02:41:19 +0000 (21:41 -0500)]
Use FLAG_ macros for echo optflags.

12 years agoMatch uint64_t with PRIu64 to avoid warnings on 64 bit builds.
Rob Landley [Sun, 15 Apr 2012 02:27:00 +0000 (21:27 -0500)]
Match uint64_t with PRIu64 to avoid warnings on 64 bit builds.

12 years agotoybuf usage enhancement, tabs to spaces, teminal height refresh
Elie De Brauwer [Wed, 11 Apr 2012 17:11:45 +0000 (19:11 +0200)]
toybuf usage enhancement, tabs to spaces, teminal height refresh

12 years agoReplace ?: gcc extension with standard code
Kevin Chase [Sat, 7 Apr 2012 17:15:52 +0000 (10:15 -0700)]
Replace ?: gcc extension with standard code

12 years agoAdding vmstat
Elie De Brauwer [Mon, 9 Apr 2012 11:31:44 +0000 (13:31 +0200)]
Adding vmstat

12 years agoAdding mountpoint
Elie De Brauwer [Mon, 2 Apr 2012 21:30:49 +0000 (23:30 +0200)]
Adding mountpoint

12 years agoImplement comm.
Ilya Kuzmich [Thu, 22 Mar 2012 14:01:34 +0000 (09:01 -0500)]
Implement comm.

12 years agoThe -s flag includes staying quiet about missing files.
Rob Landley [Thu, 22 Mar 2012 14:00:59 +0000 (09:00 -0500)]
The -s flag includes staying quiet about missing files.

12 years agoTest the right variable in NULL guard, and add NOP "s" suffix.
Rob Landley [Wed, 21 Mar 2012 22:49:14 +0000 (17:49 -0500)]
Test the right variable in NULL guard, and add NOP "s" suffix.

12 years agoUsing /dev/tty for yesno() is wrong because yes 'n' | cp -ial needs to work.
Rob Landley [Tue, 20 Mar 2012 16:10:54 +0000 (11:10 -0500)]
Using /dev/tty for yesno() is wrong because yes 'n' | cp -ial needs to work.

12 years agoUnwind gratuitous macros.
Rob Landley [Tue, 20 Mar 2012 01:56:18 +0000 (20:56 -0500)]
Unwind gratuitous macros.

12 years agoHave probe for unshare test for actual unshare() function in libc.
Rob Landley [Tue, 20 Mar 2012 01:15:08 +0000 (20:15 -0500)]
Have probe for unshare test for actual unshare() function in libc.