OSDN Git Service

android-x86/bionic.git
8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours am: f3a1f4244d...
Elliott Hughes [Tue, 17 May 2016 18:49:14 +0000 (18:49 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4  -s ours am: f3a1f4244d am: c0c1abe518 am: b6789dc3b5
am: d54ed72cd8

* commit 'd54ed72cd89cb66211a011e92acd645dcc0c2243':
  Fix brk/sbrk error checking.

Change-Id: I630c562d6642cce13cb1697e4dfed2432323f57e

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours am: f3a1f4244d...
Elliott Hughes [Tue, 17 May 2016 18:44:48 +0000 (18:44 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4  -s ours am: f3a1f4244d am: c0c1abe518
am: b6789dc3b5

* commit 'b6789dc3b5fbf8bbd6b407ffe53668138e828655':
  Fix brk/sbrk error checking.

Change-Id: Ief90c1e5bac313ff5a2d18117e70b67e62ced301

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours am: f3a1f4244d
Elliott Hughes [Tue, 17 May 2016 18:41:19 +0000 (18:41 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4  -s ours am: f3a1f4244d
am: c0c1abe518

* commit 'c0c1abe518ae6a7470aaf50f2170c588eca0c69a':
  Fix brk/sbrk error checking.

Change-Id: I8e622e884c0fe5c7262bae9d42971c30f9b2e4a2

8 years agoFix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4 -s ours
Elliott Hughes [Tue, 17 May 2016 18:37:10 +0000 (18:37 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3 am: 1d358c8ed4  -s ours
am: f3a1f4244d

* commit 'f3a1f4244dd53aa9ff5f3c13578c52d3f74aae86':
  Fix brk/sbrk error checking.

Change-Id: Iedd0f7a24a709b4ee7e9b39fd293d56d71d7ec6f

8 years agoFix brk/sbrk error checking. am: f36b5088a3
Elliott Hughes [Tue, 17 May 2016 18:34:36 +0000 (18:34 +0000)]
Fix brk/sbrk error checking. am: f36b5088a3
am: 1d358c8ed4  -s ours

* commit '1d358c8ed4443d358f8a6141071c2445b52c8077':
  Fix brk/sbrk error checking.

Change-Id: I8514cee9e52d38fe8aa92310d9566e8041c58efb

8 years agoFix brk/sbrk error checking.
Elliott Hughes [Tue, 17 May 2016 18:19:59 +0000 (18:19 +0000)]
Fix brk/sbrk error checking.
am: f36b5088a3

* commit 'f36b5088a32775c44661fb6b348ed0b6b3b67e65':
  Fix brk/sbrk error checking.

Change-Id: Ie98e3cd7f1f742a22f0f3f0bd1182e95c55a4280

8 years agoFix brk/sbrk error checking.
Elliott Hughes [Sat, 26 Apr 2014 01:27:38 +0000 (18:27 -0700)]
Fix brk/sbrk error checking.

Note that the kernel returns the current break on error or if the requested
break is smaller than the minimum break, or the new break. I don't know where
we got the idea that the kernel could return -1.

Also optimizes the query case.

Also hides an accidentally-exported symbol for LP64.

Bug: 28740702

(cherry picked from commit 533dde4dbf87d6615952be3654fc74e5ff2e1003)

Change-Id: Ied16987756a501acf292368a14e3727ad631efa5

8 years agoresolve merge conflicts of d676080a37 to lmp-mr1-ub-dev.
Christopher Ferris [Wed, 21 Oct 2015 21:56:52 +0000 (14:56 -0700)]
resolve merge conflicts of d676080a37 to lmp-mr1-ub-dev.

Change-Id: I56c1bb2adb4b6a48733c928415e788e689b4944e

8 years agoSync with upstream NetBSD lib/libc/regex.
Elliott Hughes [Wed, 21 Oct 2015 21:45:01 +0000 (21:45 +0000)]
Sync with upstream NetBSD lib/libc/regex.
am: 055a66c9b1

* commit '055a66c9b1017c01b82c12b65a571bf9efad8b19':
  Sync with upstream NetBSD lib/libc/regex.

8 years agoSync with upstream NetBSD lib/libc/regex.
Elliott Hughes [Tue, 15 Sep 2015 01:45:52 +0000 (18:45 -0700)]
Sync with upstream NetBSD lib/libc/regex.

Bug: http://b/22850181
Change-Id: I11a51a2031e68a953ccd5691da98c699c7d01904

(cherry-picked from commit 71927a82379f7a72559ea96e6678d6215090937f)

8 years agoam 75316283: am 2d23418e: am 18442e02: (-s ours) am beb6e08a: Sync with upstream...
Elliott Hughes [Mon, 19 Oct 2015 17:25:29 +0000 (17:25 +0000)]
am 75316283: am 2d23418e: am 18442e02: (-s ours) am beb6e08a: Sync with upstream NetBSD lib/libc/regex.

* commit '753162836a0d3a82739611c9e30aa872363558b1':
  Sync with upstream NetBSD lib/libc/regex.

8 years agoam 2d23418e: am 18442e02: (-s ours) am beb6e08a: Sync with upstream NetBSD lib/libc...
Elliott Hughes [Mon, 19 Oct 2015 17:14:41 +0000 (10:14 -0700)]
am 2d23418e: am 18442e02: (-s ours) am beb6e08a: Sync with upstream NetBSD lib/libc/regex.

* commit '2d23418e68acdab7e142cc75db2850a54aa829aa':
  Sync with upstream NetBSD lib/libc/regex.

8 years agoam 18442e02: (-s ours) am beb6e08a: Sync with upstream NetBSD lib/libc/regex.
Elliott Hughes [Mon, 19 Oct 2015 17:07:34 +0000 (10:07 -0700)]
am 18442e02: (-s ours) am beb6e08a: Sync with upstream NetBSD lib/libc/regex.

* commit '18442e023536c5cf205b820ed5d74b972b710acb':
  Sync with upstream NetBSD lib/libc/regex.

8 years agoam beb6e08a: Sync with upstream NetBSD lib/libc/regex.
Elliott Hughes [Mon, 19 Oct 2015 15:34:19 +0000 (15:34 +0000)]
am beb6e08a: Sync with upstream NetBSD lib/libc/regex.

* commit 'beb6e08abf1393663151afde2742bb23eccab4e1':
  Sync with upstream NetBSD lib/libc/regex.

8 years agoSync with upstream NetBSD lib/libc/regex.
Elliott Hughes [Tue, 15 Sep 2015 01:45:52 +0000 (18:45 -0700)]
Sync with upstream NetBSD lib/libc/regex.

Bug: http://b/22850181
(cherry-picked from commit 71927a82379f7a72559ea96e6678d6215090937f)

Change-Id: I11a51a2031e68a953ccd5691da98c699c7d01904

9 years agoam 0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev
Yabin Cui [Tue, 11 Aug 2015 18:56:43 +0000 (18:56 +0000)]
am 0fdcdd00: Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev

* commit '0fdcdd0067af88e7deef73070d0861ceb9f53c37':
  Fix flaky test time.timer_settime_0.

9 years agoMerge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev
Yabin Cui [Tue, 11 Aug 2015 18:41:17 +0000 (18:41 +0000)]
Merge "Fix flaky test time.timer_settime_0." into lollipop-mr1-cts-dev

9 years agoFix flaky test time.timer_settime_0.
Yabin Cui [Tue, 11 Aug 2015 18:23:16 +0000 (11:23 -0700)]
Fix flaky test time.timer_settime_0.

It fixes the problem reported in https://code.google.com/p/android/issues/detail?id=182395.

Change-Id: Ie16aa04095dac08a62dd0d4c50e763b36526624c

9 years agoam b245bc75: am 0f455612: Merge "Fix flaky test of timer_create_multiple in L." into...
Yabin Cui [Fri, 19 Jun 2015 18:55:51 +0000 (18:55 +0000)]
am b245bc75: am 0f455612: Merge "Fix flaky test of timer_create_multiple in L." into lollipop-mr1-cts-dev

* commit 'b245bc750021ce6d220e71625fca66620cdd1f05':
  Fix flaky test of timer_create_multiple in L.

9 years agoam 0f455612: Merge "Fix flaky test of timer_create_multiple in L." into lollipop...
Yabin Cui [Fri, 19 Jun 2015 18:40:59 +0000 (18:40 +0000)]
am 0f455612: Merge "Fix flaky test of timer_create_multiple in L." into lollipop-mr1-cts-dev

* commit '0f455612d3325932a851418634a17a61307948c5':
  Fix flaky test of timer_create_multiple in L.

9 years agoMerge "Fix flaky test of timer_create_multiple in L." into lollipop-mr1-cts-dev
Yabin Cui [Fri, 19 Jun 2015 18:00:52 +0000 (18:00 +0000)]
Merge "Fix flaky test of timer_create_multiple in L." into lollipop-mr1-cts-dev

9 years agoFix flaky test of timer_create_multiple in L.
Yabin Cui [Thu, 18 Jun 2015 23:19:02 +0000 (16:19 -0700)]
Fix flaky test of timer_create_multiple in L.

Bug: 20677618
Change-Id: I0cb5faf77edce042b10611543180f3e2e73d3d05

9 years agoam 64e9e71c: Define nonportable pthread mutex macros with the _NP suffix.
Sharvil Nanavati [Fri, 12 Jun 2015 20:13:46 +0000 (20:13 +0000)]
am 64e9e71c: Define nonportable pthread mutex macros with the _NP suffix.

* commit '64e9e71cdb7d88397e510e1986d494b797ed3b45':
  Define nonportable pthread mutex macros with the _NP suffix.

9 years agoDefine nonportable pthread mutex macros with the _NP suffix.
Sharvil Nanavati [Fri, 12 Jun 2015 17:56:17 +0000 (10:56 -0700)]
Define nonportable pthread mutex macros with the _NP suffix.

Change-Id: I1066352e5b2607f64daf6aeb0030d0bbe88ead8d

9 years agoresolved conflicts for merge of ea248d9c to lmp-mr1-ub-dev
Yabin Cui [Tue, 2 Jun 2015 23:47:42 +0000 (16:47 -0700)]
resolved conflicts for merge of ea248d9c to lmp-mr1-ub-dev

Change-Id: I362ab2e25e3368c71cb1af51cee2e8fb5ce53e61

9 years agoMerge "Make sys_resource test more robust." into lollipop-cts-dev
Yabin Cui [Tue, 2 Jun 2015 22:03:23 +0000 (22:03 +0000)]
Merge "Make sys_resource test more robust." into lollipop-cts-dev
automerge: 492a0bf

* commit '492a0bf212973baa1c33d584d57e75395774447f':
  Make sys_resource test more robust.

9 years agoMerge "Make sys_resource test more robust." into lollipop-cts-dev
Yabin Cui [Tue, 2 Jun 2015 22:02:28 +0000 (22:02 +0000)]
Merge "Make sys_resource test more robust." into lollipop-cts-dev

9 years agoMake sys_resource test more robust.
Yabin Cui [Mon, 5 Jan 2015 19:06:30 +0000 (11:06 -0800)]
Make sys_resource test more robust.

Bug: 19482626

"ulimit -c xxx" command may run before bionic-unit-tests.
Make sure sys_resource test fails gently in that case.

Change-Id: Ic3b5ed8b20acba56df8c5ef082c88e5050e761aa
(cherry picked from commit 4853f40f3fb6664cb1b7af97b6b3e795717026b1)

9 years agoresolved conflicts for merge of 473d96c0 to lmp-mr1-ub-dev
Yabin Cui [Wed, 20 May 2015 20:36:56 +0000 (13:36 -0700)]
resolved conflicts for merge of 473d96c0 to lmp-mr1-ub-dev

Change-Id: I48269218b152054d527d9257d40490b54205140f

9 years agoMerge "Fix timer flaky test in lollipop-mr1-cts-dev." into lollipop-mr1-cts-dev
Yabin Cui [Sat, 9 May 2015 00:07:45 +0000 (00:07 +0000)]
Merge "Fix timer flaky test in lollipop-mr1-cts-dev." into lollipop-mr1-cts-dev

9 years agoFix timer flaky test in lollipop-mr1-cts-dev.
Yabin Cui [Fri, 8 May 2015 19:01:52 +0000 (12:01 -0700)]
Fix timer flaky test in lollipop-mr1-cts-dev.

It is partically cherry-pick from https://android-review.googlesource.com/#/c/123410/.
And as lollipop-mr1-cts-dev still uses stlport, <stdatomic.h> is used instead of <atomic>.

Bug: 20677618
Change-Id: I952a6fd074facc4227c955fecf3ecbfbbaec4193

9 years agoam 1d76f1cc: Merge "add a fortified implementation of realpath"
Nick Kralevich [Sun, 26 Apr 2015 02:44:29 +0000 (02:44 +0000)]
am 1d76f1cc: Merge "add a fortified implementation of realpath"

* commit '1d76f1cc8be1f40141adac6147cd51061f1ee0b4':
  add a fortified implementation of realpath

9 years agoMerge "add a fortified implementation of realpath"
Nick Kralevich [Sun, 26 Apr 2015 02:23:03 +0000 (02:23 +0000)]
Merge "add a fortified implementation of realpath"

9 years agoam 42502d70: Merge "add fortified memchr/memrchr implementations"
Nick Kralevich [Sat, 25 Apr 2015 21:41:45 +0000 (21:41 +0000)]
am 42502d70: Merge "add fortified memchr/memrchr implementations"

* commit '42502d702e1625c9f3337f7a18ea5fc4cfc6090c':
  add fortified memchr/memrchr implementations

9 years agoMerge "add fortified memchr/memrchr implementations"
Nick Kralevich [Sat, 25 Apr 2015 21:29:56 +0000 (21:29 +0000)]
Merge "add fortified memchr/memrchr implementations"

9 years agoam 2eaff078: Merge "Include pthread_atfork.h to mips64 crtbegin"
Dmitriy Ivanov [Sat, 25 Apr 2015 19:42:22 +0000 (19:42 +0000)]
am 2eaff078: Merge "Include pthread_atfork.h to mips64 crtbegin"

* commit '2eaff07839393485fec522fd0bd17bbf1af72ca6':
  Include pthread_atfork.h to mips64 crtbegin

9 years agoMerge "Include pthread_atfork.h to mips64 crtbegin"
Dmitriy Ivanov [Sat, 25 Apr 2015 19:20:00 +0000 (19:20 +0000)]
Merge "Include pthread_atfork.h to mips64 crtbegin"

9 years agoInclude pthread_atfork.h to mips64 crtbegin
Dmitriy Ivanov [Sat, 25 Apr 2015 18:59:32 +0000 (11:59 -0700)]
Include pthread_atfork.h to mips64 crtbegin

Bug: http://b/20339788
Change-Id: I2a8c7881f90a05ca768cb9b4c2f8b07c74c64469

9 years agoam 9a2744df: Merge "Fix POSIX timer thread naming."
Elliott Hughes [Sat, 25 Apr 2015 18:23:51 +0000 (18:23 +0000)]
am 9a2744df: Merge "Fix POSIX timer thread naming."

* commit '9a2744df301c509ea48361016ab441c792ec6d5a':
  Fix POSIX timer thread naming.

9 years agoMerge "Fix POSIX timer thread naming."
Elliott Hughes [Sat, 25 Apr 2015 18:01:18 +0000 (18:01 +0000)]
Merge "Fix POSIX timer thread naming."

9 years agoFix POSIX timer thread naming.
Elliott Hughes [Sat, 25 Apr 2015 17:05:24 +0000 (10:05 -0700)]
Fix POSIX timer thread naming.

Spencer Low points out that we never actually set a name because the constant
part of the string was longer than the kernel's maximum, and the kernel
rejects long names rather than truncate.

Shorten the fixed part of the string while still keeping it meaningful. 9999
POSIX timers should be enough for any process...

Bug: https://code.google.com/p/android/issues/detail?id=170089
Change-Id: Ic05f07584c1eac160743519091a540ebbf8d7eb1

9 years agoam 2c256a0f: Merge "Unregister pthread_atfork handlers on dlclose()"
Dmitriy Ivanov [Sat, 25 Apr 2015 05:52:51 +0000 (05:52 +0000)]
am 2c256a0f: Merge "Unregister pthread_atfork handlers on dlclose()"

* commit '2c256a0f0927abd94f2210b37c18ead210d30477':
  Unregister pthread_atfork handlers on dlclose()

9 years agoMerge "Unregister pthread_atfork handlers on dlclose()"
Dmitriy Ivanov [Sat, 25 Apr 2015 05:36:06 +0000 (05:36 +0000)]
Merge "Unregister pthread_atfork handlers on dlclose()"

9 years agoam 440242f0: Merge "Use bfd linker for x86/x86_64 targets"
Dmitriy Ivanov [Sat, 25 Apr 2015 04:27:52 +0000 (04:27 +0000)]
am 440242f0: Merge "Use bfd linker for x86/x86_64 targets"

* commit '440242f03805872a0c62528d763e5e98dad9b580':
  Use bfd linker for x86/x86_64 targets

9 years agoMerge "Use bfd linker for x86/x86_64 targets"
Dmitriy Ivanov [Sat, 25 Apr 2015 04:09:42 +0000 (04:09 +0000)]
Merge "Use bfd linker for x86/x86_64 targets"

9 years agoUse bfd linker for x86/x86_64 targets
Dmitriy Ivanov [Sat, 25 Apr 2015 04:05:49 +0000 (21:05 -0700)]
Use bfd linker for x86/x86_64 targets

 ld.gold in current toolchain for x86_64
 does not support -z global.

Change-Id: Iea2b192f0f0aa998a02adb356fd4eec4e10a1739

9 years agoam ebfb55e4: Merge "Enable dlsym_df_1_global test for arm/arm64"
Dmitriy Ivanov [Sat, 25 Apr 2015 01:10:54 +0000 (01:10 +0000)]
am ebfb55e4: Merge "Enable dlsym_df_1_global test for arm/arm64"

* commit 'ebfb55e4cdf03473d66eaf5928fb3c3a8b0c2f85':
  Enable dlsym_df_1_global test for arm/arm64

9 years agoUnregister pthread_atfork handlers on dlclose()
Dmitriy Ivanov [Fri, 21 Nov 2014 04:47:02 +0000 (20:47 -0800)]
Unregister pthread_atfork handlers on dlclose()

Bug: http://b/20339788
Change-Id: I874c87faa377645fa9e0752f4fc166d81fd9ef7e

9 years agoMerge "Enable dlsym_df_1_global test for arm/arm64"
Dmitriy Ivanov [Sat, 25 Apr 2015 00:50:04 +0000 (00:50 +0000)]
Merge "Enable dlsym_df_1_global test for arm/arm64"

9 years agoEnable dlsym_df_1_global test for arm/arm64
Dmitriy Ivanov [Fri, 24 Apr 2015 23:26:03 +0000 (16:26 -0700)]
Enable dlsym_df_1_global test for arm/arm64

Change-Id: I1fdebced93175cb14053e2239e79f97239fc2dc2

9 years agoam 2bb93482: Merge "Exit normally when relocations are already packed."
Dmitriy Ivanov [Fri, 24 Apr 2015 20:05:05 +0000 (20:05 +0000)]
am 2bb93482: Merge "Exit normally when relocations are already packed."

* commit '2bb93482a7793640205ade2f7316db5b3f5cac19':
  Exit normally when relocations are already packed.

9 years agoMerge "Exit normally when relocations are already packed."
Dmitriy Ivanov [Fri, 24 Apr 2015 19:42:39 +0000 (19:42 +0000)]
Merge "Exit normally when relocations are already packed."

9 years agoExit normally when relocations are already packed.
Dmitriy Ivanov [Fri, 24 Apr 2015 19:39:14 +0000 (12:39 -0700)]
Exit normally when relocations are already packed.

Bug: http://b/18051137
Change-Id: Idfffac5fe965e3cdeabe6d3b2dcd8c275c6ae5df

9 years agoam 6c63ee41: Merge "Revert "Unregister pthread_atfork handlers on dlclose()""
Dimitry Ivanov [Fri, 24 Apr 2015 04:07:13 +0000 (04:07 +0000)]
am 6c63ee41: Merge "Revert "Unregister pthread_atfork handlers on dlclose()""

* commit '6c63ee41ac5a246fb46c51753cd4d50ccae0dd8f':
  Revert "Unregister pthread_atfork handlers on dlclose()"

9 years agoMerge "Revert "Unregister pthread_atfork handlers on dlclose()""
Dimitry Ivanov [Fri, 24 Apr 2015 03:49:30 +0000 (03:49 +0000)]
Merge "Revert "Unregister pthread_atfork handlers on dlclose()""

9 years agoRevert "Unregister pthread_atfork handlers on dlclose()"
Dimitry Ivanov [Fri, 24 Apr 2015 03:45:59 +0000 (03:45 +0000)]
Revert "Unregister pthread_atfork handlers on dlclose()"

 The visibility control in pthread_atfork.h is incorrect.
 It breaks 64bit libc.so by hiding pthread_atfork.

 This reverts commit 6df122f8528f9b9fcf7dfea14ae98b0ef66274e1.

Change-Id: I21e4b344d500c6f6de0ccb7420b916c4e233dd34

9 years agoam 41ebceaf: Merge "Exit normally when packing relocs saves no space."
Dmitriy Ivanov [Thu, 23 Apr 2015 23:13:57 +0000 (23:13 +0000)]
am 41ebceaf: Merge "Exit normally when packing relocs saves no space."

* commit '41ebceaf3ad392b4a3f40d96d5750d95ef206546':
  Exit normally when packing relocs saves no space.

9 years agoMerge "Exit normally when packing relocs saves no space."
Dmitriy Ivanov [Thu, 23 Apr 2015 22:55:32 +0000 (22:55 +0000)]
Merge "Exit normally when packing relocs saves no space."

9 years agoExit normally when packing relocs saves no space.
Dmitriy Ivanov [Thu, 23 Apr 2015 20:47:39 +0000 (13:47 -0700)]
Exit normally when packing relocs saves no space.

Bug: http://b/18051137
Change-Id: I43ea5678a677e5d39fb54fafcf3a2f3a252c79b0

9 years agoam e3ecedd3: Merge "Remove jemalloc.a from libc_nomalloc.a"
Dmitriy Ivanov [Thu, 23 Apr 2015 22:12:41 +0000 (22:12 +0000)]
am e3ecedd3: Merge "Remove jemalloc.a from libc_nomalloc.a"

* commit 'e3ecedd306ec16ecb31c6b7d6f9fdcb65c03b70f':
  Remove jemalloc.a from libc_nomalloc.a

9 years agoMerge "Remove jemalloc.a from libc_nomalloc.a"
Dmitriy Ivanov [Thu, 23 Apr 2015 21:50:14 +0000 (21:50 +0000)]
Merge "Remove jemalloc.a from libc_nomalloc.a"

9 years agoam 3da9373f: Merge "Simplify close(2) EINTR handling."
Elliott Hughes [Thu, 23 Apr 2015 21:33:07 +0000 (21:33 +0000)]
am 3da9373f: Merge "Simplify close(2) EINTR handling."

* commit '3da9373fe0ada19d13c6c3f9831dee93ec0ba7a6':
  Simplify close(2) EINTR handling.

9 years agoMerge "Simplify close(2) EINTR handling."
Elliott Hughes [Thu, 23 Apr 2015 21:14:24 +0000 (21:14 +0000)]
Merge "Simplify close(2) EINTR handling."

9 years agoRemove jemalloc.a from libc_nomalloc.a
Dmitriy Ivanov [Thu, 23 Apr 2015 19:24:43 +0000 (12:24 -0700)]
Remove jemalloc.a from libc_nomalloc.a

Change-Id: I86edc1a6cf3a26c46e6daef2c859459c1b0f29af

9 years agoSimplify close(2) EINTR handling.
Elliott Hughes [Thu, 23 Apr 2015 04:40:38 +0000 (21:40 -0700)]
Simplify close(2) EINTR handling.

This doesn't affect code like Chrome that correctly ignores EINTR on
close, makes code that tries TEMP_FAILURE_RETRY work (where before it might
have closed a different fd and appeared to succeed, or had a bogus EBADF),
and makes "goto fail" code work (instead of mistakenly assuming that EINTR
means that the close failed).

Who loses? Anyone actively trying to detect that they caught a signal while
in close(2). I don't think those people exist, and I think they have better
alternatives available.

Bug: https://code.google.com/p/chromium/issues/detail?id=269623
Bug: http://b/20501816
Change-Id: I11e2f66532fe5d1b0082b2433212e24bdda8219b

9 years agoam dc405b52: Merge "Unregister pthread_atfork handlers on dlclose()"
Dmitriy Ivanov [Thu, 23 Apr 2015 09:56:57 +0000 (09:56 +0000)]
am dc405b52: Merge "Unregister pthread_atfork handlers on dlclose()"

* commit 'dc405b5230c3d72107b57798a2c23b1a46069f4d':
  Unregister pthread_atfork handlers on dlclose()

9 years agoMerge "Unregister pthread_atfork handlers on dlclose()"
Dmitriy Ivanov [Thu, 23 Apr 2015 08:05:25 +0000 (08:05 +0000)]
Merge "Unregister pthread_atfork handlers on dlclose()"

9 years agoUnregister pthread_atfork handlers on dlclose()
Dmitriy Ivanov [Fri, 21 Nov 2014 04:47:02 +0000 (20:47 -0800)]
Unregister pthread_atfork handlers on dlclose()

Change-Id: I326fdf6bb06bed12743f08980b5c69d849c015b8

9 years agoam ff181089: Merge "Always use signed leb128 decoder"
Dmitriy Ivanov [Wed, 22 Apr 2015 22:38:01 +0000 (22:38 +0000)]
am ff181089: Merge "Always use signed leb128 decoder"

* commit 'ff18108981aa1fa73696d6db1919cdc38788bd4e':
  Always use signed leb128 decoder

9 years agoMerge "Always use signed leb128 decoder"
Dmitriy Ivanov [Wed, 22 Apr 2015 22:15:47 +0000 (22:15 +0000)]
Merge "Always use signed leb128 decoder"

9 years agoAlways use signed leb128 decoder
Dmitriy Ivanov [Wed, 22 Apr 2015 20:10:04 +0000 (13:10 -0700)]
Always use signed leb128 decoder

  Relocation packer no longer encodes relocation tables
  using unsigned leb128: https://android-review.googlesource.com/147745

Bug: http://b/18051137
Change-Id: I620b7188e5f3dd9d5123431aa1fc7feca76be607

9 years agoam 9ceec1a7: Merge "Always use signed leb128 encoding"
Dmitriy Ivanov [Wed, 22 Apr 2015 20:23:01 +0000 (20:23 +0000)]
am 9ceec1a7: Merge "Always use signed leb128 encoding"

* commit '9ceec1a75dfcc8b032aa3a974b0cfc3bff5a306e':
  Always use signed leb128 encoding

9 years agoMerge "Always use signed leb128 encoding"
Dmitriy Ivanov [Wed, 22 Apr 2015 20:02:03 +0000 (20:02 +0000)]
Merge "Always use signed leb128 encoding"

9 years agoAlways use signed leb128 encoding
Dmitriy Ivanov [Tue, 21 Apr 2015 22:03:04 +0000 (15:03 -0700)]
Always use signed leb128 encoding

 According to runs on /system/lib there using
 unsigned leb128 does not save us any additional
 space. In order to keep packing as simple as
 possible switch to using signed leb128 for
 everything.

Bug: http://b/18051137
Change-Id: I1a47cb9eb2175895b3c3f7c13b4c6b1060de86c0

9 years agoam 457c34ad: Merge "Update the search path for libclang.so"
Tao Bao [Wed, 22 Apr 2015 18:55:11 +0000 (18:55 +0000)]
am 457c34ad: Merge "Update the search path for libclang.so"

* commit '457c34ad84093ec45ebe2e2f1ef635e3dcaddbe0':
  Update the search path for libclang.so

9 years agoam 913fe559: Merge "Statically link libc++ for prebuilts"
Dmitriy Ivanov [Wed, 22 Apr 2015 18:46:43 +0000 (18:46 +0000)]
am 913fe559: Merge "Statically link libc++ for prebuilts"

* commit '913fe559f69395aaf160653c1d3994df3272810b':
  Statically link libc++ for prebuilts

9 years agoMerge "Update the search path for libclang.so"
Tao Bao [Wed, 22 Apr 2015 18:25:45 +0000 (18:25 +0000)]
Merge "Update the search path for libclang.so"

9 years agoMerge "Statically link libc++ for prebuilts"
Dmitriy Ivanov [Wed, 22 Apr 2015 18:15:25 +0000 (18:15 +0000)]
Merge "Statically link libc++ for prebuilts"

9 years agoUpdate the search path for libclang.so
Tao Bao [Wed, 22 Apr 2015 17:37:38 +0000 (10:37 -0700)]
Update the search path for libclang.so

Prebuilt shared libraries (libclang.so, libLLVM.so and etc) have been
moved to prebuilts/sdk/tools/linux/lib64. Update the search path in
cpp.py to match the change.

Bug: 20485471
Change-Id: Ib7784db4d5529d16a1e2bfc07cb0237929bc5a64

9 years agoStatically link libc++ for prebuilts
Dmitriy Ivanov [Wed, 22 Apr 2015 17:43:12 +0000 (10:43 -0700)]
Statically link libc++ for prebuilts

 Statically link libc++ to relocation_packer in
 order to make it work from prebuilts

Bug: http://b/18051137
Change-Id: I933ed6a0e48780a26b261069eb6a293432824fe7

9 years agoam a00a9f0b: Merge "Allow building libc long double code with clang/llvm."
Chih-Hung Hsieh [Wed, 22 Apr 2015 00:05:31 +0000 (00:05 +0000)]
am a00a9f0b: Merge "Allow building libc long double code with clang/llvm."

* commit 'a00a9f0b7ed39589a768798de6a584a4baae030b':
  Allow building libc long double code with clang/llvm.

9 years agoMerge "Allow building libc long double code with clang/llvm."
Chih-Hung Hsieh [Tue, 21 Apr 2015 23:44:58 +0000 (23:44 +0000)]
Merge "Allow building libc long double code with clang/llvm."

9 years agoam da3c4f2f: Merge "Adjust DT_VERSYM/VERNEED/VERDEF dynamic sections"
Dmitriy Ivanov [Tue, 21 Apr 2015 23:08:41 +0000 (23:08 +0000)]
am da3c4f2f: Merge "Adjust DT_VERSYM/VERNEED/VERDEF dynamic sections"

* commit 'da3c4f2f0d86b7e249c9b9b6cdf3bc0225b7178e':
  Adjust DT_VERSYM/VERNEED/VERDEF dynamic sections

9 years agoAllow building libc long double code with clang/llvm.
Chih-Hung Hsieh [Mon, 16 Mar 2015 20:49:40 +0000 (13:49 -0700)]
Allow building libc long double code with clang/llvm.

This requires fix of clang's Android x86 long double size and format.
That bug has been fixed in https://android-review.git.corp.google.com/#/c/146254/

Change-Id: I182c6c493085212f88c694356659f72227c8b8c7

9 years agoMerge "Adjust DT_VERSYM/VERNEED/VERDEF dynamic sections"
Dmitriy Ivanov [Tue, 21 Apr 2015 19:29:18 +0000 (19:29 +0000)]
Merge "Adjust DT_VERSYM/VERNEED/VERDEF dynamic sections"

9 years agoAdjust DT_VERSYM/VERNEED/VERDEF dynamic sections
Dmitriy Ivanov [Tue, 21 Apr 2015 00:41:28 +0000 (17:41 -0700)]
Adjust DT_VERSYM/VERNEED/VERDEF dynamic sections

  This is recent addition to bionic linker. The symbol
  versioning was not supported before therefore this bug
  went unnoticed.

  Also normal exit when there is not enought relocations
  to pack. This is to enable integration of relocation_packer
  to android build system.

Bug: http://b/20139821
Bug: http://b/18051137
Change-Id: Iaf36ae11c8e4b15cf785b6dd1712a3bdcf47cc45

9 years agoam 0776f0f6: Merge "Add library name to error message"
Dmitriy Ivanov [Tue, 21 Apr 2015 01:17:34 +0000 (01:17 +0000)]
am 0776f0f6: Merge "Add library name to error message"

* commit '0776f0f6e2fc926ae90f460ceac2b0e025292363':
  Add library name to error message

9 years agoMerge "Add library name to error message"
Dmitriy Ivanov [Tue, 21 Apr 2015 00:51:36 +0000 (00:51 +0000)]
Merge "Add library name to error message"

9 years agoAdd library name to error message
Dmitriy Ivanov [Tue, 21 Apr 2015 00:40:39 +0000 (17:40 -0700)]
Add library name to error message

Change-Id: I079e6f1dd95fe9cae2135fcd7358c51f8b584ac9

9 years agoadd a fortified implementation of realpath
Daniel Micay [Sat, 18 Apr 2015 17:04:19 +0000 (13:04 -0400)]
add a fortified implementation of realpath

Change-Id: Icc59eacd1684f7cddd83d7a2b57dad0c7ada5eb7

9 years agoam c5bd96ef: Merge "Fix bug in app_id_from_name in stubs.cpp."
Yabin Cui [Sat, 18 Apr 2015 23:15:50 +0000 (23:15 +0000)]
am c5bd96ef: Merge "Fix bug in app_id_from_name in stubs.cpp."

* commit 'c5bd96efd27f756d07f1a306e4120cede17b39f5':
  Fix bug in app_id_from_name in stubs.cpp.

9 years agoMerge "Fix bug in app_id_from_name in stubs.cpp."
Yabin Cui [Sat, 18 Apr 2015 22:54:35 +0000 (22:54 +0000)]
Merge "Fix bug in app_id_from_name in stubs.cpp."

9 years agoFix bug in app_id_from_name in stubs.cpp.
Yabin Cui [Sat, 18 Apr 2015 21:07:41 +0000 (14:07 -0700)]
Fix bug in app_id_from_name in stubs.cpp.

It seems that a break statement is missing.

Bug: 19872411
Change-Id: I9362783ab726d01f6eb27418563e716dd95688dc

9 years agoam af7538b4: Merge "add fortified readlink/readlinkat implementations"
Nick Kralevich [Sat, 18 Apr 2015 15:51:28 +0000 (15:51 +0000)]
am af7538b4: Merge "add fortified readlink/readlinkat implementations"

* commit 'af7538b49625f1c1c82e984610f26729a18d56bf':
  add fortified readlink/readlinkat implementations

9 years agoMerge "add fortified readlink/readlinkat implementations"
Nick Kralevich [Sat, 18 Apr 2015 15:30:18 +0000 (15:30 +0000)]
Merge "add fortified readlink/readlinkat implementations"

9 years agoadd fortified memchr/memrchr implementations
Daniel Micay [Fri, 17 Apr 2015 22:16:57 +0000 (18:16 -0400)]
add fortified memchr/memrchr implementations

Change-Id: I38c473cc0c608b08f971409a95eb8b853cb2ba1c

9 years agoam 7a8c7c48: Merge "Also send bionicbb logs to a file."
Dan Albert [Sat, 18 Apr 2015 01:10:22 +0000 (01:10 +0000)]
am 7a8c7c48: Merge "Also send bionicbb logs to a file."

* commit '7a8c7c48db11b81bc53c63ddfbaeca12e7f5e8cb':
  Also send bionicbb logs to a file.

9 years agoam cb6ae56b: Merge "Merge the two bionicbb services into one."
Dan Albert [Sat, 18 Apr 2015 01:10:21 +0000 (01:10 +0000)]
am cb6ae56b: Merge "Merge the two bionicbb services into one."

* commit 'cb6ae56b3e4ee50e99e9f3335d2676a21000d400':
  Merge the two bionicbb services into one.

9 years agoMerge "Also send bionicbb logs to a file."
Dan Albert [Sat, 18 Apr 2015 00:58:23 +0000 (00:58 +0000)]
Merge "Also send bionicbb logs to a file."

9 years agoAlso send bionicbb logs to a file.
Dan Albert [Sat, 18 Apr 2015 00:51:39 +0000 (17:51 -0700)]
Also send bionicbb logs to a file.

Change-Id: If9a6fdbe004e3b4bb7d868b7255f83c232759f80