OSDN Git Service

android-x86/external-toybox.git
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 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 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 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 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 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

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

Change-Id: I04aec22a4eefac8439e101a6f28817e4f90b7bc9

6 years agoMerge changes I768f0948,I3d79bb35
Treehugger Robot [Wed, 6 Dec 2017 02:50:40 +0000 (02:50 +0000)]
Merge changes I768f0948,I3d79bb35

* changes:
  Merge remote-tracking branch 'toybox/master' into HEAD
  Use NULL rather than 0 in vargs.

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Tue, 5 Dec 2017 22:55:03 +0000 (14:55 -0800)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: I768f0948024a388113ded1b689994c274565acce

6 years agoUse NULL rather than 0 in vargs.
Elliott Hughes [Mon, 4 Dec 2017 20:31:53 +0000 (12:31 -0800)]
Use NULL rather than 0 in vargs.

Top bits count too!

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: b4d75fdc5e am: 3b88354234
Elliott Hughes [Mon, 4 Dec 2017 20:52:46 +0000 (20:52 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: b4d75fdc5e am: 3b88354234
am: ad8c2eb243

Change-Id: Ia77a8a3b293739cd97b7abe7c874325224b965d4

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: b4d75fdc5e
Elliott Hughes [Mon, 4 Dec 2017 20:51:16 +0000 (20:51 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: b4d75fdc5e
am: 3b88354234

Change-Id: I9d460dfcf6c13368949d8871fa3e60606d407e38

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 4 Dec 2017 20:48:15 +0000 (20:48 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: b4d75fdc5e

Change-Id: Ie14854bfa3c1a616f16382dd7a7c0578ab04fa08

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

Change-Id: I8385fe7ba26eb183696d77d160c1c6662f2d775b

6 years agoCommands in pending should default n.
Rob Landley [Sun, 3 Dec 2017 07:30:39 +0000 (01:30 -0600)]
Commands in pending should default n.

6 years agoAdd stty(1).
Elliott Hughes [Sat, 2 Dec 2017 06:43:38 +0000 (22:43 -0800)]
Add stty(1).

Full POSIX stty with Linux extensions. Output and behavior match coreutils
8.26 as far as I can tell. For some reason busybox 1.22 stty always
shows all the special characters, even when they match "sane". I've
matched coreutils, since "shows differences from sane" is easy to describe
and obviously useful.

Flags in the various arrays are not in the order they're introduced in
POSIX or in the Linux header file: they're in the order that they're
output by coreutils' stty.

The -g output matches coreutils and busybox.

I implemented iuclc, xcase, and olcuc even though they've been removed
from POSIX because the others implement them, and "man stty" defines "raw"
and "sane" in terms of them (where POSIX doesn't define "sane" in any
useful sense).

This builds fine against glibc 2.24, and as far as I can tell all the
constants used were in Linux 2.6 so I'm assuming that there shouldn't
be any #ifdef nonsense needed for any reasonable vintage of C library.

6 years agoDon't capitalize in the middle of a sentence.
Elliott Hughes [Fri, 17 Nov 2017 00:16:12 +0000 (16:16 -0800)]
Don't capitalize in the middle of a sentence.

Before:
  toy: Unknown option p (See "toy --help")

After:
  toy: Unknown option p (see "toy --help")

6 years agoAdd uptime -p.
Elliott Hughes [Fri, 17 Nov 2017 00:35:10 +0000 (16:35 -0800)]
Add uptime -p.

We (Android) give up trying to teach folks what "up 142 days,  1:45"
means...

Bug: http://b/65205261

6 years agoGaël PORTAY wants mdev to work when Linux has the block layer configured out.
Rob Landley [Sun, 3 Dec 2017 07:20:42 +0000 (01:20 -0600)]
Gaël PORTAY wants mdev to work when Linux has the block layer configured out.

6 years agoAndroid has its loop devices under "block" as Elliott says "by reason of
Rob Landley [Sun, 3 Dec 2017 03:18:52 +0000 (21:18 -0600)]
Android has its loop devices under "block" as Elliott says "by reason of
historical accident", so fall back to check there.

Also remove an obsolete comment TODO block, check !parent for dirtree
top of tree instead of '/' in the filename, and typecast some printf
arguments for 32-bit systems.

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 73fd808900 am: e8c1b78ce7
Elliott Hughes [Tue, 28 Nov 2017 01:40:53 +0000 (01:40 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 73fd808900 am: e8c1b78ce7
am: fd457e1256

Change-Id: I447dac2eea7c07ab494a3e2c22748b14abf16501

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 73fd808900
Elliott Hughes [Tue, 28 Nov 2017 01:36:52 +0000 (01:36 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 73fd808900
am: e8c1b78ce7

Change-Id: I8e69bcc6eadd641fa6cdd762e48daf8401c3cc67

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Tue, 28 Nov 2017 01:33:53 +0000 (01:33 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: 73fd808900

Change-Id: I32af02ae6ff58b9aa9160f7a58dad6b30c2e5c44

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Tue, 28 Nov 2017 01:21:21 +0000 (17:21 -0800)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: I22ec2b8b3f1a978442fd5f7031a35eba8cb9ce25

6 years agoRecognize sh/frv fdpic, and add types for bpf and new microblaze.
Rob Landley [Mon, 27 Nov 2017 05:40:20 +0000 (23:40 -0600)]
Recognize sh/frv fdpic, and add types for bpf and new microblaze.

6 years agoUse endianness info to read executable type.
Rob Landley [Sun, 26 Nov 2017 11:33:35 +0000 (05:33 -0600)]
Use endianness info to read executable type.

6 years agoAdd "time -v".
Elliott Hughes [Fri, 17 Nov 2017 20:10:36 +0000 (12:10 -0800)]
Add "time -v".

This shows the other fields in getrusage. I've chosen to only show the
ones actually maintained by Linux.

6 years agoMake find -exec + obey ARG_MAX just like xargs.
Elliott Hughes [Thu, 16 Nov 2017 21:59:37 +0000 (13:59 -0800)]
Make find -exec + obey ARG_MAX just like xargs.

This isn't ideal, but it matches xargs and none of us is likely to have
time to do the best possible thing any time soon.

Bug: http://b/65818597
Test: ./toybox find /usr/local/google/ndkports/ -exec echo {} +

6 years agoMinor tweaks.
Rob Landley [Fri, 17 Nov 2017 03:04:31 +0000 (21:04 -0600)]
Minor tweaks.

6 years agoAdd "df -i".
Elliott Hughes [Wed, 15 Nov 2017 21:06:17 +0000 (13:06 -0800)]
Add "df -i".

Also switch to u64 for calculations. Some FUSE file systems have inode
counts large enough to overflow s64.

6 years agoMerge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Xin Li [Wed, 15 Nov 2017 02:14:28 +0000 (02:14 +0000)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
am: c130bfa0e0

Change-Id: I2d2f9a569dff928346c338679646f69cd71c9367

6 years agoMerge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Xin Li [Wed, 15 Nov 2017 00:38:15 +0000 (16:38 -0800)]
Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD

Change-Id: I421a32e3c40700b87f4dc8dce6b9aa0212da81a1

6 years agoMerge commit 'ebbab5196ab1c9dfeb610f6847650da181268e59' into HEAD
Xin Li [Mon, 13 Nov 2017 22:35:30 +0000 (14:35 -0800)]
Merge commit 'ebbab5196ab1c9dfeb610f6847650da181268e59' into HEAD

Change-Id: I4589911438030283a85737073c0c4eeb2fd875a9

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 62f36d9160 am: 75bf2dab05
Elliott Hughes [Sat, 4 Nov 2017 07:36:00 +0000 (07:36 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 62f36d9160 am: 75bf2dab05
am: 899676bf14

Change-Id: Ia83328c3d524bdd0ee0f0803eae76089a2aef701

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 62f36d9160
Elliott Hughes [Sat, 4 Nov 2017 07:33:29 +0000 (07:33 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 62f36d9160
am: 75bf2dab05

Change-Id: I2a047b2950230d982d76cd6939620837cb92a00d

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Sat, 4 Nov 2017 07:30:58 +0000 (07:30 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: 62f36d9160

Change-Id: If03981a937fed75efa974b00c8cf5ed0fcc5fbce

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Sat, 4 Nov 2017 05:46:47 +0000 (22:46 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: I29c0c12ba499702296fa4c6f01d5c6dfde25ae11

6 years agofile(1): add ogg, TrueType font, LLVM bitcode, PEM certs, and PE executables.
Elliott Hughes [Wed, 1 Nov 2017 18:09:42 +0000 (11:09 -0700)]
file(1): add ogg, TrueType font, LLVM bitcode, PEM certs, and PE executables.

More of the files encountered on the Android system image (plus PE
executables, which we build but which shouldn't actually make it to the
system image!).

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 60f116b00b am: fb20928d25
Elliott Hughes [Wed, 1 Nov 2017 21:53:05 +0000 (21:53 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 60f116b00b am: fb20928d25
am: 190589564d

Change-Id: Ic71bf0008a81b441389692da798e1e68428b5d54

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: 60f116b00b
Elliott Hughes [Wed, 1 Nov 2017 21:45:48 +0000 (21:45 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: 60f116b00b
am: fb20928d25

Change-Id: Ia5504f0cc2d353cb8cb55fc00ba48b601d1e6b2e

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Wed, 1 Nov 2017 21:44:25 +0000 (21:44 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: 60f116b00b

Change-Id: Ie744d7d4736301f157c34f797c31fdea6c7ced58

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Wed, 1 Nov 2017 15:51:16 +0000 (08:51 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: I0f484781d22922c8d0764051f05924fab1d8b072

6 years agoAdd top -m, fix width truncating for narrow screens (off by one), and add iotop -H
Rob Landley [Wed, 1 Nov 2017 00:44:32 +0000 (19:44 -0500)]
Add top -m, fix width truncating for narrow screens (off by one), and add iotop -H

6 years agoRename test_*.c to demo_*.c (because "make test_$CMD" means something already),
Rob Landley [Tue, 31 Oct 2017 20:51:02 +0000 (15:51 -0500)]
Rename test_*.c to demo_*.c (because "make test_$CMD" means something already),
fluff out README, and add a comment to hostid explaining its deprecation.

6 years agoOnly show LABEL= when there is one.
Rob Landley [Tue, 31 Oct 2017 20:43:38 +0000 (15:43 -0500)]
Only show LABEL= when there is one.

6 years agoFix cut -s and -f when delimiter not found (posix says print whole line).
Rob Landley [Tue, 31 Oct 2017 20:30:04 +0000 (15:30 -0500)]
Fix cut -s and -f when delimiter not found (posix says print whole line).

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: e64d3fbcfc am: 5595094915
Elliott Hughes [Sat, 28 Oct 2017 20:24:57 +0000 (20:24 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: e64d3fbcfc am: 5595094915
am: 6650f7bed0

Change-Id: Ia7b7c54cb57ec62f0817b67a12c9ac4c20f7eacf

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: e64d3fbcfc
Elliott Hughes [Sat, 28 Oct 2017 20:19:54 +0000 (20:19 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: e64d3fbcfc
am: 5595094915

Change-Id: I71421bde9f207c772807240145914f65f0290a3d

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Sat, 28 Oct 2017 20:15:24 +0000 (20:15 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: e64d3fbcfc

Change-Id: I1ea8da7d493f1f870fcf2fbbc111b844ebc1abab

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Sat, 28 Oct 2017 18:25:01 +0000 (11:25 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: Ie8296ab28983a463cabe2c6b3bf1a0bfee6127d4

6 years agoWeb page updates.
Rob Landley [Sat, 28 Oct 2017 08:26:33 +0000 (03:26 -0500)]
Web page updates.

6 years agoMake -c work with unicode chars, and first stab at -C measuring columns.
Rob Landley [Thu, 26 Oct 2017 01:27:33 +0000 (20:27 -0500)]
Make -c work with unicode chars, and first stab at -C measuring columns.

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: cb633d4175 am: cf77ae240a...
Elliott Hughes [Mon, 23 Oct 2017 16:08:14 +0000 (16:08 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: cb633d4175 am: cf77ae240a am: 0f36350092
am: f6a06219b3

Change-Id: Ifcefd63716df66a94ded8cfae261a5df961d70a7

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: cb633d4175 am: cf77ae240a
Elliott Hughes [Mon, 23 Oct 2017 16:05:37 +0000 (16:05 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: cb633d4175 am: cf77ae240a
am: 0f36350092

Change-Id: I1c61311d2d3cb50b73c6cfbd57a2049f18784b86

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: cb633d4175
Elliott Hughes [Mon, 23 Oct 2017 16:02:58 +0000 (16:02 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: cb633d4175
am: cf77ae240a

Change-Id: I3b44a803a76a3c47830b65b05dda318ccae121db

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 23 Oct 2017 15:59:21 +0000 (15:59 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: cb633d4175

Change-Id: Iabf046987aeeef1d866415ae35bff412c52bf29d

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Mon, 23 Oct 2017 05:56:36 +0000 (22:56 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: Ic864a300496f900884e5e07e834ac309c76d569e

6 years agoInsmod dummy for ifconfig tests, and "pointopoint" only has two t's.
Rob Landley [Sun, 22 Oct 2017 18:36:02 +0000 (13:36 -0500)]
Insmod dummy for ifconfig tests, and "pointopoint" only has two t's.

6 years agoAdd stat to index.
Rob Landley [Sun, 22 Oct 2017 16:52:32 +0000 (11:52 -0500)]
Add stat to index.

6 years agoI ended up writing a new find from scratch, so remove old unfinished cleanup log.
Rob Landley [Sun, 22 Oct 2017 16:42:59 +0000 (11:42 -0500)]
I ended up writing a new find from scratch, so remove old unfinished cleanup log.

6 years agoTypo.
Rob Landley [Sun, 22 Oct 2017 16:41:27 +0000 (11:41 -0500)]
Typo.

6 years agoUse char for exitval and wasroot (first capped at 8 bits and second's a flag).
Rob Landley [Sat, 21 Oct 2017 14:53:14 +0000 (09:53 -0500)]
Use char for exitval and wasroot (first capped at 8 bits and second's a flag).

6 years agoUse setlocale(LC_CTYPE, "C.UTF-8") for more targeted locale enable:
Rob Landley [Sat, 21 Oct 2017 14:48:24 +0000 (09:48 -0500)]
Use setlocale(LC_CTYPE, "C.UTF-8") for more targeted locale enable:
(only enable character parsing, force utf8, "C" semantics otherwise.)

6 years agoRemove libselinux_vendor am: 61be2f867f am: c813bc05f7 am: b31d278112
Jiyong Park [Fri, 20 Oct 2017 02:37:40 +0000 (02:37 +0000)]
Remove libselinux_vendor am: 61be2f867f am: c813bc05f7 am: b31d278112
am: 20b0016c39

Change-Id: I33c9f084c51833bb2cecd405ed7f96ca5877dafa

6 years agoRemove libselinux_vendor am: 61be2f867f am: c813bc05f7
Jiyong Park [Fri, 20 Oct 2017 01:43:25 +0000 (01:43 +0000)]
Remove libselinux_vendor am: 61be2f867f am: c813bc05f7
am: b31d278112

Change-Id: I07b25de67531c8633c7f90247491c7c795896201

6 years agoRemove libselinux_vendor am: 61be2f867f
Jiyong Park [Fri, 20 Oct 2017 01:18:53 +0000 (01:18 +0000)]
Remove libselinux_vendor am: 61be2f867f
am: c813bc05f7

Change-Id: Id974addccbb94c38c6eab7978ae2c3186c7af773

6 years agoRemove libselinux_vendor
Jiyong Park [Fri, 20 Oct 2017 01:10:58 +0000 (01:10 +0000)]
Remove libselinux_vendor
am: 61be2f867f

Change-Id: I6e8d751fd816f789727465a15941ea35f966db65

6 years agoElliott wants to add TOYBOX_VENDOR.
Rob Landley [Thu, 19 Oct 2017 21:49:52 +0000 (16:49 -0500)]
Elliott wants to add TOYBOX_VENDOR.

6 years agoRemove libselinux_vendor
Jiyong Park [Fri, 13 Oct 2017 00:18:10 +0000 (09:18 +0900)]
Remove libselinux_vendor

libselinux is now a vendor_available: true library.

Bug: 66914194
Test: lunch aosp_arm64_ab-userdebug; m libselinux.vendor toybox_vendor

Change-Id: I3ff0a73c29e089881e74566c52693792b9f1ecd3

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: fa58895b44 am: e77b0564e2...
Elliott Hughes [Wed, 18 Oct 2017 23:39:13 +0000 (23:39 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: fa58895b44 am: e77b0564e2 am: 579a5da1af
am: ebbab5196a

Change-Id: Ie6b47a9a3b8c698fac87cfec5359650c3336be8d

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: fa58895b44 am: e77b0564e2
Elliott Hughes [Wed, 18 Oct 2017 23:29:02 +0000 (23:29 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: fa58895b44 am: e77b0564e2
am: 579a5da1af

Change-Id: I36aa5ec1bc25a6aed0fad2a071e538afe5a71512

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: fa58895b44
Elliott Hughes [Wed, 18 Oct 2017 23:24:10 +0000 (23:24 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: fa58895b44
am: e77b0564e2

Change-Id: I73052043f9c026fb47ae5c110f43e5075a30d2f3

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Wed, 18 Oct 2017 23:22:07 +0000 (23:22 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: fa58895b44

Change-Id: I2d9a87c927142612d498e38a47f61cb3401842d9

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Wed, 18 Oct 2017 21:25:38 +0000 (14:25 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: Icf243ef1fcceed4281f8491bc90f668fd65f3979

6 years agoFix groups(1) and id -G.
Elliott Hughes [Fri, 29 Sep 2017 22:20:26 +0000 (15:20 -0700)]
Fix groups(1) and id -G.

Both should only output the groups.

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: bac04b4984 am: 3917661b78...
Elliott Hughes [Tue, 17 Oct 2017 21:10:23 +0000 (21:10 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: bac04b4984 am: 3917661b78 am: 80060a8309
am: 9c63f80994

Change-Id: I9dc488c376163181ae18e012b8548fe1f2e40796

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: bac04b4984 am: 3917661b78
Elliott Hughes [Tue, 17 Oct 2017 20:23:19 +0000 (20:23 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: bac04b4984 am: 3917661b78
am: 80060a8309

Change-Id: I1c95d91113a23a50ed5f2ae6c84b3f5948765d7e

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD am: bac04b4984
Elliott Hughes [Tue, 17 Oct 2017 20:10:59 +0000 (20:10 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD am: bac04b4984
am: 3917661b78

Change-Id: I069acb5748db4d150cf9cd5fc51b3e209f4cd5d6

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Tue, 17 Oct 2017 20:08:29 +0000 (20:08 +0000)]
Merge remote-tracking branch 'toybox/master' into HEAD
am: bac04b4984

Change-Id: I2034eee62a46862ae2c1a204787af537c17ee438

6 years agoMerge remote-tracking branch 'toybox/master' into HEAD
Elliott Hughes [Tue, 17 Oct 2017 18:14:09 +0000 (11:14 -0700)]
Merge remote-tracking branch 'toybox/master' into HEAD

Change-Id: I017f86ef407b801d0cd9c04bd4b50905b87eb143

6 years agoAllow ro. properties to have arbitrary lengths
Tom Cherry [Thu, 12 Oct 2017 16:43:32 +0000 (09:43 -0700)]
Allow ro. properties to have arbitrary lengths

Android now allows ro. properties to have arbitrary lengths.  Two
changes need to happen to support this:

1) The length check in setprop.c before attempting to set a property
   needs to be removed for ro. properties
2) __system_property_read_callback() must be used in place of
   __system_property_get() in getprop.c as only the former is capable
   of reading properties with size > 92 characters.

Bug: 23102347
Bug: 34954705
Change-Id: Ib8565a3e6d987dd5e6a5fe790e804ecf8ad1e020

6 years agoAndroid doesn't support setuid-root toybox. am: ce26024f83 am: d8a348ac79 am: 2f42b9cd22
Elliott Hughes [Tue, 17 Oct 2017 08:28:10 +0000 (08:28 +0000)]
Android doesn't support setuid-root toybox. am: ce26024f83 am: d8a348ac79 am: 2f42b9cd22
am: b4557b09e1

Change-Id: I5d82a32840e727f07058e411a528df1f8fb4919e

6 years agoAndroid doesn't support setuid-root toybox. am: ce26024f83 am: d8a348ac79
Elliott Hughes [Tue, 17 Oct 2017 05:17:33 +0000 (05:17 +0000)]
Android doesn't support setuid-root toybox. am: ce26024f83 am: d8a348ac79
am: 2f42b9cd22

Change-Id: I00496dd0240654a921ef4954baca6ce4c61c0950

6 years agoAndroid doesn't support setuid-root toybox. am: ce26024f83
Elliott Hughes [Mon, 16 Oct 2017 22:41:21 +0000 (22:41 +0000)]
Android doesn't support setuid-root toybox. am: ce26024f83
am: d8a348ac79

Change-Id: If75406c47e3fe218e19852ad23b32143656178ca