OSDN Git Service

android-x86/external-toybox.git
6 years agoSnap for 4623514 from 12285d088a3e672a5f3964952dac3b443f67574c to pi-release pie-x86
android-build-team Robot [Tue, 27 Feb 2018 08:25:23 +0000 (08:25 +0000)]
Snap for 4623514 from 12285d088a3e672a5f3964952dac3b443f67574c to pi-release

Change-Id: If40533d2b49ca9b0ce615c9f8385c204adbbe3be

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 14cafec540 am: 4d29f725c0
Elliott Hughes [Mon, 26 Feb 2018 20:14:11 +0000 (20:14 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 14cafec540 am: 4d29f725c0
am: 7f401dbdde

Change-Id: I7ba3d69a58986c71eaf798e7404c634c51a7352c

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 14cafec540
Elliott Hughes [Mon, 26 Feb 2018 20:05:55 +0000 (20:05 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 14cafec540
am: 4d29f725c0

Change-Id: Id383a5a6051093a22d568dc7c690ae259d73022a

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 26 Feb 2018 19:58:49 +0000 (19:58 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: 14cafec540

Change-Id: Ic1986b5eb97accf70fcf8af0e689503f51da4a4f

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 26 Feb 2018 18:29:02 +0000 (10:29 -0800)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: Ifc6e2ca6cd1939f4d270a5adae1f68c899e2075f

6 years agoUpdate version string to 0.7.6.
Rob Landley [Sat, 24 Feb 2018 17:24:22 +0000 (11:24 -0600)]
Update version string to 0.7.6.

6 years agoBugfix, facility values are <<3 in the headers.
Rob Landley [Fri, 23 Feb 2018 02:09:08 +0000 (20:09 -0600)]
Bugfix, facility values are <<3 in the headers.

6 years agoWork around a musl-libc bug that has facilitynames/prioritynames in headers
Rob Landley [Mon, 19 Feb 2018 01:35:10 +0000 (19:35 -0600)]
Work around a musl-libc bug that has facilitynames/prioritynames in headers
but then the link fails.

6 years agoAdd RFC link to the examples.
Rob Landley [Sat, 17 Feb 2018 19:03:33 +0000 (13:03 -0600)]
Add RFC link to the examples.

6 years agoSnap for 4603395 from a62c5f6d669cf2d15f54ce58fa4ca025613632e4 to pi-release
android-build-team Robot [Wed, 14 Feb 2018 08:22:25 +0000 (08:22 +0000)]
Snap for 4603395 from a62c5f6d669cf2d15f54ce58fa4ca025613632e4 to pi-release

Change-Id: I6dff7c00ca9a518ea5e068cb330d85286ee13e02

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 9d0d755783 am: 9dad7044ee
Elliott Hughes [Tue, 13 Feb 2018 07:28:00 +0000 (07:28 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 9d0d755783 am: 9dad7044ee
am: 3b3281367c

Change-Id: I35260f9b4b37b9b61500cf914d788fff121253d1

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 9d0d755783
Elliott Hughes [Tue, 13 Feb 2018 07:16:54 +0000 (07:16 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 9d0d755783
am: 9dad7044ee

Change-Id: I6795f845ffdcda4d229415773787c0494b97ec0d

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Tue, 13 Feb 2018 06:59:41 +0000 (06:59 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: 9d0d755783

Change-Id: I5a66e9d66758a3272e5dac219dc563f7ffc6968a

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 12 Feb 2018 20:41:50 +0000 (12:41 -0800)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: Iffded943f8814d22bff3c082ee619623f53be479

6 years agoSnap for 4598635 from 1c98a8e1fb384161159b5ebc5550503818bb255f to pi-release
android-build-team Robot [Sun, 11 Feb 2018 08:21:55 +0000 (08:21 +0000)]
Snap for 4598635 from 1c98a8e1fb384161159b5ebc5550503818bb255f to pi-release

Change-Id: Ibd420c4cdde9c98376038207c572c144c1368060

6 years agoFix ps -T again, but this time read files from tid directory, not pid.
Rob Landley [Sat, 10 Feb 2018 18:38:06 +0000 (12:38 -0600)]
Fix ps -T again, but this time read files from tid directory, not pid.
(Otherwise updating pid to parents makes threads read thread parent data.)

6 years agoRename struct strawberry -> struct ofields, and carveup -> procpid.
Rob Landley [Sat, 10 Feb 2018 16:34:42 +0000 (10:34 -0600)]
Rename struct strawberry -> struct ofields, and carveup -> procpid.

The first contains display fields selectable by the -o argument,
the second contains the /proc/$PID data for one process.

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: b5517d09b2 am: 0ab6910887
Elliott Hughes [Sat, 10 Feb 2018 04:14:09 +0000 (04:14 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: b5517d09b2 am: 0ab6910887
am: 671339863b

Change-Id: If03af1a137e7f7ce154658b73ad2189e8d698dcc

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: b5517d09b2
Elliott Hughes [Sat, 10 Feb 2018 04:06:29 +0000 (04:06 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: b5517d09b2
am: 0ab6910887

Change-Id: If2999e2badb59cc5fbb67b6ef57a7ee851516b0b

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Sat, 10 Feb 2018 04:00:27 +0000 (04:00 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: b5517d09b2

Change-Id: I6578e6446b411e93af01e8883dfb7fd02892493e

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Sat, 10 Feb 2018 01:36:01 +0000 (17:36 -0800)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: Id5e655e6beec5bd291a8f2b53987d646b1f54f5f

6 years agoFix the pidof comm and cmdline tests.
Elliott Hughes [Fri, 9 Feb 2018 06:41:52 +0000 (22:41 -0800)]
Fix the pidof comm and cmdline tests.

If we have a 15-byte name, we don't know whether comm actually matches
or is a truncated form of a longer name that has a common prefix.

For example, with "this-is-a-very-long-name-that-is-too-long", we shouldn't
match "this-is-a-very-" (but the old code would).

The cmdline code was also broken on Android because it used basename(3)
rather than getbasename. This doesn't affect glibc because there's a
workaround in portability.h to ensure that we get the non-POSIX basename(3)
with glibc but then a non-glibc section that ensures everyone else gets
POSIX basename(3). That should probably be removed (and maybe `basename`
poisoned) to prevent similar mistakes in future.

Bug: http://b/73123244

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 4b13881492 am: d21ae1a3cc
Elliott Hughes [Fri, 9 Feb 2018 18:59:43 +0000 (18:59 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 4b13881492 am: d21ae1a3cc
am: 8aa1c6e7f5

Change-Id: I84f2c89ff26a8005d28c72dd1316f54c6926bc92

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 4b13881492
Elliott Hughes [Fri, 9 Feb 2018 18:53:40 +0000 (18:53 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 4b13881492
am: d21ae1a3cc

Change-Id: I3c441f8e25e2b3ae0ba3fa3b91df5ce9d620cff2

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Fri, 9 Feb 2018 18:49:08 +0000 (18:49 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: 4b13881492

Change-Id: I1e2d98073fcbb2b84ab3ccb3eef01f0fdd8c9a99

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Fri, 9 Feb 2018 16:49:48 +0000 (08:49 -0800)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: Ib8bc739a3c5c68f426ff4aef793050db4a10f4a4

6 years agoAndreas Gampe suggested a different fix.
Rob Landley [Fri, 9 Feb 2018 15:03:34 +0000 (09:03 -0600)]
Andreas Gampe suggested a different fix.

(Bionic _does_ do the malloc(0)!=0 thing, the problem is pedantic access
checking, not null dereference. So test count instead.)

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: b02120dad8 am: 7f1d01238d
Elliott Hughes [Thu, 8 Feb 2018 19:45:15 +0000 (19:45 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: b02120dad8 am: 7f1d01238d
am: ffcd050779

Change-Id: I9712e269013d40f33546584e35dbfb528c5e492d

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: b02120dad8
Elliott Hughes [Thu, 8 Feb 2018 19:40:44 +0000 (19:40 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: b02120dad8
am: 7f1d01238d

Change-Id: I87c21d1b6296ab4d356ee9d5b4d83b17ccc12598

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Thu, 8 Feb 2018 19:36:59 +0000 (19:36 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: b02120dad8

Change-Id: I1295c7bd2156f093e702fd2196dc222bf43b2a48

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Thu, 8 Feb 2018 16:18:50 +0000 (08:18 -0800)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: I7ee7afbf48e3b5878c0ce0434d75d37a3214bd11

6 years agoThinko pointed out by Andreas Gampe (causing segfaults in top, oops).
Rob Landley [Thu, 8 Feb 2018 14:57:10 +0000 (08:57 -0600)]
Thinko pointed out by Andreas Gampe (causing segfaults in top, oops).

6 years agoPeople keep running ./configure, so have it do a defconfig for them.
Rob Landley [Mon, 5 Feb 2018 02:07:12 +0000 (20:07 -0600)]
People keep running ./configure, so have it do a defconfig for them.

6 years agoAdd crc32.
Rob Landley [Sun, 4 Feb 2018 23:35:29 +0000 (17:35 -0600)]
Add crc32.

In cksum, make -H pad with leading zeroes to 8 chars, don't output len with -N,
and don't output filename with zero arguments.

6 years agoAhem, I _said_ basic ping support.
Rob Landley [Thu, 1 Feb 2018 01:55:13 +0000 (19:55 -0600)]
Ahem, I _said_ basic ping support.

6 years agoBasic ping support.
Rob Landley [Wed, 31 Jan 2018 00:44:58 +0000 (18:44 -0600)]
Basic ping support.
Requires echo 0 $((1<<30)) > /proc/sys/net/ipv4/ping_group_range (as root)

6 years agomerge in pi-release history after reset to master
gitbuildkicker [Mon, 29 Jan 2018 22:54:29 +0000 (14:54 -0800)]
merge in pi-release history after reset to master

6 years agomerge in pi-release history after reset to master
gitbuildkicker [Mon, 29 Jan 2018 19:47:52 +0000 (11:47 -0800)]
merge in pi-release history after reset to master

6 years agoSnap for 4571561 from e110708ca21eea63c6d0651c7f9cdc3ed830cb78 to pi-release
android-build-team Robot [Sun, 28 Jan 2018 08:23:22 +0000 (08:23 +0000)]
Snap for 4571561 from e110708ca21eea63c6d0651c7f9cdc3ed830cb78 to pi-release

Change-Id: Ide1bc572a0ccef98e985dc4b9c56e944d3aef4e9

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: e77711bf80 am: ba229b4bff
Elliott Hughes [Thu, 25 Jan 2018 16:41:09 +0000 (16:41 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: e77711bf80 am: ba229b4bff
am: 50fab4edc6

Change-Id: Icdc0ff099af85abb49ee6a3b2bd93ff17fdb1901

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: e77711bf80
Elliott Hughes [Thu, 25 Jan 2018 16:21:17 +0000 (16:21 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: e77711bf80
am: ba229b4bff

Change-Id: Icb9e8e4fea3873aa764b1b329dbcb71da59cdc03

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Thu, 25 Jan 2018 15:50:37 +0000 (15:50 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: e77711bf80

Change-Id: Ia7b278c6f96e2a75cbbadd21366f6732e802c2cf

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Thu, 25 Jan 2018 05:09:42 +0000 (21:09 -0800)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: I2e776e6091f09fed27fa83715d8f46460c75b73f

6 years agoRevert the ps -T thing until I understand what Elliott wants.
Rob Landley [Wed, 24 Jan 2018 21:10:44 +0000 (15:10 -0600)]
Revert the ps -T thing until I understand what Elliott wants.

6 years agomerge in pi-release history after reset to master
gitbuildkicker [Tue, 23 Jan 2018 22:19:46 +0000 (14:19 -0800)]
merge in pi-release history after reset to master

6 years agomerge in pi-release history after reset to master
gitbuildkicker [Tue, 23 Jan 2018 20:09:38 +0000 (12:09 -0800)]
merge in pi-release history after reset to master

6 years agoSnap for 4560043 from f598053f98e163f288f05b122a56e475cd4842b4 to pi-release
android-build-team Robot [Tue, 23 Jan 2018 08:22:15 +0000 (08:22 +0000)]
Snap for 4560043 from f598053f98e163f288f05b122a56e475cd4842b4 to pi-release

Change-Id: I51faf044ee76520d822ac4aa6321b5558f7dafec

6 years agoFix hang in losetup test.
Elliott Hughes [Mon, 22 Jan 2018 22:04:24 +0000 (14:04 -0800)]
Fix hang in losetup test.

Switch the printf over to %s because the input is actually hex (so %d
is wrong), but without the leading "0x" that %x would require.

For some reason the NODE assignment wasn't providing any input to awk
(hence the hang), and awk wasn't looking for the correct field anyway.

The tests still fail for me:

  losetup: /dev/block/loop0: No such device or address
  losetup: /dev/block/loop0: No such device or address
  losetup: file: No such file or directory
  losetup: needs 1 arg (see "losetup --help")

But at least now they allow the other tests to continue!

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: af478b798e am: 8060e56a63
Elliott Hughes [Mon, 22 Jan 2018 21:44:11 +0000 (21:44 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: af478b798e am: 8060e56a63
am: 3c9362b1a0

Change-Id: I763ec8dad8994c5e80e7e44d5c408060b32c08a8

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: af478b798e
Elliott Hughes [Mon, 22 Jan 2018 21:39:07 +0000 (21:39 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: af478b798e
am: 8060e56a63

Change-Id: I6b104c85a8884e5b2349c6765aed5bdf0937a016

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 22 Jan 2018 21:34:08 +0000 (21:34 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: af478b798e

Change-Id: I945d01ec1091497310ab945024a2b7c56f90fede

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 22 Jan 2018 20:56:47 +0000 (12:56 -0800)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: Ie08bda874aabd559c72d721c3fcae5415c482242

6 years agoFix variables in help.txt
Reverend Homer [Sun, 21 Jan 2018 20:45:02 +0000 (23:45 +0300)]
Fix variables in help.txt

6 years agogzip cleanup: fix test_gzip, unify do_gzip/do_gunzip, inline gzerror_msg().
Rob Landley [Sun, 21 Jan 2018 16:55:07 +0000 (10:55 -0600)]
gzip cleanup: fix test_gzip, unify do_gzip/do_gunzip, inline gzerror_msg().

6 years agoFix gunzip to past test_gunzip.
Rob Landley [Sun, 21 Jan 2018 04:29:25 +0000 (22:29 -0600)]
Fix gunzip to past test_gunzip.

6 years agoFix "ps -T 1234" to show thread belonging to that PID.
Rob Landley [Tue, 16 Jan 2018 03:46:45 +0000 (21:46 -0600)]
Fix "ps -T 1234" to show thread belonging to that PID.

6 years agoMerge shared_main() back into ps_main() and top_main(), add comments.
Rob Landley [Mon, 15 Jan 2018 19:37:25 +0000 (13:37 -0600)]
Merge shared_main() back into ps_main() and top_main(), add comments.

6 years agoAdd more comments to ps.
Rob Landley [Mon, 15 Jan 2018 17:51:42 +0000 (11:51 -0600)]
Add more comments to ps.

6 years agoSwitch xgettty() -> tty_fd() (returning -1 instead of erroring out if none).
Rob Landley [Mon, 15 Jan 2018 05:15:01 +0000 (23:15 -0600)]
Switch xgettty() -> tty_fd() (returning -1 instead of erroring out if none).

6 years agoSnap for 4545621 from ba146a2fd9022aa9a6ae4b5ff01f6c4eddf12f0a to pi-release
android-build-team Robot [Sun, 14 Jan 2018 08:45:36 +0000 (08:45 +0000)]
Snap for 4545621 from ba146a2fd9022aa9a6ae4b5ff01f6c4eddf12f0a to pi-release

Change-Id: I3309a8b66045de006445e0585b4436697294314b

6 years agoReland: Stop building getprop am: 69a95fdec1 am: d7c52c377e
Tom Cherry [Thu, 11 Jan 2018 16:42:50 +0000 (16:42 +0000)]
Reland: Stop building getprop am: 69a95fdec1 am: d7c52c377e
am: e08ff514e5

Change-Id: I6fe989fcc7df1999942f9678b26a16a06d5741fa

6 years agoReland: Stop building getprop am: 69a95fdec1
Tom Cherry [Thu, 11 Jan 2018 16:39:47 +0000 (16:39 +0000)]
Reland: Stop building getprop am: 69a95fdec1
am: d7c52c377e

Change-Id: Ifd38cac9b26a298466ea20bed58286fce50ed20e

6 years agoReland: Stop building getprop
Tom Cherry [Thu, 11 Jan 2018 16:37:19 +0000 (16:37 +0000)]
Reland: Stop building getprop
am: 69a95fdec1

Change-Id: I64aba811de33f1916a2388e37384e25f453632aa

6 years agoReland: Stop building getprop
Tom Cherry [Thu, 4 Jan 2018 18:13:59 +0000 (10:13 -0800)]
Reland: Stop building getprop

We've replaced this with our own C++ version to support the new
property info parsing.

Bug: 36001741
Test: Compared getprop results with toybox getprop
Change-Id: I022e1ee63635547e2705d43c818579a68f01b872

6 years agoMove make help text out of Makefile.
Rob Landley [Wed, 10 Jan 2018 16:54:11 +0000 (10:54 -0600)]
Move make help text out of Makefile.

6 years agoSnap for 4535700 from e626193bc281a7ee478f705a8dcfc6d16a0f88ea to pi-release
android-build-team Robot [Wed, 10 Jan 2018 08:23:53 +0000 (08:23 +0000)]
Snap for 4535700 from e626193bc281a7ee478f705a8dcfc6d16a0f88ea to pi-release

Change-Id: I6d92e7a7089b7953260411ad98b541c45b18d56c

6 years agoRevert "Stop building getprop" am: 9810b2abf3 am: 850204ccee
Tom Cherry [Tue, 9 Jan 2018 20:19:01 +0000 (20:19 +0000)]
Revert "Stop building getprop" am: 9810b2abf3 am: 850204ccee
am: 0b5277a86b

Change-Id: Ib2e53e9376a093a944180c4a61cea6628a830145

6 years agoRevert "Stop building getprop" am: 9810b2abf3
Tom Cherry [Tue, 9 Jan 2018 19:30:32 +0000 (19:30 +0000)]
Revert "Stop building getprop" am: 9810b2abf3
am: 850204ccee

Change-Id: Ieb821aceb39d0492e8d27eaae8b68abc1f85a781

6 years agoAdd the gzip/gunzip/zcat tests I wrote for toolbox gzip/gunzip/zcat.
Elliott Hughes [Mon, 24 Apr 2017 20:29:30 +0000 (13:29 -0700)]
Add the gzip/gunzip/zcat tests I wrote for toolbox gzip/gunzip/zcat.

Bringing the zlib-based gzip/gunzip/zcat over to toybox is a problem for
another day, but at least the tests are easy...

(These tests pass with TEST_HOST and on the toolbox versions, but the
toybox toys are in pending and very broken.)

6 years agoRevert "Stop building getprop"
Tom Cherry [Tue, 9 Jan 2018 15:09:54 +0000 (15:09 +0000)]
Revert "Stop building getprop"
am: 9810b2abf3

Change-Id: Iece1fef3ae04ff459a313cbc1799bc2ac3a4ab15

6 years agoStop building getprop am: 2a7219cdf2 am: c4663a7f65
Tom Cherry [Tue, 9 Jan 2018 06:42:01 +0000 (06:42 +0000)]
Stop building getprop am: 2a7219cdf2 am: c4663a7f65
am: 0db1b4d74a

Change-Id: I4f6ef249acd6cfc3302f5449fcc70bf0d30af7c7

6 years agoStop building getprop am: 2a7219cdf2
Tom Cherry [Tue, 9 Jan 2018 06:22:02 +0000 (06:22 +0000)]
Stop building getprop am: 2a7219cdf2
am: c4663a7f65

Change-Id: I97735314feb8ac7d185f790022e3d3a12f62f8ba

6 years agoRevert "Stop building getprop"
Tom Cherry [Tue, 9 Jan 2018 00:27:45 +0000 (00:27 +0000)]
Revert "Stop building getprop"

This reverts commit 2a7219cdf2fa1b9bd080f9377ed5f2cf993600a3.

Change-Id: I24118e45c9f7c99699959b58c2ccbd4a0fd9414e

6 years agoStop building getprop
Tom Cherry [Mon, 8 Jan 2018 22:36:58 +0000 (22:36 +0000)]
Stop building getprop
am: 2a7219cdf2

Change-Id: I55446a9ec8890afafe5426845896a73cae07e121

6 years agoMove millitime() into lib.c.
Rob Landley [Sat, 6 Jan 2018 21:43:17 +0000 (15:43 -0600)]
Move millitime() into lib.c.

6 years agoStop building getprop
Tom Cherry [Thu, 4 Jan 2018 18:13:59 +0000 (10:13 -0800)]
Stop building getprop

We've replaced this with our own C++ version to support the new
property info parsing.

Bug: 36001741
Test: Compared getprop results with toybox getprop
Change-Id: Iba71544e0d8eb2c0d683fdd244fa7ccb87294de4

6 years agoCleanup pass on gzip.c.
Rob Landley [Wed, 3 Jan 2018 18:53:46 +0000 (12:53 -0600)]
Cleanup pass on gzip.c.

6 years agoPromote logger, and fluff up help text a bit.
Rob Landley [Mon, 1 Jan 2018 22:32:13 +0000 (16:32 -0600)]
Promote logger, and fluff up help text a bit.

6 years agoCleanup logger.c, and move the facilitynames/prioritynames SYSLOG_NAMES
Rob Landley [Mon, 1 Jan 2018 22:25:18 +0000 (16:25 -0600)]
Cleanup logger.c, and move the facilitynames/prioritynames SYSLOG_NAMES
stuff syslog.h does into lib.c and portability.h

6 years agoxphung on github said: "config2help currently doesn't work on OS X, it
Rob Landley [Mon, 1 Jan 2018 17:24:48 +0000 (11:24 -0600)]
xphung on github said: "config2help currently doesn't work on OS X, it
terminates parsing of Config.in at first blank line. This is because
getdelim() in portability.c returns -1 whenever the line comprises only
a single linefeed character. Fixing this was a trivial change to two lines
(see below), and config2help now works on OS X but I haven't regression
tested this on any other commands which rely on getdelim()"

6 years agoPromote iconv.
Rob Landley [Fri, 29 Dec 2017 23:19:02 +0000 (17:19 -0600)]
Promote iconv.

6 years agoCleanup iconv.
Rob Landley [Fri, 29 Dec 2017 22:43:38 +0000 (16:43 -0600)]
Cleanup iconv.

Implement -c, fix endless loop when illegal char happens with
!outleft (don't need to check errno, just in == toybuf), refill
buffer each time (less efficient handling of illegal chars but never
have to worry about how long constitutes a valid sequence in unknown
encoding).

Fix input longer than 2k (memmove() has src/dest switched, second time through
loop in starts at offset inleft...) Made it start at beginning every time.

Switch iconv_open() error msg to show to/from and errno (rather than
hardwired english text).

6 years agoPromote setfattr
Rob Landley [Wed, 27 Dec 2017 17:23:43 +0000 (11:23 -0600)]
Promote setfattr

6 years agoMinor cleanup on setfattr.c
Rob Landley [Wed, 27 Dec 2017 17:21:21 +0000 (11:21 -0600)]
Minor cleanup on setfattr.c

6 years agoAdd xxd -i (and xxd -ri).
Elliott Hughes [Sun, 24 Dec 2017 08:42:38 +0000 (00:42 -0800)]
Add xxd -i (and xxd -ri).

The original xxd doesn't support -r with -i. The original also outputs
"unsigned char name[] = { ... };" for input other than stdin, but that
actually makes it less useful --- many languages support array
initializers, but far fewer support that exact declaration syntax.

Also fix the -c range checking and defaulting: ><= in the argument string
only works for floating point arguments.

Bug: http://b/64711851

6 years agoFix xargs -0 with -n.
Elliott Hughes [Tue, 26 Dec 2017 05:24:57 +0000 (21:24 -0800)]
Fix xargs -0 with -n.

Also make -0 and -E mutually exclusive (rather than just ignore -E
with -0).

Bug: https://github.com/landley/toybox/issues/78

6 years agoAdd fmt.
Elliott Hughes [Sun, 24 Dec 2017 07:44:04 +0000 (23:44 -0800)]
Add fmt.

A very simple implementation of fmt, good enough for my daily use of !!fmt
in vi to reflow checkin comments like this.

6 years agoSnap for 4517567 from 9bc5cb239e25685a0b17faa2f13374d0a1df1b2b to pi-release
android-build-team Robot [Sun, 24 Dec 2017 08:32:40 +0000 (08:32 +0000)]
Snap for 4517567 from 9bc5cb239e25685a0b17faa2f13374d0a1df1b2b to pi-release

Change-Id: I225b5d1be7f1263872b079133e98fbec6bc6ec3e

6 years agoRedo namestopid to handle more cases.
Rob Landley [Fri, 22 Dec 2017 20:56:37 +0000 (14:56 -0600)]
Redo namestopid to handle more cases.

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 5c2683335f am: dc37511388
Elliott Hughes [Fri, 22 Dec 2017 02:06:48 +0000 (02:06 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 5c2683335f am: dc37511388
am: b4c219ec96

Change-Id: I3b81616c95ffb2300028733734dc3705ffc3a54d

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 5c2683335f
Elliott Hughes [Fri, 22 Dec 2017 02:04:04 +0000 (02:04 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 5c2683335f
am: dc37511388

Change-Id: I864784f1389727df755293303600bf05e2795cbc

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Fri, 22 Dec 2017 02:01:39 +0000 (02:01 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: 5c2683335f

Change-Id: Id1c5fa6a2253e8ff1c8d00c5eb553e813af89aff

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Fri, 22 Dec 2017 01:51:17 +0000 (17:51 -0800)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: Icb80c8fe862fb4db4f6bcfacb9c5e1d9d26108d5

6 years agoFix make bloatcheck dependencies (pointed out by Patrick Oppenlander).
Rob Landley [Tue, 19 Dec 2017 22:16:31 +0000 (16:16 -0600)]
Fix make bloatcheck dependencies (pointed out by Patrick Oppenlander).

6 years agokillall should kill scripts too.
Elliott Hughes [Wed, 13 Dec 2017 19:47:08 +0000 (11:47 -0800)]
killall should kill scripts too.

Found running LTP file system tests on Android.

Bug: http://b/70627145

6 years agoAn incomplete list of deviations from posix (it's a start).
Rob Landley [Mon, 11 Dec 2017 13:19:37 +0000 (07:19 -0600)]
An incomplete list of deviations from posix (it's a start).

6 years agoCleanup pass on stty: collate do_stty() calls for future inlining,
Rob Landley [Sun, 10 Dec 2017 20:12:19 +0000 (14:12 -0600)]
Cleanup pass on stty: collate do_stty() calls for future inlining,
collapse flag arrays to fewer lines, factor out xtcgetattr(),
strip curly brackets around single lines, don't have a separate error
message for tcsetattr() return code if more thorough check is on next line,
take advantage of O_RDONLY being zero, document -F.

6 years agoSnap for 4486962 from 4895681fada993fb0505b2361cde0e12f2fbe5ea to pi-release
android-build-team Robot [Wed, 6 Dec 2017 08:20:44 +0000 (08:20 +0000)]
Snap for 4486962 from 4895681fada993fb0505b2361cde0e12f2fbe5ea to pi-release

Change-Id: I55808e94f6ff55ad3519ae33b9ccdbb67a80a72e

6 years agoMerge changes I768f0948,I3d79bb35 am: 2474ba9744 am: 2f5f475c3e
Elliott Hughes [Wed, 6 Dec 2017 04:02:10 +0000 (04:02 +0000)]
Merge changes I768f0948,I3d79bb35 am: 2474ba9744 am: 2f5f475c3e
am: 2c54efa044

Change-Id: I7a4128ad78a99ec06d048511c243144f20d424c8

6 years agoMerge changes I768f0948,I3d79bb35 am: 2474ba9744
Elliott Hughes [Wed, 6 Dec 2017 03:59:12 +0000 (03:59 +0000)]
Merge changes I768f0948,I3d79bb35 am: 2474ba9744
am: 2f5f475c3e

Change-Id: I1da4a3a88c893d8ed5359e4b985a9e8ae9774535