OSDN Git Service
Elliott Hughes [Wed, 3 May 2017 02:11:42 +0000 (02:11 +0000)]
Fix the find tests. am:
86537b33a0 am:
5917b9eca4 am:
8deae91cfc
am:
6b613cb26e
Change-Id: I1253e7837774f8854d55b7c9ee46c73a7b0dbd95
Elliott Hughes [Wed, 3 May 2017 02:09:11 +0000 (02:09 +0000)]
Fix the find tests. am:
86537b33a0 am:
5917b9eca4
am:
8deae91cfc
Change-Id: Iaf2e474c23eb7691906efcf3a1f2be3bc1ae9183
Elliott Hughes [Wed, 3 May 2017 02:06:41 +0000 (02:06 +0000)]
Fix the find tests. am:
86537b33a0
am:
5917b9eca4
Change-Id: I6d36a76e238e139452917cb861eff22d85f86e25
Elliott Hughes [Wed, 3 May 2017 02:04:11 +0000 (02:04 +0000)]
Fix the find tests.
am:
86537b33a0
Change-Id: I529dfdee828b926aee22871944aea2c7e5bfa8cc
Elliott Hughes [Wed, 3 May 2017 00:26:30 +0000 (17:26 -0700)]
Fix the find tests.
Four of the find tests were failing because they require mkfifo.
mkfifo also came up trying to run heaptrack on Android.
Bug: N/A
Test: ran find tests
Change-Id: I693818ddff42e516c370b2bfabd39b5486bd0d95
Elliott Hughes [Tue, 2 May 2017 22:08:20 +0000 (22:08 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
c5a1dd459a am:
e71581dbbc am:
3c1a8f8004
am:
7264722004
Change-Id: Ic5919b8379aa07a670d8d7445ef8368fc90fadfa
Elliott Hughes [Tue, 2 May 2017 22:05:54 +0000 (22:05 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
c5a1dd459a am:
e71581dbbc
am:
3c1a8f8004
Change-Id: I2b4f28e9ce86d10410c6153f1193864912a848f9
Elliott Hughes [Tue, 2 May 2017 22:03:23 +0000 (22:03 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
c5a1dd459a
am:
e71581dbbc
Change-Id: Ibee2b9d8160f87deb1c0f0581ab219b032f505b7
Elliott Hughes [Tue, 2 May 2017 22:00:53 +0000 (22:00 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am:
c5a1dd459a
Change-Id: I4c5f54d1e302f5a783583249e111a3f64a6f39a5
Elliott Hughes [Tue, 2 May 2017 18:34:07 +0000 (11:34 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD
Change-Id: I1b1ca7c3fb41586cdbad50f49d67f61ff12c9718
Rob Landley [Sun, 30 Apr 2017 07:46:36 +0000 (02:46 -0500)]
Android NDK doesn't have cutils/sched_policy.h so add a probed config symbol.
Elliott Hughes [Fri, 28 Apr 2017 22:25:56 +0000 (15:25 -0700)]
Android needs -llog to link.
Elliott Hughes [Fri, 28 Apr 2017 22:21:36 +0000 (15:21 -0700)]
Building mkpasswd on Android makes no sense.
And won't work anyway because we don't have crypt(3).
Elliott Hughes [Wed, 26 Apr 2017 22:01:41 +0000 (15:01 -0700)]
Implement zlib-based gzip/gunzip/zcat.
Rob Landley [Wed, 26 Apr 2017 21:36:19 +0000 (16:36 -0500)]
Elliott wants to run the toybox tests on android host and there's an sh but
it isn't toysh, so test for a bash alias.
Rob Landley [Tue, 25 Apr 2017 07:21:39 +0000 (02:21 -0500)]
Forgot to check in one of the files for bzcat.test
Rob Landley [Tue, 25 Apr 2017 00:01:33 +0000 (19:01 -0500)]
Another FAQ, and some related tweaks as long as I was there.
Elliott Hughes [Mon, 24 Apr 2017 19:44:44 +0000 (19:44 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
52a5544db4 am:
8a1f704d21 am:
3648c93f2f
am:
4ed36c97e0
Change-Id: Ied4b2cf44ca0e7990686c941e0301463a081c6fd
Elliott Hughes [Mon, 24 Apr 2017 19:22:12 +0000 (19:22 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
52a5544db4 am:
8a1f704d21
am:
3648c93f2f
Change-Id: I610b76405dbfbb734324343909ebd5898eeb00ec
Elliott Hughes [Mon, 24 Apr 2017 19:10:10 +0000 (19:10 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
52a5544db4
am:
8a1f704d21
Change-Id: Ie580114779511c8ce6f49c26f2172d54e9fb7092
Elliott Hughes [Mon, 24 Apr 2017 18:56:31 +0000 (18:56 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am:
52a5544db4
Change-Id: I85e6fee0cf60c1daf18ea022c827f40dfb19faea
Elliott Hughes [Mon, 24 Apr 2017 17:37:49 +0000 (10:37 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD
Change-Id: I1f472e17af7d5ead3a40bb174d554c6c92d33392
Rob Landley [Wed, 19 Apr 2017 06:44:16 +0000 (01:44 -0500)]
Add ls -ll (with --full-time as a compatibility synonym) to show nanoseconds.
(And, for some reason, timezone. Individual files have timezones?)
Rob Landley [Tue, 18 Apr 2017 18:19:07 +0000 (13:19 -0500)]
The kernel needs bc to build because
https://landley.net/notes-2013.html#28-03-2013 so add it to the airlock install.
Elliott Hughes [Mon, 17 Apr 2017 22:38:03 +0000 (22:38 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
64279d4042 am:
0c31248456 am:
bd918d8ef4
am:
2ef13a4b7b
Change-Id: I94f223a3b70356365067e0d487f2cd0d3e491052
Elliott Hughes [Mon, 17 Apr 2017 21:51:36 +0000 (21:51 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
64279d4042 am:
0c31248456
am:
bd918d8ef4
Change-Id: I3584ed12044c9f9151c8b9d16324ded9322fc685
Elliott Hughes [Mon, 17 Apr 2017 21:42:11 +0000 (21:42 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
64279d4042
am:
0c31248456
Change-Id: I8ed7409d13f101a209b0d3007c4d9100a96927b6
Elliott Hughes [Mon, 17 Apr 2017 21:37:15 +0000 (21:37 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am:
64279d4042
Change-Id: I48207b36bf2d3b3285791da11750488217eeae89
Elliott Hughes [Mon, 17 Apr 2017 18:40:08 +0000 (11:40 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Sat, 15 Apr 2017 18:27:18 +0000 (11:27 -0700)]
Use $(( rather than $[ for arithmetic in expand.test.
I can't find any reference to $[ for arithmetic on the bash man page, but it
seems to be a synonym for $((. mksh doesn't support this, so the expand tests
that use it fail on Android. No other toybox tests are using $[.
Elliott Hughes [Fri, 14 Apr 2017 20:43:16 +0000 (13:43 -0700)]
Make ls.test work without awk.
Elliott Hughes [Mon, 17 Apr 2017 17:29:14 +0000 (17:29 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
d52431021f am:
3fad563468 am:
464150be12
am:
08da1d227e
Change-Id: I532b45dc4f17e6f5ab2d205fbbad01dd63f35dcc
Elliott Hughes [Mon, 17 Apr 2017 17:15:33 +0000 (17:15 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
d52431021f am:
3fad563468
am:
464150be12
Change-Id: I6906fdd515f77e648ea530dd1689ae1e068d377f
Elliott Hughes [Mon, 17 Apr 2017 17:10:57 +0000 (17:10 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
d52431021f
am:
3fad563468
Change-Id: I27bb20bcd1d406072a3dec94305dc6af3a69d10d
Elliott Hughes [Mon, 17 Apr 2017 17:06:29 +0000 (17:06 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am:
d52431021f
Change-Id: I73eb34680554c98893f8d8436c0bdc6af53f2b98
Elliott Hughes [Mon, 17 Apr 2017 16:57:16 +0000 (09:57 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Sat, 8 Apr 2017 06:15:52 +0000 (23:15 -0700)]
Speed up tail.test for shells without builtin printf.
The test only needs echo, and Android currently doesn't use mksh's
builtin printf; the toybox printf is fuller featured and less buggy,
but a lot slower to call in a loop like this (and mksh doesn't fall
back to the printf on the path if given something it can't handle,
so we can't have the best of both worlds).
Without this hack, the tail test takes as long as all the other
tests put together.
Sandeep Patil [Fri, 14 Apr 2017 21:03:42 +0000 (21:03 +0000)]
Add toybox_vendor for treble products am:
19da0701da
am:
17aa587838
Change-Id: I8bc4f86f61838584a3ea3f9278199e6acfedf745
Sandeep Patil [Fri, 14 Apr 2017 21:01:09 +0000 (21:01 +0000)]
Add toybox_vendor for treble products
am:
19da0701da
Change-Id: If5fdf464fa0c15d908c8de82dfab92cd53a9ce19
Sandeep Patil [Wed, 12 Apr 2017 21:53:55 +0000 (14:53 -0700)]
Add toybox_vendor for treble products
Make the executable static so it doesn't have links back to /system and
build it only for treble products.
Bug:
36463595
Test: toybox_vendor and its symlinks are installed in /vendor and
working on sailfish
Change-Id: I1f5c8ba6b7f243a163cbefbfe76d1b098d31fcd8
Signed-off-by: Sandeep Patil <sspatil@google.com>
Rob Landley [Wed, 12 Apr 2017 18:41:10 +0000 (13:41 -0500)]
Default to -b rather than -q when output is to a tty.
Elliott Hughes [Tue, 11 Apr 2017 20:31:12 +0000 (20:31 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
ddc2344ff9 am:
e4c2dbe458 am:
6825a904c1
am:
c1dcadc0f7
Change-Id: Icbd34a18647fda22d0239f5d20e661b33faf89cd
Elliott Hughes [Tue, 11 Apr 2017 20:25:56 +0000 (20:25 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
ddc2344ff9 am:
e4c2dbe458
am:
6825a904c1
Change-Id: I03177ce2f9fafb24c1ac6f92243b3fd1d87c25aa
Elliott Hughes [Tue, 11 Apr 2017 20:19:58 +0000 (20:19 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
ddc2344ff9
am:
e4c2dbe458
Change-Id: Ica211d41cffecfeb39979df1c3aef8d4502c283e
Elliott Hughes [Tue, 11 Apr 2017 20:15:00 +0000 (20:15 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am:
ddc2344ff9
Change-Id: Idfaf86880f92024492c22069a42540f523cf1b58
Elliott Hughes [Sat, 8 Apr 2017 06:00:54 +0000 (23:00 -0700)]
Fix "make test_split".
The test shouldn't assume there's a toybox binary on the path.
Elliott Hughes [Tue, 11 Apr 2017 19:36:15 +0000 (12:36 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD
Rob Landley [Tue, 11 Apr 2017 18:38:37 +0000 (13:38 -0500)]
Silence a broken warning by hitting it with a rock.
Elliott Hughes [Wed, 5 Apr 2017 17:13:47 +0000 (10:13 -0700)]
Make fdisk buildable.
The argument to help_exit is a char*, not a FILE*.
Elliott Hughes [Thu, 6 Apr 2017 21:44:45 +0000 (14:44 -0700)]
Fix touch -a/-m (and add the missing tests).
utimensat takes atime in [0] and mtime in [1], but since we're overwriting
with UTIME_OMIT, we actually want to flip the comparison so -a blats 1 and
-m blats 0.
Elliott Hughes [Mon, 3 Apr 2017 21:12:08 +0000 (14:12 -0700)]
Add "uudecode -o -" support.
busybox uudecode supports this, and POSIX explicitly mentions it (albeit
only in the "STDOUT" section). Plus Android doesn't have /dev/stdout and
/dev/stdin, so this lets us rewrite the uudecode tests so they pass on
Android too.
Rob Landley [Sat, 8 Apr 2017 18:52:18 +0000 (13:52 -0500)]
Fix the ls -m test (which is just a whitespace issue, but eh).
While we're at it, ls -m wordwrap was one column early.
Elliott Hughes [Sat, 8 Apr 2017 02:36:59 +0000 (02:36 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
87edec9482 am:
4da5712e56 am:
e08da3253c
am:
4dbe345131
Change-Id: I2b04f22f369b29fd7b897480f8ac4908a033c29c
Elliott Hughes [Sat, 8 Apr 2017 02:32:58 +0000 (02:32 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
87edec9482 am:
4da5712e56
am:
e08da3253c
Change-Id: Ibfef7570d2b6dff62a682e34d8134d55f39896ce
Elliott Hughes [Sat, 8 Apr 2017 02:28:58 +0000 (02:28 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
87edec9482
am:
4da5712e56
Change-Id: I97b76e85d907092813a9ba85d46fda6b88e82473
Elliott Hughes [Sat, 8 Apr 2017 02:24:30 +0000 (02:24 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am:
87edec9482
Change-Id: I4afed0610dae08ab3bc21529a4c104e87dba0d41
Elliott Hughes [Fri, 7 Apr 2017 23:21:07 +0000 (16:21 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 3 Apr 2017 15:57:42 +0000 (08:57 -0700)]
Make renice.test work without awk.
Also try to only kill processes we created.
Elliott Hughes [Mon, 3 Apr 2017 15:33:23 +0000 (08:33 -0700)]
Remove mount.test awk dependency.
Parsing file(1) output isn't a good way to determine file system type anyway.
Elliott Hughes [Sun, 2 Apr 2017 19:29:39 +0000 (12:29 -0700)]
Make pgrep tests runnable on toybox-only systems.
Also make the cleanup kill more focused.
Elliott Hughes [Sun, 2 Apr 2017 19:20:53 +0000 (12:20 -0700)]
Make pkill tests runnable on a toybox-only system.
Also use a much stricter regex in the regex test to avoid killing innocent
bystanders.
Elliott Hughes [Sun, 2 Apr 2017 19:27:38 +0000 (12:27 -0700)]
Make bzcat tests runnable on a toybox-only system.
Rob Landley [Tue, 4 Apr 2017 23:13:51 +0000 (18:13 -0500)]
Add "testcmd" function as an alternative to "testing" for tests/*.test, and
check in two converted commands.
Josh Gao [Tue, 4 Apr 2017 22:41:27 +0000 (22:41 +0000)]
ps: don't query for terminal size if not a tty. am:
e67e1e0411
am:
d542fced76
Change-Id: I7c0b078e728bb9598bd97449d79053ff801671d5
Josh Gao [Tue, 4 Apr 2017 22:39:28 +0000 (22:39 +0000)]
ps: don't query for terminal size if not a tty.
am:
e67e1e0411
Change-Id: Ifddac2fdff52aadafa59074fc009440e906f53c2
Josh Gao [Mon, 27 Mar 2017 22:53:03 +0000 (15:53 -0700)]
ps: don't query for terminal size if not a tty.
`ps -A | cat` shouldn't have different output depending on the size of
your terminal window.
(cherry picked from commit
af39a2c46a6f899d298f63a270e8fd2338904ad3)
Change-Id: Ib75abd694e49f340511aa63c601d144abe00837d
Elliott Hughes [Tue, 4 Apr 2017 20:24:51 +0000 (20:24 +0000)]
Merge changes I85f365f5,I2b3c82fb,I4f196054,I9343237c,I53e4444f, ... am:
84155ed95f am:
fe40e182bd am:
aa3c936e37
am:
1647751dee
Change-Id: Ie5074b0e1c243908b1900ada7faa40716f3d1ca9
Elliott Hughes [Tue, 4 Apr 2017 20:20:52 +0000 (20:20 +0000)]
Merge changes I85f365f5,I2b3c82fb,I4f196054,I9343237c,I53e4444f, ... am:
84155ed95f am:
fe40e182bd
am:
aa3c936e37
Change-Id: I78b5a5369828511e3474cb76e05c854ba0b6a40c
Elliott Hughes [Tue, 4 Apr 2017 20:16:18 +0000 (20:16 +0000)]
Merge changes I85f365f5,I2b3c82fb,I4f196054,I9343237c,I53e4444f, ... am:
84155ed95f
am:
fe40e182bd
Change-Id: Ica182ed32560b39cf30be09ccce802fbb0650354
Elliott Hughes [Tue, 4 Apr 2017 20:10:50 +0000 (20:10 +0000)]
Merge changes I85f365f5,I2b3c82fb,I4f196054,I9343237c,I53e4444f, ...
am:
84155ed95f
Change-Id: I2778e3618e7c8ac4445bb7d4a7f92fc9ba3ffbc6
Treehugger Robot [Tue, 4 Apr 2017 19:47:22 +0000 (19:47 +0000)]
Merge changes I85f365f5,I2b3c82fb,I4f196054,I9343237c,I53e4444f, ...
* changes:
Merge remote-tracking branch 'toybox/master' into HEAD
Implement dmesg -T.
Don't try to implement %s, we have @seconds, strptime() in libc tends not to have it, and implementing our own means a pattern like "Time %%%s%%" is expensive to handle the corner cases of.
New date range tests are simple, won't catch Feb 29 in non-leap-year (or April 31 in any year). Some normalization allowed, exclusions are just what http://pubs.opengroup.org/onlinepubs/
9699919799/basedefs/time.h.html says.
Replace chkmktime() (which produces false positive normalization failures) with range checks for seconds, minutes, hours, day of month, and month.
ps: don't query for terminal size if not a tty.
Fix the type of the callback in getprop.
We grew a few more commands that weren't on the roadmap (mostly from android) so throw them in the "requests" category so they show up in status.html.
Elliott Hughes [Tue, 4 Apr 2017 17:47:54 +0000 (10:47 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD
Change-Id: I85f365f5bc991ebefb12500ee1f53b3d250f814a
Elliott Hughes [Sun, 2 Apr 2017 18:58:49 +0000 (11:58 -0700)]
Fix ls -a and ls -A tests.
Rob Landley [Mon, 3 Apr 2017 21:57:40 +0000 (16:57 -0500)]
Trivial cleanup. (Whitespace, brackets, and remove unnecessary typecasts.)
Rob Landley [Mon, 3 Apr 2017 20:48:21 +0000 (15:48 -0500)]
Add gzip support. (Doesn't show source OS and timestamp, but reporting them
isn't obviously useful.)
Elliott Hughes [Sat, 25 Mar 2017 20:08:20 +0000 (13:08 -0700)]
Implement dmesg -T.
Also refactor so that legacy mode gets all the new functionality too, and
add -S to make it easier to test legacy mode on 3.5 or newer kernels (at least
on the host; on Android the syslog(2) system call is no longer allowed).
Bug: http://b/
36090178
Elliott Hughes [Mon, 3 Apr 2017 15:06:45 +0000 (15:06 +0000)]
Build toybox diff. am:
98aae74f4a am:
9fb8ea3215 am:
62a69f78fb
am:
157cbabaac
Change-Id: I30e4e3fa53829a3b02a5abbd6a6b17d3e4822813
Elliott Hughes [Mon, 3 Apr 2017 15:03:15 +0000 (15:03 +0000)]
Build toybox diff. am:
98aae74f4a am:
9fb8ea3215
am:
62a69f78fb
Change-Id: I841ff3e0439302fd50f6d4851546112acef84c30
Elliott Hughes [Mon, 3 Apr 2017 14:59:45 +0000 (14:59 +0000)]
Build toybox diff. am:
98aae74f4a
am:
9fb8ea3215
Change-Id: I8ce6b43789f60dc098affebceddb395af6892bc4
Elliott Hughes [Mon, 3 Apr 2017 14:56:14 +0000 (14:56 +0000)]
Build toybox diff.
am:
98aae74f4a
Change-Id: Ib6b754428ce1f0836729fedaeab077aa539acb5d
Elliott Hughes [Sat, 1 Apr 2017 16:18:14 +0000 (09:18 -0700)]
Build toybox diff.
Necessary to run toybox tests on the device (and presumably any other
command-line testing that wants to compare actual to expected results).
Bug: N/A
Test: ran toybox tests on-device (script coming soon)
Change-Id: Ib7a6044d6d6af4fc34996e66cba0a023b3e8dce4
Elliott Hughes [Thu, 30 Mar 2017 02:00:27 +0000 (02:00 +0000)]
Use external/bzip2 for bunzip2 and bzcat. am:
9263620f12
am:
6a9465163b
Change-Id: I60ab100395556475cc5f8c715ab368b0edece0d9
Elliott Hughes [Thu, 30 Mar 2017 01:51:26 +0000 (01:51 +0000)]
Use external/bzip2 for bunzip2 and bzcat.
am:
9263620f12
Change-Id: I4c6c7502cffd393f43a88ff2ccf9d8ed658fecb2
Elliott Hughes [Tue, 28 Mar 2017 06:02:40 +0000 (23:02 -0700)]
Use external/bzip2 for bunzip2 and bzcat.
external/bzip2 also gives us bzip2.
Bug: http://b/
36653808
Test: builds
(cherry picked from commit
7602ee6309a07187392f1b686bfcad00ade886a0)
Change-Id: I7ca8b0524a56772681232352a8124a5acf520025
Rob Landley [Wed, 29 Mar 2017 01:39:31 +0000 (20:39 -0500)]
Don't try to implement %s, we have @seconds, strptime() in libc tends
not to have it, and implementing our own means a pattern like
"Time %%%s%%" is expensive to handle the corner cases of.
Rob Landley [Wed, 29 Mar 2017 01:19:28 +0000 (20:19 -0500)]
New date range tests are simple, won't catch Feb 29 in non-leap-year
(or April 31 in any year). Some normalization allowed, exclusions are just
what http://pubs.opengroup.org/onlinepubs/
9699919799/basedefs/time.h.html says.
Rob Landley [Wed, 29 Mar 2017 01:16:41 +0000 (20:16 -0500)]
Replace chkmktime() (which produces false positive normalization failures)
with range checks for seconds, minutes, hours, day of month, and month.
Elliott Hughes [Wed, 29 Mar 2017 00:43:49 +0000 (00:43 +0000)]
Use external/bzip2 for bunzip2 and bzcat. am:
7602ee6309 am:
da2934e200 am:
7ea4b87db6
am:
224bd57ba0
Change-Id: I45cb92739916a479a40d5cc6ded615b1a71247d8
Elliott Hughes [Wed, 29 Mar 2017 00:40:21 +0000 (00:40 +0000)]
Use external/bzip2 for bunzip2 and bzcat. am:
7602ee6309 am:
da2934e200
am:
7ea4b87db6
Change-Id: Ib62159075dc1451837db3e2a0dcbb9a19cf07ff1
Elliott Hughes [Wed, 29 Mar 2017 00:37:50 +0000 (00:37 +0000)]
Use external/bzip2 for bunzip2 and bzcat. am:
7602ee6309
am:
da2934e200
Change-Id: I8b67ca814e10533b69d97a6bf63c4eb76fec3151
Elliott Hughes [Wed, 29 Mar 2017 00:36:33 +0000 (00:36 +0000)]
Use external/bzip2 for bunzip2 and bzcat.
am:
7602ee6309
Change-Id: I04637694adfadc341d8239cc63742c8fd4880f91
Josh Gao [Mon, 27 Mar 2017 22:53:03 +0000 (15:53 -0700)]
ps: don't query for terminal size if not a tty.
`ps -A | cat` shouldn't have different output depending on the size of
your terminal window.
Elliott Hughes [Tue, 28 Mar 2017 06:02:40 +0000 (23:02 -0700)]
Use external/bzip2 for bunzip2 and bzcat.
external/bzip2 also gives us bzip2.
Bug: http://b/
36653808
Test: builds
Change-Id: Ib73563face4e0d2677e06652cd3fb7b36c7e6e17
Elliott Hughes [Wed, 22 Mar 2017 17:35:14 +0000 (10:35 -0700)]
Fix the type of the callback in getprop.
Fixes:
toys/android/getprop.c:56:39: warning: incompatible pointer types
passing 'void (void *, const char *, const char *)' to parameter of
type 'void (*)(void *, const char *, const char *, uint32_t)'
(aka 'void (*)(void *, const char *, const char *, unsigned int)')
[-Wincompatible-pointer-types]
__system_property_read_callback(pi, read_callback, NULL);
^~~~~~~~~~~~~
Elliott Hughes [Fri, 24 Mar 2017 17:01:42 +0000 (17:01 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
f6e803dd5c am:
df46ccd574
am:
75e6bb9159
Change-Id: I1b42c0d42e24044324253b14a4e6806cccb2d9d3
Elliott Hughes [Fri, 24 Mar 2017 16:59:41 +0000 (16:59 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am:
f6e803dd5c
am:
df46ccd574
Change-Id: Ib039f6836210863337377f22d977526e717659ae
Rob Landley [Fri, 24 Mar 2017 16:59:26 +0000 (11:59 -0500)]
We grew a few more commands that weren't on the roadmap (mostly from android)
so throw them in the "requests" category so they show up in status.html.
Elliott Hughes [Fri, 24 Mar 2017 16:57:43 +0000 (16:57 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am:
f6e803dd5c
Change-Id: I77b0ed43d8309eadd39cf63ea4b4e5e23cb37fe0
Elliott Hughes [Fri, 24 Mar 2017 06:19:37 +0000 (23:19 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD
Rob Landley [Thu, 23 Mar 2017 16:35:09 +0000 (11:35 -0500)]
Now that just about everything has --help, don't output help for argument errors