OSDN Git Service

android-x86/bionic.git
7 years agoMerge "Make prctl test check maps."
Christopher Ferris [Mon, 7 Nov 2016 16:12:25 +0000 (16:12 +0000)]
Merge "Make prctl test check maps."
am: 95780f2b42

Change-Id: Id4fb876295328ea874052abc88d5a94c8ba2959e

7 years agoMerge "Make prctl test check maps."
Christopher Ferris [Mon, 7 Nov 2016 16:06:03 +0000 (16:06 +0000)]
Merge "Make prctl test check maps."

7 years agoMerge "Update timezone data to 2016i."
Neil Fuller [Mon, 7 Nov 2016 11:15:42 +0000 (11:15 +0000)]
Merge "Update timezone data to 2016i."
am: 275659a0fd

Change-Id: I31a6cebb625addf8b68f5b2b1a67d7d59fdb53cc

7 years agoMerge "Update timezone data to 2016i."
Neil Fuller [Mon, 7 Nov 2016 11:11:13 +0000 (11:11 +0000)]
Merge "Update timezone data to 2016i."

7 years agoMake prctl test check maps.
Christopher Ferris [Thu, 3 Nov 2016 23:06:40 +0000 (16:06 -0700)]
Make prctl test check maps.

It turns out that sometimes this kernel bug can be present but not
trigger a crash. Modify the test to check for overlapping maps instead.

Bug: 32640542

Test: Verified that this fails on a device without the kernel patch
Test: (both bionic-unit-tests32 and CtsBionicTestCases32). Verified
Test: this passes on an angler.

Change-Id: Ia3fae3ee3d01f33d8414c1796fc3e942d5b56ec8

7 years agoMerge "Clean up update_headers.sh."
Dan Albert [Sat, 5 Nov 2016 20:15:01 +0000 (20:15 +0000)]
Merge "Clean up update_headers.sh."
am: 147fdb4724

Change-Id: Ie70f3d7e3609fa39ad9931e421690c56748e4251

7 years agoMerge "Clean up update_headers.sh."
Treehugger Robot [Sat, 5 Nov 2016 20:09:12 +0000 (20:09 +0000)]
Merge "Clean up update_headers.sh."

7 years agoMerge "Set __get_thread()->tid as part of clone()."
Robert Sesek [Sat, 5 Nov 2016 01:32:29 +0000 (01:32 +0000)]
Merge "Set __get_thread()->tid as part of clone()."
am: f41032a3e2

Change-Id: Ic04e3283a680bec43d8d85a9ab9f035c746681ce

7 years agoMerge "Set __get_thread()->tid as part of clone()."
Treehugger Robot [Sat, 5 Nov 2016 01:24:13 +0000 (01:24 +0000)]
Merge "Set __get_thread()->tid as part of clone()."

7 years agoMerge changes I9d050e54,Ic487036a
Josh Gao [Fri, 4 Nov 2016 23:14:24 +0000 (23:14 +0000)]
Merge changes I9d050e54,Ic487036a
am: bf67936b4b

Change-Id: I588d34c4acfb70478af8a2b831adb23ddb897475

7 years agoversioner: allow static inlines that don't conflict.
Josh Gao [Fri, 4 Nov 2016 23:14:23 +0000 (23:14 +0000)]
versioner: allow static inlines that don't conflict.
am: 1a176de2f1

Change-Id: Iad7a8bec5bc2b836a06c5d846f523b6e1d20f5b9

7 years agoversioner: fix output.
Josh Gao [Fri, 4 Nov 2016 23:14:20 +0000 (23:14 +0000)]
versioner: fix output.
am: a00e672361

Change-Id: I11bb53b4be47ea41337bf5ead9d3bcb1f2a177cb

7 years agoMerge changes I9d050e54,Ic487036a
Treehugger Robot [Fri, 4 Nov 2016 23:06:55 +0000 (23:06 +0000)]
Merge changes I9d050e54,Ic487036a

* changes:
  versioner: allow static inlines that don't conflict.
  versioner: fix output.

7 years agoSet __get_thread()->tid as part of clone().
Robert Sesek [Thu, 3 Nov 2016 19:00:53 +0000 (15:00 -0400)]
Set __get_thread()->tid as part of clone().

This was previously done only in fork() and pthread_create(), but this left raw
clone() with an invalid cached tid. Since the tid is used for pthread routines,
this led to unstable behavior after clone().

Test: ltp clone01 (see bug for more)
Test: mmma bionic/tests
Test: bionic-unit-tests-static --gtest_filter=*fork*:*clone*

Bug: 32612735
Bug: 32305649
Change-Id: I30eae5a8024b4c5da65476fcadfe14c6db35bb79

7 years agoversioner: allow static inlines that don't conflict.
Josh Gao [Fri, 4 Nov 2016 20:15:11 +0000 (13:15 -0700)]
versioner: allow static inlines that don't conflict.

Bug: http://b/32664285
Test: python run_test.py
Change-Id: I9d050e545390eccd82661325c0ec58055f5f28a3

7 years agoversioner: fix output.
Josh Gao [Fri, 4 Nov 2016 19:04:38 +0000 (12:04 -0700)]
versioner: fix output.

Bug: http://b/32664285
Test: python run_test.py
Change-Id: Ic487036a17cc6778493e316146e54ead8ce3e65b

7 years agoClean up update_headers.sh.
Dan Albert [Fri, 4 Nov 2016 18:40:27 +0000 (11:40 -0700)]
Clean up update_headers.sh.

Clean up some output, check for errors from the versioner.

Test: tools/update_headers.sh
Bug: None
Change-Id: Ib398b534a9a8ee6dc6a2b4d90747f628aa911bab

7 years agoUpdate timezone data to 2016i.
Neil Fuller [Fri, 4 Nov 2016 16:23:47 +0000 (16:23 +0000)]
Update timezone data to 2016i.

IANA changes:

  Briefly: Cyprus split into two time zones on 2016-10-30, and Tonga
  reintroduces DST on 2016-11-06.

  Changes to future time stamps

    Pacific/Tongatapu begins DST on 2016-11-06 at 02:00, ending on
    2017-01-15 at 03:00.  Assume future observances in Tonga will be
    from the first Sunday in November through the third Sunday in
    January, like Fiji.  (Thanks to Pulu ʻAnau.)  Switch to numeric
    time zone abbreviations for this zone.

  Changes to past and future time stamps

    Northern Cyprus is now +03 year round, causing a split in Cyprus
    time zones starting 2016-10-30 at 04:00.  This creates a zone
    Asia/Famagusta.  (Thanks to Even Scharning and Matt Johnson.)

    Antarctica/Casey switched from +08 to +11 on 2016-10-22.
    (Thanks to Steffen Thorsen.)

  Changes to past time stamps

    Several corrections were made for pre-1975 time stamps in Italy.
    These affect Europe/Malta, Europe/Rome, Europe/San_Marino, and
    Europe/Vatican.

    First, the 1893-11-01 00:00 transition in Italy used the new UT
    offset (+01), not the old (+00:49:56).  (Thanks to Michael
    Deckers.)

    Second, rules for daylight saving in Italy were changed to agree
    with Italy's National Institute of Metrological Research (INRiM)
    except for 1944, as follows (thanks to Pierpaolo Bernardi, Brian
    Inglis, and Michael Deckers):

      The 1916-06-03 transition was at 24:00, not 00:00.

      The 1916-10-01, 1919-10-05, and 1920-09-19 transitions were at
      00:00, not 01:00.

      The 1917-09-30 and 1918-10-06 transitions were at 24:00, not
      01:00.

      The 1944-09-17 transition was at 03:00, not 01:00.  This
      particular change is taken from Italian law as INRiM's table,
      (which says 02:00) appears to have a typo here.  Also, keep the
      1944-04-03 transition for Europe/Rome, as Rome was controlled by
      Germany then.

      The 1967-1970 and 1972-1974 fallback transitions were at 01:00,
      not 00:00.

Bug: 32629043
Test: CtsIcuTestCases / CtsLibcoreTestCases / CtsBionicTestCases
Change-Id: Ica473348c063d2d0372b30ce6d184742db042c05

7 years agoMerge "Small cleanup of cortex-a15 code."
Christopher Ferris [Thu, 3 Nov 2016 22:45:51 +0000 (22:45 +0000)]
Merge "Small cleanup of cortex-a15 code."
am: aea8407ad5

Change-Id: I9da8efe43a17d85bb4a4913174983f14d25088ec

7 years agoMerge "Small cleanup of cortex-a15 code."
Christopher Ferris [Thu, 3 Nov 2016 22:40:16 +0000 (22:40 +0000)]
Merge "Small cleanup of cortex-a15 code."

7 years agoMerge changes I751520a1,I5762e815
Dan Albert [Wed, 2 Nov 2016 19:57:46 +0000 (19:57 +0000)]
Merge changes I751520a1,I5762e815
am: 42eb0b2555

Change-Id: I237e3fb8121385432e011e25a4030b63d3a31903

7 years agoAdd legacy inline for wait4.
Dan Albert [Wed, 2 Nov 2016 19:57:45 +0000 (19:57 +0000)]
Add legacy inline for wait4.
am: e749abe9ab

Change-Id: Ie50811b2a7281e143e7e2eeaaa70c7a6484b6102

7 years agoRevert "Add legacy inlines for locale aware APIs."
Dan Albert [Wed, 2 Nov 2016 19:57:42 +0000 (19:57 +0000)]
Revert "Add legacy inlines for locale aware APIs."
am: a3ce418ca6

Change-Id: Id9ddd8eb027c3e0db1a7c477a10c33a4a01fb4bb

7 years agoMerge changes I751520a1,I5762e815
Treehugger Robot [Wed, 2 Nov 2016 19:56:09 +0000 (19:56 +0000)]
Merge changes I751520a1,I5762e815

* changes:
  Add legacy inline for wait4.
  Revert "Add legacy inlines for locale aware APIs."

7 years agoMerge "Copy the NOTICE file when updating headers."
Dan Albert [Wed, 2 Nov 2016 19:55:12 +0000 (19:55 +0000)]
Merge "Copy the NOTICE file when updating headers."
am: 654287fd73

Change-Id: I403b67eaf69cf2942021628405b711ae4a2867a5

7 years agoMerge "Copy the NOTICE file when updating headers."
Treehugger Robot [Wed, 2 Nov 2016 19:48:42 +0000 (19:48 +0000)]
Merge "Copy the NOTICE file when updating headers."

7 years agoSmall cleanup of cortex-a15 code.
Christopher Ferris [Tue, 1 Nov 2016 21:25:57 +0000 (14:25 -0700)]
Small cleanup of cortex-a15 code.

Remove new version of the cortex-a15 that caused a regression. We are never
going to revisit that code, and it is only confusing things.

Also remove the setting of MEMCPY_BASE and use the correct include
directly.

Test: Compiled angler with 32 bit arch as cortex-a15. Ran 32 bit bionic
Test: unit tests on angler.

Change-Id: I9372c01758fd7a596849c87b1a3f805bb477c94f

7 years agoAdd legacy inline for wait4.
Dan Albert [Tue, 1 Nov 2016 03:12:03 +0000 (20:12 -0700)]
Add legacy inline for wait4.

This wasn't added to Android until android-18. Note that the reason
I'm adding an inline here even though I just reverted a bunch of
inlines in the previous commit is because this was an inline in the
legacy NDK headers. If it was in the old headers, it needs to be in
the unified headers. If it wasn't, it needs to be in
libandroid_support.

Test: ./tools/update_headers.py && make ndk && make native
      # Copied into working directory for unified headers NDK work.
      ndk/checkbuild.py
      ndk/run_tests.py --force-unified-headers
Bug: None

Change-Id: I751520a1df34b3edb5c59b4bd47170c4634a1883

7 years agoRevert "Add legacy inlines for locale aware APIs."
Dan Albert [Mon, 31 Oct 2016 23:20:47 +0000 (16:20 -0700)]
Revert "Add legacy inlines for locale aware APIs."

We can't really add these to the unified headers yet since we're
still using the old headers as well, and libandroid_support needs to
work with both. These functions are already defined in
libandroid_support, so when using unified headers we'll get duplicate
definitions.

This was only going to be a temporary solution anyway. Instead we'll
just rely on libandroid_support (and eventually its rewrite) to handle
these.

This reverts commit 6576a3749bd3805508294bfcac3d9658fc0f8d6e.

Test: ./tools/update_headers.py && make ndk && make native
      # Copied into working directory for unified headers NDK work.
      ndk/checkbuild.py
      ndk/run_tests.py --force-unified-headers
Bug: None

Change-Id: I5762e815e2030c89d7f2540df08dd67b6c2d10a5

7 years agoCopy the NOTICE file when updating headers.
Dan Albert [Thu, 20 Oct 2016 19:45:03 +0000 (12:45 -0700)]
Copy the NOTICE file when updating headers.

Test: ./update_headers.sh
Bug: None
Change-Id: Ibde1e6d7ef1750d8369b65b3125b55023efb5b2a

7 years agoMerge "Fix gettid() after clone()."
Robert Sesek [Sat, 29 Oct 2016 02:17:27 +0000 (02:17 +0000)]
Merge "Fix gettid() after clone()."
am: 8c22ff76e2

Change-Id: I37f128b09378364e55388af2a20d086d1f8d8135

7 years agoMerge "Fix gettid() after clone()."
Treehugger Robot [Sat, 29 Oct 2016 02:09:55 +0000 (02:09 +0000)]
Merge "Fix gettid() after clone()."

7 years agoMerge "Replace .align with .balign for clarity"
Dimitry Ivanov [Fri, 28 Oct 2016 17:30:23 +0000 (17:30 +0000)]
Merge "Replace .align with .balign for clarity"
am: 9b908c8e36

Change-Id: I5fc066aa731043f395ef8f61b43015a1ea159c57

7 years agoMerge "Replace .align with .balign for clarity"
Treehugger Robot [Fri, 28 Oct 2016 17:23:48 +0000 (17:23 +0000)]
Merge "Replace .align with .balign for clarity"

7 years agoFix gettid() after clone().
Robert Sesek [Tue, 25 Oct 2016 14:29:02 +0000 (10:29 -0400)]
Fix gettid() after clone().

The tid is cached in the pthread_internal_t and is properly re-set after fork()
and pthread_create(). But after a plain clone() the value is stale from the
parent.

Test: mmma bionic/tests
Test: bionic-unit-tests-static --gtest_filter=*fork*:*clone*
Test: m checkbuild tests
Test: angler boots

Bug: 32305649
Change-Id: I026d416d1537484cd3e05c8493a35e5ed2acc8ed

7 years agoMerge "Use ENTRY_PRIVATE in __bionic_clone assembler."
Elliott Hughes [Thu, 27 Oct 2016 23:16:21 +0000 (23:16 +0000)]
Merge "Use ENTRY_PRIVATE in __bionic_clone assembler."
am: b1d98da378

Change-Id: I2ccfd6d66e7b46030697da935d2cdad2390874b3

7 years agoMerge "Use ENTRY_PRIVATE in __bionic_clone assembler."
Treehugger Robot [Thu, 27 Oct 2016 23:07:28 +0000 (23:07 +0000)]
Merge "Use ENTRY_PRIVATE in __bionic_clone assembler."

7 years agoReplace .align with .balign for clarity
Dimitry Ivanov [Thu, 27 Oct 2016 09:32:47 +0000 (02:32 -0700)]
Replace .align with .balign for clarity

Test: run bionic-unit-tests
Change-Id: Icb43cc47e41d58fe3cb71986e05b3134022f895c

7 years agoUse ENTRY_PRIVATE in __bionic_clone assembler.
Elliott Hughes [Thu, 27 Oct 2016 00:01:32 +0000 (17:01 -0700)]
Use ENTRY_PRIVATE in __bionic_clone assembler.

Bug: N/A
Test: bionic tests
Change-Id: Ic651d628be009487a36d0b2e5bcf900b981b1ef9

7 years agoMerge "Make versioner build with LLVM r275480"
Pirama Arumuga Nainar [Wed, 26 Oct 2016 17:41:36 +0000 (17:41 +0000)]
Merge "Make versioner build with LLVM r275480"
am: 7409b9cfed

Change-Id: I2a9653438248af262ee75e629f2d303505b2c30f

7 years agoMerge "Make versioner build with LLVM r275480"
Pirama Arumuga Nainar [Wed, 26 Oct 2016 17:35:50 +0000 (17:35 +0000)]
Merge "Make versioner build with LLVM r275480"

7 years agoMerge "_FILE_OFFSET_BITS=64's posix_fallocate should be posix_fallocate64."
Elliott Hughes [Wed, 26 Oct 2016 15:39:33 +0000 (15:39 +0000)]
Merge "_FILE_OFFSET_BITS=64's posix_fallocate should be posix_fallocate64."
am: 689ba18e11

Change-Id: I7e8c6b3e0d0430905731208073060701503aaee2

7 years agoMerge "_FILE_OFFSET_BITS=64's posix_fallocate should be posix_fallocate64."
Elliott Hughes [Wed, 26 Oct 2016 15:33:11 +0000 (15:33 +0000)]
Merge "_FILE_OFFSET_BITS=64's posix_fallocate should be posix_fallocate64."

7 years ago_FILE_OFFSET_BITS=64's posix_fallocate should be posix_fallocate64.
Elliott Hughes [Tue, 25 Oct 2016 21:13:32 +0000 (14:13 -0700)]
_FILE_OFFSET_BITS=64's posix_fallocate should be posix_fallocate64.

Bug: found when reproducing http://b/32331571
Test: "toybox fallocate -l 3m /data/local/tmp/new" on LP32
Change-Id: I4ec5835813b9556d824a12ad650bdf55698ea539

7 years agoMake versioner build with LLVM r275480
Pirama Arumuga Nainar [Fri, 16 Sep 2016 23:56:15 +0000 (16:56 -0700)]
Make versioner build with LLVM r275480

Bug: http://b/31320715

Test: tools/versioner/preupload.sh
Change-Id: Icdff19b214b2b26c60288e49d26a88f04df68ef0

7 years agoMerge "Update timezone data to 2016h."
Neil Fuller [Tue, 25 Oct 2016 08:33:50 +0000 (08:33 +0000)]
Merge "Update timezone data to 2016h."
am: 268b3d8878

Change-Id: I453e256647ff3ed90045d228db7287ac98f84308

7 years agoMerge "Update timezone data to 2016h."
Neil Fuller [Tue, 25 Oct 2016 08:28:11 +0000 (08:28 +0000)]
Merge "Update timezone data to 2016h."

7 years agoMerge "Don't scan .swp files for copyright headers."
Elliott Hughes [Tue, 25 Oct 2016 04:50:32 +0000 (04:50 +0000)]
Merge "Don't scan .swp files for copyright headers."
am: e0baade272

Change-Id: I9c2371f5fcb4bd1369fbba47cf161eb7170f3db3

7 years agoMerge "Don't scan .swp files for copyright headers."
Treehugger Robot [Tue, 25 Oct 2016 04:43:19 +0000 (04:43 +0000)]
Merge "Don't scan .swp files for copyright headers."

7 years agoMerge "The default locale "" should be a UTF-8 locale."
Elliott Hughes [Tue, 25 Oct 2016 00:42:48 +0000 (00:42 +0000)]
Merge "The default locale "" should be a UTF-8 locale."
am: 5e6eb761fc

Change-Id: Idac1bf34e000047b714a41426362de7983cb4130

7 years agoDon't scan .swp files for copyright headers.
Elliott Hughes [Tue, 25 Oct 2016 00:34:42 +0000 (17:34 -0700)]
Don't scan .swp files for copyright headers.

These are binary files, so that's not a good idea.

Bug: N/A
Test: N/A
Change-Id: If5e98df4bbbbac8a15a953be043df7d05c2b409a

7 years agoMerge "The default locale "" should be a UTF-8 locale."
Treehugger Robot [Tue, 25 Oct 2016 00:33:43 +0000 (00:33 +0000)]
Merge "The default locale "" should be a UTF-8 locale."

7 years agoMerge "Minor copyright header unification."
Elliott Hughes [Mon, 24 Oct 2016 22:24:39 +0000 (22:24 +0000)]
Merge "Minor copyright header unification."
am: ac96f6affc

Change-Id: Id39c91be36737c2e5b66416b91aa597a7318a9bc

7 years agoMerge "Minor copyright header unification."
Treehugger Robot [Mon, 24 Oct 2016 22:16:58 +0000 (22:16 +0000)]
Merge "Minor copyright header unification."

7 years agoThe default locale "" should be a UTF-8 locale.
Elliott Hughes [Mon, 24 Oct 2016 21:50:31 +0000 (14:50 -0700)]
The default locale "" should be a UTF-8 locale.

"ls -q" (or "adb shell -tt ls") was mangling non-ASCII because mbrtowc
was returning multibyte characters as their individual bytes. This was
because toybox asks for "" rather than "C.UTF-8", and for some reason
we were interpreting that as "C" rather than "C.UTF-8".

Test: bionic tests, ls
Change-Id: Ic60e3b90cd5fe689e5489fad0d5d91062b9594ed

7 years agoMinor copyright header unification.
Elliott Hughes [Mon, 24 Oct 2016 19:53:17 +0000 (12:53 -0700)]
Minor copyright header unification.

Regenerating the NOTICE file the other day left me scratching my head at
various "how do they differ?" cases, resolved by this patch.

Test: N/A
Change-Id: I4230bfa1d7ec842a4b9fb8c73dd3b39443d74054

7 years agoUpdate timezone data to 2016h.
Neil Fuller [Fri, 21 Oct 2016 13:35:42 +0000 (14:35 +0100)]
Update timezone data to 2016h.

IANA update relating to the data as follows:

The 2016h release of the tz code and data is available. Its primary
motivation is to update to the new rules for Palestine, where 2016g
becomes incorrect starting about four hours from now (sorry, we
didn't get much notice). More generally, the 2016h release reflects
the following changes, which were either circulated on the tz mailing
list or are relatively minor technical or administrative changes:

  Changes to future time stamps

    Asia/Gaza and Asia/Hebron end DST on 2016-10-29 at 01:00, not
    2016-10-21 at 00:00.  (Thanks to Sharef Mustafa.)  Predict that
    future fall transitions will be on the last Saturday of October
    at 01:00, which is consistent with predicted spring transitions
    on the last Saturday of March.  (Thanks to Tim Parenti.)

  Changes to past time stamps

    In Turkey, transitions in 1986-1990 were at 01:00 standard time
    not at 02:00, and the spring 1994 transition was on March 20, not
    March 27.  (Thanks to Kıvanç Yazan.)

  Changes to past and future time zone abbreviations

    Asia/Colombo now uses numeric time zone abbreviations like "+0530"
    instead of alphabetic ones like "IST" and "LKT".  Various
    English-language sources use "IST", "LKT" and "SLST", with no
    working consensus.  (Usage of "SLST" mentioned by Sadika
    Sumanapala.)

Bug: 32320380
Test: Ran CtsLibcoreTestCases, CtsBionicTestCases and ICU tests
Change-Id: I0286e7feac65f43518741d9ae18960e1adb888fb

7 years agoMerge changes from topic 'ndk-headers-licenses'
Dan Albert [Thu, 20 Oct 2016 22:17:10 +0000 (22:17 +0000)]
Merge changes from topic 'ndk-headers-licenses'
am: bd839d100d

Change-Id: Ibd2a5c6aa6db6ea075b414b2e59cfbf2467218a1

7 years agoAdd license to ndk_headers modules.
Dan Albert [Thu, 20 Oct 2016 22:16:34 +0000 (22:16 +0000)]
Add license to ndk_headers modules.
am: 9259265fc2

Change-Id: I21df443051d380fb1154dd9c1589b58d2f88981b

7 years agoOne NOTICE file to rule them all.
Dan Albert [Thu, 20 Oct 2016 22:16:30 +0000 (22:16 +0000)]
One NOTICE file to rule them all.
am: c30862fdbc

Change-Id: I0d6ee8f4b233f00268520804d751df99e5927cff

7 years agoMerge "Update our notice files as a pre-upload step."
Dan Albert [Thu, 20 Oct 2016 22:15:42 +0000 (22:15 +0000)]
Merge "Update our notice files as a pre-upload step."
am: 93a988debb

Change-Id: I49b3c30853b617cc7ca848366e035f8d4d739f92

7 years agoMerge changes from topic 'ndk-headers-licenses'
Treehugger Robot [Thu, 20 Oct 2016 22:12:39 +0000 (22:12 +0000)]
Merge changes from topic 'ndk-headers-licenses'

* changes:
  Add license to ndk_headers modules.
  One NOTICE file to rule them all.

7 years agoMerge "Update our notice files as a pre-upload step."
Treehugger Robot [Thu, 20 Oct 2016 22:07:55 +0000 (22:07 +0000)]
Merge "Update our notice files as a pre-upload step."

7 years agoMerge "Add missing host ldlibs"
Colin Cross [Thu, 20 Oct 2016 20:33:35 +0000 (20:33 +0000)]
Merge "Add missing host ldlibs"
am: 94b428c80a

Change-Id: Ic27234126a63b2c3719170a17a70f5233e52dc9b

7 years agoMerge "Add missing host ldlibs"
Colin Cross [Thu, 20 Oct 2016 20:26:09 +0000 (20:26 +0000)]
Merge "Add missing host ldlibs"

7 years agoMerge "Fix stdin/stdout/stderr for pre-M."
Dan Albert [Thu, 20 Oct 2016 19:43:02 +0000 (19:43 +0000)]
Merge "Fix stdin/stdout/stderr for pre-M."
am: edecce3ac2

Change-Id: I43fa5496c5be59aba6cd75777521b4b1b86da7ed

7 years agoMerge "Fix stdin/stdout/stderr for pre-M."
Treehugger Robot [Thu, 20 Oct 2016 19:34:56 +0000 (19:34 +0000)]
Merge "Fix stdin/stdout/stderr for pre-M."

7 years agoAdd license to ndk_headers modules.
Dan Albert [Thu, 20 Oct 2016 08:42:54 +0000 (01:42 -0700)]
Add license to ndk_headers modules.

Test: make ndk
Bug: None
Change-Id: I0e9a39def2be9cd81369843906f6d7c180d17045

7 years agoOne NOTICE file to rule them all.
Dan Albert [Thu, 20 Oct 2016 18:45:16 +0000 (11:45 -0700)]
One NOTICE file to rule them all.

Generate a single NOTICE file rather than one per library. All the
headers come from libc these days anyway.

Test: tools/update_notice.sh
Bug: None
Change-Id: I127da185fdabc2815042e19aea74c507ec108f46

7 years agoUpdate our notice files as a pre-upload step.
Dan Albert [Thu, 20 Oct 2016 17:34:47 +0000 (10:34 -0700)]
Update our notice files as a pre-upload step.

Also updates the license files, since apparently they're out of date.

Test: repo upload --cbr .
Bug: None
Change-Id: Ic8d855a7ee5185c4933da699292868e02ef79531

7 years agoAdd missing host ldlibs
Colin Cross [Thu, 20 Oct 2016 17:39:50 +0000 (10:39 -0700)]
Add missing host ldlibs

Host builds were compiling without -Wl,--no-undefined.  Add missing
host ldlibs so that -Wl,--no-undefined can be added again.

Test: m -j host
Bug: 32305815
Change-Id: I456098775ead2bddae3e61c7055b2bde3f6b38ff

7 years agoFix stdin/stdout/stderr for pre-M.
Dan Albert [Thu, 6 Oct 2016 22:46:45 +0000 (15:46 -0700)]
Fix stdin/stdout/stderr for pre-M.

This wasn't an array of pointers, it was an array of structs.
Unfortunately we need a complete type to index into the struct for
stdin/stdout/stderr, so add a phony struct that matches the size and
alignment of `struct __sFILE`. This property is guaranteed by the
static_asserts in libc/bionic/struct_file_test.cpp.

Test: mma
Bug: http://b/30465923
Change-Id: I8ce851dd64a261703bb44f9b5cd23b7caff4dd68

7 years agoMerge "Add regression test for http://b/31938693."
Elliott Hughes [Thu, 20 Oct 2016 16:40:52 +0000 (16:40 +0000)]
Merge "Add regression test for http://b/31938693."
am: 6901ca2799

Change-Id: I08432c98bfae0bf087b01b4901aa982e1e21d3fe

7 years agoMerge "Add regression test for http://b/31938693."
Elliott Hughes [Thu, 20 Oct 2016 16:30:05 +0000 (16:30 +0000)]
Merge "Add regression test for http://b/31938693."

7 years agoMerge "Add test for libraries with textrels"
Dimitry Ivanov [Thu, 20 Oct 2016 01:44:43 +0000 (01:44 +0000)]
Merge "Add test for libraries with textrels"
am: 2a2b41038f

Change-Id: I76f947bcf19e87834e048bff5d1057b04af4090a

7 years agoMerge "Add test for libraries with textrels"
Treehugger Robot [Thu, 20 Oct 2016 01:37:19 +0000 (01:37 +0000)]
Merge "Add test for libraries with textrels"

7 years agoAdd regression test for http://b/31938693.
Elliott Hughes [Wed, 19 Oct 2016 23:02:31 +0000 (16:02 -0700)]
Add regression test for http://b/31938693.

Bug: http://b/31938693
Bug: https://code.google.com/p/android/issues/detail?id=225132
Test: this is a test
Change-Id: I858962a1dcd56d555a4836a7bfbdf92d5c3042f6

7 years agoMerge "Fix our _POSIX_* macros to declare barriers and spin locks."
Elliott Hughes [Wed, 19 Oct 2016 21:25:17 +0000 (21:25 +0000)]
Merge "Fix our _POSIX_* macros to declare barriers and spin locks."
am: 0759e7f5c1

Change-Id: I602b845f97ce26dbc22edff2124d075951eb941c

7 years agoAdd test for libraries with textrels
Dimitry Ivanov [Wed, 19 Oct 2016 18:00:28 +0000 (11:00 -0700)]
Add test for libraries with textrels

Make sure android fails to load them.

Bug: http://b/30795430
Test: bionic-unit-tests --gtest_filter=dlfcn.dlopen_invalid*
Test: cts-tradefed run singleCommand cts --skip-preconditions -m CtsBionicTestCases
Change-Id: Id0ebdf336b2f297007479ceb1bbccf778a7ca3f2

7 years agoMerge "Fix our _POSIX_* macros to declare barriers and spin locks."
Elliott Hughes [Wed, 19 Oct 2016 21:16:21 +0000 (21:16 +0000)]
Merge "Fix our _POSIX_* macros to declare barriers and spin locks."

7 years agoFix our _POSIX_* macros to declare barriers and spin locks.
Elliott Hughes [Wed, 19 Oct 2016 16:27:02 +0000 (09:27 -0700)]
Fix our _POSIX_* macros to declare barriers and spin locks.

We have these now.

Test: ran tests
Change-Id: Ie7b479061ecec19c8b35ea81e04debfd8323d94a

7 years agoMerge "Fix ifaddrs error handling."
Elliott Hughes [Fri, 14 Oct 2016 23:40:53 +0000 (23:40 +0000)]
Merge "Fix ifaddrs error handling."
am: d824421475

Change-Id: I1eb9d61522501a9e5c925a8d3b4976674169af97

7 years agoMerge "Fix ifaddrs error handling."
Treehugger Robot [Fri, 14 Oct 2016 23:35:52 +0000 (23:35 +0000)]
Merge "Fix ifaddrs error handling."

7 years agoFix ifaddrs error handling.
Elliott Hughes [Fri, 14 Oct 2016 19:15:32 +0000 (12:15 -0700)]
Fix ifaddrs error handling.

An NLMSG_ERROR packet includes an errno value that we should use. Also report
failures to create a socket immediately, rather than falling through to the
send and reporting EBADF.

Bug: http://b/32145516
Bug: http://b/31038971
Test: bionic ifaddr tests on ryu (with broken kernel) and flounder
Change-Id: I84c480c5b75077eb90d40426a9d66d7bffbd3d51

7 years agoMerge "Remove unused build targets" am: 49ef8c822f am: df4e844940
Dimitry Ivanov [Thu, 13 Oct 2016 00:06:04 +0000 (00:06 +0000)]
Merge "Remove unused build targets" am: 49ef8c822f am: df4e844940
am: 7e22b1317b

Change-Id: Ia012e4ee440c14150f8a70f631bf13d5820b6553

7 years agoMerge "Remove unused build targets" am: 49ef8c822f
Dimitry Ivanov [Wed, 12 Oct 2016 23:59:05 +0000 (23:59 +0000)]
Merge "Remove unused build targets" am: 49ef8c822f
am: df4e844940

Change-Id: I4129a4ff758552c0eb29b7ce4471a25f05e0286c

7 years agoMerge "Remove unused build targets"
Dimitry Ivanov [Wed, 12 Oct 2016 23:52:33 +0000 (23:52 +0000)]
Merge "Remove unused build targets"
am: 49ef8c822f

Change-Id: I68e8fd8ab0fd6f1fefd80e9e6a664be32ce3c593

7 years agoMerge "Remove unused build targets"
Treehugger Robot [Wed, 12 Oct 2016 23:46:40 +0000 (23:46 +0000)]
Merge "Remove unused build targets"

7 years agoRemove unused build targets
Dimitry Ivanov [Wed, 12 Oct 2016 21:06:18 +0000 (14:06 -0700)]
Remove unused build targets

Test: mm
Change-Id: I4eadc40411a31a0e5fa910b0054c19f0dea6c1e2

7 years agoMerge "Allocate all arc4random data on the same page." am: 2eaba9343f am: a1a07174a1
Elliott Hughes [Tue, 11 Oct 2016 22:22:40 +0000 (22:22 +0000)]
Merge "Allocate all arc4random data on the same page." am: 2eaba9343f am: a1a07174a1
am: 9cc503d76e

Change-Id: If0a00f7076e6a29af1cdd316d30a4bff4e08c365

7 years agoMerge "Allocate all arc4random data on the same page." am: 2eaba9343f
Elliott Hughes [Tue, 11 Oct 2016 22:16:39 +0000 (22:16 +0000)]
Merge "Allocate all arc4random data on the same page." am: 2eaba9343f
am: a1a07174a1

Change-Id: Ic7ba1567e9807ef56edee95428f0ef9e1161b457

7 years agoMerge "Allocate all arc4random data on the same page."
Elliott Hughes [Tue, 11 Oct 2016 22:10:39 +0000 (22:10 +0000)]
Merge "Allocate all arc4random data on the same page."
am: 2eaba9343f

Change-Id: I7ff5a437db6ec403d269a530bf755c915ef0e601

7 years agoMerge "Allocate all arc4random data on the same page."
Treehugger Robot [Tue, 11 Oct 2016 22:05:41 +0000 (22:05 +0000)]
Merge "Allocate all arc4random data on the same page."

7 years agoAllocate all arc4random data on the same page.
Elliott Hughes [Tue, 11 Oct 2016 19:58:40 +0000 (12:58 -0700)]
Allocate all arc4random data on the same page.

Saves one dirty page per process.

Test: bionic unit tests, reboot, manual check of /proc/*/maps
Change-Id: Ibbcafa955d60e43f4cb735fa484c6868aa357cd5

7 years agoMerge "Remove obsolete -std request." am: 0e6aa81999 am: 5e76352cc3
Elliott Hughes [Tue, 11 Oct 2016 18:35:54 +0000 (18:35 +0000)]
Merge "Remove obsolete -std request." am: 0e6aa81999 am: 5e76352cc3
am: aab356acef

Change-Id: I95d7de76179069323077067f175306c01a93355a

7 years agoMerge "Remove obsolete -std request." am: 0e6aa81999
Elliott Hughes [Tue, 11 Oct 2016 18:30:24 +0000 (18:30 +0000)]
Merge "Remove obsolete -std request." am: 0e6aa81999
am: 5e76352cc3

Change-Id: Iddf239acbf665466505a625314be7c312323476a

7 years agoMerge "Remove obsolete -std request."
Elliott Hughes [Tue, 11 Oct 2016 18:24:54 +0000 (18:24 +0000)]
Merge "Remove obsolete -std request."
am: 0e6aa81999

Change-Id: I84df5bdc9d37ca2df7e2c9a2675c23b8275bca11

7 years agoMerge "Remove obsolete -std request."
Elliott Hughes [Tue, 11 Oct 2016 18:13:07 +0000 (18:13 +0000)]
Merge "Remove obsolete -std request."

7 years agoMerge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf am: 090e27556a
Dan Albert [Tue, 11 Oct 2016 06:20:10 +0000 (06:20 +0000)]
Merge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf am: 090e27556a
am: 4adc5710e9

Change-Id: Ic6b645666d762b8c017c566bfbd79adfd50c2011

7 years agoMerge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf
Dan Albert [Tue, 11 Oct 2016 06:14:39 +0000 (06:14 +0000)]
Merge "Migrate libstdc++ to ndk_library." am: 2c8a26d8bf
am: 090e27556a

Change-Id: I72fe1bac44e440f2a526538caeb6ab79ba49f86f