OSDN Git Service

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

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 agoSnap for 4484469 from c059eb44cc0ae19ac1d45830fd8725254832c4e4 to pi-release
android-build-team Robot [Tue, 5 Dec 2017 08:21:35 +0000 (08:21 +0000)]
Snap for 4484469 from c059eb44cc0ae19ac1d45830fd8725254832c4e4 to pi-release

Change-Id: I432b7368d48cf18ef14aa0e92592c79ab8caa4c2

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 agoSnap for 4471243 from cf80735139f3d63106c645f19de939718a946a25 to pi-release
android-build-team Robot [Tue, 28 Nov 2017 08:34:39 +0000 (08:34 +0000)]
Snap for 4471243 from cf80735139f3d63106c645f19de939718a946a25 to pi-release

Change-Id: I2339fe847e8c816d609e34104a801078da18cb43

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 agoSnap for 4453288 from b18afbe5e4fee53cb130449560b8892615d57db0 to pi-release
android-build-team Robot [Wed, 15 Nov 2017 08:35:38 +0000 (08:35 +0000)]
Snap for 4453288 from b18afbe5e4fee53cb130449560b8892615d57db0 to pi-release

Change-Id: I184c90120db8da3c79b143faae8ff7f0394aef3f

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 agoSnap for 4434599 from f8033eea4d4de4900ad08fab36bbc88cf22b5879 to pi-release
android-build-team Robot [Sun, 5 Nov 2017 07:22:14 +0000 (07:22 +0000)]
Snap for 4434599 from f8033eea4d4de4900ad08fab36bbc88cf22b5879 to pi-release

Change-Id: I54c118e3657b37693c7a71522f060b952aa9eeb2

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 agoSnap for 4429796 from 73f53d95e8a1dce773c0c3ea304b09f606306040 to pi-release
android-build-team Robot [Thu, 2 Nov 2017 08:07:30 +0000 (08:07 +0000)]
Snap for 4429796 from 73f53d95e8a1dce773c0c3ea304b09f606306040 to pi-release

Change-Id: I67f6701adb9debef5378313b87d843c5e4aea2b4

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 agoSnap for 4425573 from e175d65cb19bb07cda6b8a632d4744a4cd7412e8 to pi-release
android-build-team Robot [Tue, 31 Oct 2017 08:11:40 +0000 (08:11 +0000)]
Snap for 4425573 from e175d65cb19bb07cda6b8a632d4744a4cd7412e8 to pi-release

Change-Id: I64fdd32dc638dbcdb632424d59547fde67a1ebad

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