OSDN Git Service

android-x86/bionic.git
10 years agoam b4b7e054: Merge "Fix the tzdata update tools."
Elliott Hughes [Thu, 7 Aug 2014 00:42:11 +0000 (00:42 +0000)]
am b4b7e054: Merge "Fix the tzdata update tools."

* commit 'b4b7e0547da259b38b3e31dbd08cf26026cff1ee':
  Fix the tzdata update tools.

10 years agoMerge "Fix the tzdata update tools."
Elliott Hughes [Thu, 7 Aug 2014 00:34:37 +0000 (00:34 +0000)]
Merge "Fix the tzdata update tools."

10 years agoFix the tzdata update tools.
Elliott Hughes [Wed, 6 Aug 2014 22:23:11 +0000 (15:23 -0700)]
Fix the tzdata update tools.

The recent libcore ZoneInfo changes mean that we can no longer
compile libcore's ZoneInfo against the RI. Luckily, the field in
our data file that we needed ZoneInfo for isn't actually used.
This change removes our dependence on libcore.

I've left the field in to avoid a file format change. We can remove
the field if/when we next have a real need to bump the file format.

(cherry-pick of 90cb5ffb85a9bc2e725824b3ca8db932d02c45db.)

Bug: 16168653
Change-Id: Iedad2252c2b49f4d8bb2c7d9078b39b622444ca7

10 years agoam bc0d65c1: Merge "Proper MB_CUR_MAX." into lmp-dev
Dan Albert [Wed, 6 Aug 2014 21:26:13 +0000 (21:26 +0000)]
am bc0d65c1: Merge "Proper MB_CUR_MAX." into lmp-dev

* commit 'bc0d65c114f3ead6d89f8e92622bc941d731b01c':
  Proper MB_CUR_MAX.

10 years agoam 5b39a445: Merge "Fix mbsrtowcs(3) src param for finished string." into lmp-dev
Dan Albert [Wed, 6 Aug 2014 21:26:13 +0000 (21:26 +0000)]
am 5b39a445: Merge "Fix mbsrtowcs(3) src param for finished string." into lmp-dev

* commit '5b39a44575e01ecf65397ffb7518efc3c65a6d8b':
  Fix mbsrtowcs(3) src param for finished string.

10 years agoam 40079b00: Fixes build.
Dan Albert [Wed, 6 Aug 2014 21:26:12 +0000 (21:26 +0000)]
am 40079b00: Fixes build.

* commit '40079b003168b39dab91e106c7a877b677e64ef1':
  Fixes build.

10 years agoam 5386a741: Revert "Replaces vfork() implementation with fork()"
Dan Albert [Wed, 6 Aug 2014 21:26:09 +0000 (21:26 +0000)]
am 5386a741: Revert "Replaces vfork() implementation with fork()"

* commit '5386a741e77bfff4e72ca6861fdd3fe2208452ce':
  Revert "Replaces vfork() implementation with fork()"

10 years agoam 3a238ae7: Merge "Revert "Add a hack to <stdlib.h> until we can fix libvpx.""
Elliott Hughes [Wed, 6 Aug 2014 20:38:40 +0000 (20:38 +0000)]
am 3a238ae7: Merge "Revert "Add a hack to <stdlib.h> until we can fix libvpx.""

* commit '3a238ae7620298608e1d463901051c397e4f8a2f':
  Revert "Add a hack to <stdlib.h> until we can fix libvpx."

10 years agoam 00a8344a: Merge "Workaround b/16818336 which fails build under aggressive inlining...
Elliott Hughes [Wed, 6 Aug 2014 19:50:02 +0000 (19:50 +0000)]
am 00a8344a: Merge "Workaround b/16818336 which fails build under aggressive inlining." into lmp-dev

* commit '00a8344ae82a691209b665adae828a5abe570cfb':
  Workaround b/16818336 which fails build under aggressive inlining.

10 years agoam 7a5f0952: Merge "Revert most of "Cleanup: Delete dead code."" into lmp-dev
Paul Jensen [Wed, 6 Aug 2014 19:50:01 +0000 (19:50 +0000)]
am 7a5f0952: Merge "Revert most of "Cleanup: Delete dead code."" into lmp-dev

* commit '7a5f0952a293fd6e511db0e0a72e18f20bb4c500':
  Revert most of "Cleanup: Delete dead code."

10 years agoFixes build.
Dan Albert [Tue, 5 Aug 2014 21:46:03 +0000 (14:46 -0700)]
Fixes build.

This change somehow went missing from the vfork change.

Change-Id: I807a2072080eac20601c694e85ba5723220289d8
(cherry picked from commit 9eae8405e8f70e489f2fe350a0212ab8114cbd17)

10 years agoRevert "Replaces vfork() implementation with fork()"
Dan Albert [Tue, 5 Aug 2014 20:53:31 +0000 (20:53 +0000)]
Revert "Replaces vfork() implementation with fork()"

We're getting cold feet on this one... let's put it back.

This reverts commit 210331d9762037afb9b5ed8413079c6f65872df9.

Change-Id: I6b0d3c2b1dbf7f1dc9566979a91b7504c2189269
(cherry picked from commit 6a918870bab1a55a5f57dd7954abd9a8a27c1bc2)

10 years agoam bb91a1b8: Merge "Workaround b/16818336 which fails build under aggressive inlining."
Elliott Hughes [Wed, 6 Aug 2014 18:53:23 +0000 (18:53 +0000)]
am bb91a1b8: Merge "Workaround b/16818336 which fails build under aggressive inlining."

* commit 'bb91a1b845f7c8b3b09d07fe467aa32d2aeddc4f':
  Workaround b/16818336 which fails build under aggressive inlining.

10 years agoam 59b0933e: Explain how wcswcs ended up in ndk_cruft.cpp.
Elliott Hughes [Wed, 6 Aug 2014 18:09:18 +0000 (18:09 +0000)]
am 59b0933e: Explain how wcswcs ended up in ndk_cruft.cpp.

* commit '59b0933e6d4cd9671ad3b6baeae424bc72c8ece0':
  Explain how wcswcs ended up in ndk_cruft.cpp.

10 years agoam 8b91980e: Merge "Explain how wcswcs ended up in ndk_cruft.cpp."
Elliott Hughes [Wed, 6 Aug 2014 18:02:59 +0000 (18:02 +0000)]
am 8b91980e: Merge "Explain how wcswcs ended up in ndk_cruft.cpp."

* commit '8b91980e4c139558f9cca4e9a0980dad07c06e68':
  Explain how wcswcs ended up in ndk_cruft.cpp.

10 years agoExplain how wcswcs ended up in ndk_cruft.cpp.
Elliott Hughes [Wed, 6 Aug 2014 17:47:33 +0000 (10:47 -0700)]
Explain how wcswcs ended up in ndk_cruft.cpp.

(cherry picked from commit 1628eb1d43008c52b00ec98d10c4fd9e8b6fc7c5)

Change-Id: I335b35038781d0426b3647727e6c4f22c83e187b

10 years agoMerge "Explain how wcswcs ended up in ndk_cruft.cpp."
Elliott Hughes [Wed, 6 Aug 2014 17:55:27 +0000 (17:55 +0000)]
Merge "Explain how wcswcs ended up in ndk_cruft.cpp."

10 years agoExplain how wcswcs ended up in ndk_cruft.cpp.
Elliott Hughes [Wed, 6 Aug 2014 17:47:33 +0000 (10:47 -0700)]
Explain how wcswcs ended up in ndk_cruft.cpp.

Change-Id: Ie45148095b2d5c3896c0df623d5d06a700c33c70

10 years agoMerge "Fix mbsrtowcs(3) src param for finished string." into lmp-dev
Dan Albert [Wed, 6 Aug 2014 21:09:35 +0000 (21:09 +0000)]
Merge "Fix mbsrtowcs(3) src param for finished string." into lmp-dev

10 years agoFix mbsrtowcs(3) src param for finished string.
Dan Albert [Thu, 31 Jul 2014 18:31:03 +0000 (11:31 -0700)]
Fix mbsrtowcs(3) src param for finished string.

A mistake I made while cleaning this up the first time through.
mbstrtowcs(3) sets the src param to null if it finishes the string.

Change-Id: I6263646e25d9537043b7025fd1dd6ae195f365e2
(cherry picked from commit b6cc8e00cd562bd0f81fe44a6bc646540a862f32)

10 years agoMerge "Revert "Add a hack to <stdlib.h> until we can fix libvpx.""
Elliott Hughes [Wed, 6 Aug 2014 20:23:26 +0000 (20:23 +0000)]
Merge "Revert "Add a hack to <stdlib.h> until we can fix libvpx.""

10 years agoRevert "Add a hack to <stdlib.h> until we can fix libvpx."
Elliott Hughes [Mon, 28 Jul 2014 23:16:38 +0000 (16:16 -0700)]
Revert "Add a hack to <stdlib.h> until we can fix libvpx."

This reverts commit 3fb5097a7eec40404760c304b36c8b657b374cab.
libvpx is now fixed.

(cherry-pick of 2be1be47aa9b63568fe6ce1e0a4029b37d90764d.)

Bug: 15598056
Change-Id: Icca974e667f92206505f484bd291726eb0150f68

10 years agoMerge "Proper MB_CUR_MAX." into lmp-dev
Dan Albert [Wed, 6 Aug 2014 21:09:52 +0000 (21:09 +0000)]
Merge "Proper MB_CUR_MAX." into lmp-dev

10 years agoProper MB_CUR_MAX.
Dan Albert [Wed, 30 Jul 2014 17:53:48 +0000 (10:53 -0700)]
Proper MB_CUR_MAX.

Previously this was hard coded to 4. This is only the case for UTF-8
locales.

As a side effect, this properly reports C.UTF-8 as the default locale
instead of C.

Change-Id: I7c73cc8fe6ffac61d211cd5f75287e36de06f4fc
(cherry picked from commit 1aec7c1a35b2d03038b194967d5ebdc8e2c24b80)

10 years agoMerge "Workaround b/16818336 which fails build under aggressive inlining." into lmp-dev
Elliott Hughes [Wed, 6 Aug 2014 18:43:19 +0000 (18:43 +0000)]
Merge "Workaround b/16818336 which fails build under aggressive inlining." into lmp-dev

10 years agoam afc86723: Merge "Add an obvious comment to <stdio.h> for fixincludes."
Elliott Hughes [Wed, 6 Aug 2014 16:13:37 +0000 (16:13 +0000)]
am afc86723: Merge "Add an obvious comment to <stdio.h> for fixincludes."

* commit 'afc8672387438f9c8926a12831f43a6dd1f59323':
  Add an obvious comment to <stdio.h> for fixincludes.

10 years agoam db7a17d4: Revert "Revert "Fix dlsym(3) to do breadth first search.""
Dmitriy Ivanov [Wed, 6 Aug 2014 01:23:25 +0000 (01:23 +0000)]
am db7a17d4: Revert "Revert "Fix dlsym(3) to do breadth first search.""

* commit 'db7a17d4ff56a05af01ee2fee1f3c55245bfc630':
  Revert "Revert "Fix dlsym(3) to do breadth first search.""

10 years agoWorkaround b/16818336 which fails build under aggressive inlining.
Dehao Chen [Tue, 5 Aug 2014 22:23:00 +0000 (15:23 -0700)]
Workaround b/16818336 which fails build under aggressive inlining.

Change-Id: Ifcd596714c427a2ec39502b9c0af9082ded91884

10 years agoam de69069f: Merge "Fixes build."
Dan Albert [Tue, 5 Aug 2014 21:55:18 +0000 (21:55 +0000)]
am de69069f: Merge "Fixes build."

* commit 'de69069fcfee8d89dfc70da374760ef0c29fe0a4':
  Fixes build.

10 years agoam a7ef8188: Merge "Revert "Replaces vfork() implementation with fork()""
Dan Albert [Tue, 5 Aug 2014 21:43:20 +0000 (21:43 +0000)]
am a7ef8188: Merge "Revert "Replaces vfork() implementation with fork()""

* commit 'a7ef8188e24446d41c5abbe9addf55cc6a128968':
  Revert "Replaces vfork() implementation with fork()"

10 years agoMerge "Add an obvious comment to <stdio.h> for fixincludes."
Elliott Hughes [Wed, 6 Aug 2014 16:04:48 +0000 (16:04 +0000)]
Merge "Add an obvious comment to <stdio.h> for fixincludes."

10 years agoAdd an obvious comment to <stdio.h> for fixincludes.
Elliott Hughes [Wed, 6 Aug 2014 00:07:46 +0000 (17:07 -0700)]
Add an obvious comment to <stdio.h> for fixincludes.

We don't want GCC's fixincludes to touch our <stdio.h> because we
want to support multiple platform versions with one toolchain. Give
them a nice easy unambiguous string to look for.

Bug: http://code.google.com/p/android/issues/detail?id=73728
Change-Id: I15cb9a2c9eb0a44b0965dc2139f224f2b6e68ea1

10 years agoMerge "Fixes build."
Dan Albert [Tue, 5 Aug 2014 21:47:45 +0000 (21:47 +0000)]
Merge "Fixes build."

10 years agoFixes build.
Dan Albert [Tue, 5 Aug 2014 21:46:03 +0000 (14:46 -0700)]
Fixes build.

This change somehow went missing from the vfork change.

Change-Id: I807a2072080eac20601c694e85ba5723220289d8

10 years agoMerge "Revert "Replaces vfork() implementation with fork()""
Dan Albert [Tue, 5 Aug 2014 21:29:41 +0000 (21:29 +0000)]
Merge "Revert "Replaces vfork() implementation with fork()""

10 years agoRevert "Replaces vfork() implementation with fork()"
Dan Albert [Tue, 5 Aug 2014 20:53:31 +0000 (20:53 +0000)]
Revert "Replaces vfork() implementation with fork()"

We're getting cold feet on this one... let's put it back.

This reverts commit 210331d9762037afb9b5ed8413079c6f65872df9.

Change-Id: I6b0d3c2b1dbf7f1dc9566979a91b7504c2189269

10 years agoMerge "Workaround b/16818336 which fails build under aggressive inlining."
Elliott Hughes [Wed, 6 Aug 2014 18:46:24 +0000 (18:46 +0000)]
Merge "Workaround b/16818336 which fails build under aggressive inlining."

10 years agoWorkaround b/16818336 which fails build under aggressive inlining.
Dehao Chen [Tue, 5 Aug 2014 22:23:00 +0000 (15:23 -0700)]
Workaround b/16818336 which fails build under aggressive inlining.

(cherry-pick of 7aa27e1c1a53afe28f6180fd1fc50d096cabea7b.)

Change-Id: Ifcd596714c427a2ec39502b9c0af9082ded91884

10 years agoMerge "Revert most of "Cleanup: Delete dead code."" into lmp-dev
Paul Jensen [Wed, 6 Aug 2014 18:32:02 +0000 (18:32 +0000)]
Merge "Revert most of "Cleanup: Delete dead code."" into lmp-dev

10 years agoRevert most of "Cleanup: Delete dead code."
Paul Jensen [Wed, 6 Aug 2014 17:34:22 +0000 (17:34 +0000)]
Revert most of "Cleanup: Delete dead code."

This reverts most of commit 2582f02a01cd56c56a4e6c9de4444a6ec937cc37.
The DNS cache flushing code needs to be called when routes change.

Change-Id: I5b04121bc428cc6a2e136b6c3269c395bfb4981f
bug:16549455

10 years agoRevert "Revert "Fix dlsym(3) to do breadth first search.""
Dmitriy Ivanov [Mon, 4 Aug 2014 23:39:22 +0000 (23:39 +0000)]
Revert "Revert "Fix dlsym(3) to do breadth first search.""

This reverts commit 1b1966d9448e979d1503a3d8843708bfa8880dc6.

Change-Id: I05d6d3481aaf8f3e260d2e5e950248519a1d347f

10 years agoam 1b1966d9: Revert "Fix dlsym(3) to do breadth first search."
Dmitriy Ivanov [Mon, 4 Aug 2014 16:46:55 +0000 (16:46 +0000)]
am 1b1966d9: Revert "Fix dlsym(3) to do breadth first search."

* commit '1b1966d9448e979d1503a3d8843708bfa8880dc6':
  Revert "Fix dlsym(3) to do breadth first search."

10 years agoRevert "Fix dlsym(3) to do breadth first search."
Dmitriy Ivanov [Mon, 4 Aug 2014 15:21:16 +0000 (15:21 +0000)]
Revert "Fix dlsym(3) to do breadth first search."

This reverts commit 422106a24d620af4be58e8d92a2e9b7b6167b72d.

Change-Id: I9e26a6933d10eb30438b521450f2010997ca5aee

10 years agoam 447fe1c2: Merge "Fix mbsrtowcs(3) src param for finished string."
Dan Albert [Thu, 31 Jul 2014 22:28:59 +0000 (22:28 +0000)]
am 447fe1c2: Merge "Fix mbsrtowcs(3) src param for finished string."

* commit '447fe1c23bc5adaded9a51d3b58f3adaf2cce7b3':
  Fix mbsrtowcs(3) src param for finished string.

10 years agoam 36bacd23: Merge "Proper MB_CUR_MAX."
Dan Albert [Thu, 31 Jul 2014 00:22:22 +0000 (00:22 +0000)]
am 36bacd23: Merge "Proper MB_CUR_MAX."

* commit '36bacd237de931c48714d1a8aa4aa9522283e407':
  Proper MB_CUR_MAX.

10 years agoMerge "Proper MB_CUR_MAX."
Dan Albert [Thu, 31 Jul 2014 00:14:42 +0000 (00:14 +0000)]
Merge "Proper MB_CUR_MAX."

10 years agoProper MB_CUR_MAX.
Dan Albert [Wed, 30 Jul 2014 17:53:48 +0000 (10:53 -0700)]
Proper MB_CUR_MAX.

Previously this was hard coded to 4. This is only the case for UTF-8
locales.

As a side effect, this properly reports C.UTF-8 as the default locale
instead of C.

Change-Id: I7c73cc8fe6ffac61d211cd5f75287e36de06f4fc

10 years agoam 61833de6: Fix memchr with a zero length.
Christopher Ferris [Wed, 30 Jul 2014 23:46:26 +0000 (23:46 +0000)]
am 61833de6: Fix memchr with a zero length.

* commit '61833de613990f2fdaf357bb3d854d72a4980890':
  Fix memchr with a zero length.

10 years agoam 0f7ed163: Merge "Fix memchr with a zero length."
Christopher Ferris [Wed, 30 Jul 2014 23:33:45 +0000 (23:33 +0000)]
am 0f7ed163: Merge "Fix memchr with a zero length."

* commit '0f7ed163cf6c1fe6d71a1d7e5fb6d0989213be85':
  Fix memchr with a zero length.

10 years agoFix memchr with a zero length.
Christopher Ferris [Wed, 30 Jul 2014 23:06:56 +0000 (16:06 -0700)]
Fix memchr with a zero length.

The memchr implementation for 64 bit fails if these conditions occur:

- The buffer is 32 byte aligned.
- The buffer contains the character in the first byte.
- The count sent in is zero.

The function should return NULL, but it's not.

Bug: 16676625

(cherry picked from commit e03e1eac0b7682884b6628df1305d34299680cb4)

Change-Id: Ie4cca2c445127a0936ee2b96651a8e7204fbaffd

10 years agoam 4f76469e: Implement <sys/fsuid.h>.
Elliott Hughes [Wed, 30 Jul 2014 23:27:43 +0000 (23:27 +0000)]
am 4f76469e: Implement <sys/fsuid.h>.

* commit '4f76469e88e255bab1f8264e9ff8b95bff84365f':
  Implement <sys/fsuid.h>.

10 years agoam 83b9826e: Merge "Implement <sys/fsuid.h>."
Elliott Hughes [Wed, 30 Jul 2014 23:25:22 +0000 (23:25 +0000)]
am 83b9826e: Merge "Implement <sys/fsuid.h>."

* commit '83b9826e683db30e9b359737253b87ef8b3ba3df':
  Implement <sys/fsuid.h>.

10 years agoImplement <sys/fsuid.h>.
Elliott Hughes [Wed, 30 Jul 2014 22:05:09 +0000 (15:05 -0700)]
Implement <sys/fsuid.h>.

(cherry picked from commit 79310994d2b3826a10598f7e7795acb5edb42a20)

Change-Id: I47688273691e5c95e5e9302eba254ccaaaad40ca

10 years agoam cd541952: [MIPSR6] Use C-coded string ops on mips32r6/mips64r6
Duane Sand [Wed, 30 Jul 2014 22:28:55 +0000 (22:28 +0000)]
am cd541952: [MIPSR6] Use C-coded string ops on mips32r6/mips64r6

* commit 'cd54195262ac5531fff892255849925ebbbd303e':
  [MIPSR6] Use C-coded string ops on mips32r6/mips64r6

10 years agoam c7706a02: Merge "[MIPSR6] Use C-coded string ops on mips32r6/mips64r6"
Elliott Hughes [Wed, 30 Jul 2014 22:21:57 +0000 (22:21 +0000)]
am c7706a02: Merge "[MIPSR6] Use C-coded string ops on mips32r6/mips64r6"

* commit 'c7706a02ad90ab73f3a056040d2c4a3464ab1ab1':
  [MIPSR6] Use C-coded string ops on mips32r6/mips64r6

10 years ago[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
Duane Sand [Thu, 10 Jul 2014 22:24:27 +0000 (15:24 -0700)]
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6

The existing assembler code uses deprecated lwl/lwr/swl/swr ops.
Replacing those with misalignment-forgiving lw/sw ops may
involve careful performance tuning.

(cherry picked from commit bc5a3ec6df66d2456667ddf1d6dfaf623552169d)

Change-Id: I35167da27f2d406339b7f24b4a1fb270c87bc12e

10 years agoam 11bf8a30: Only wipe TLS for user-supplied stacks.
Elliott Hughes [Wed, 30 Jul 2014 22:06:54 +0000 (22:06 +0000)]
am 11bf8a30: Only wipe TLS for user-supplied stacks.

* commit '11bf8a3025a7b5aee891c521255a7db1860e5b12':
  Only wipe TLS for user-supplied stacks.

10 years agoam 18a1bbe6: Merge "Only wipe TLS for user-supplied stacks."
Elliott Hughes [Wed, 30 Jul 2014 22:02:31 +0000 (22:02 +0000)]
am 18a1bbe6: Merge "Only wipe TLS for user-supplied stacks."

* commit '18a1bbe6e18770694d489f2e140e779dc59fde86':
  Only wipe TLS for user-supplied stacks.

10 years agoOnly wipe TLS for user-supplied stacks.
Elliott Hughes [Wed, 30 Jul 2014 21:48:10 +0000 (14:48 -0700)]
Only wipe TLS for user-supplied stacks.

Bug: 16667988

(cherry picked from commit 40a521744825b6060960c296d5fb3da4c6593d94)

Change-Id: I7550fa47b76e643323aa3e2a53529e393c829e47

10 years agoMerge "Fix memchr with a zero length."
Christopher Ferris [Wed, 30 Jul 2014 23:25:50 +0000 (23:25 +0000)]
Merge "Fix memchr with a zero length."

10 years agoFix memchr with a zero length.
Christopher Ferris [Wed, 30 Jul 2014 23:06:56 +0000 (16:06 -0700)]
Fix memchr with a zero length.

The memchr implementation for 64 bit fails if these conditions occur:

- The buffer is 32 byte aligned.
- The buffer contains the character in the first byte.
- The count sent in is zero.

The function should return NULL, but it's not.

Bug: 16676625
Change-Id: Iab33cc7a8b79920350c72f054dff0e0a3cde69ce

10 years agoMerge "Only wipe TLS for user-supplied stacks."
Elliott Hughes [Wed, 30 Jul 2014 21:55:13 +0000 (21:55 +0000)]
Merge "Only wipe TLS for user-supplied stacks."

10 years agoOnly wipe TLS for user-supplied stacks.
Elliott Hughes [Wed, 30 Jul 2014 21:48:10 +0000 (14:48 -0700)]
Only wipe TLS for user-supplied stacks.

Bug: 16667988
Change-Id: Id180ab2bc6713e1612386120a306db5bbf1d6046

10 years agoam c701e5b3: Use libunwindbacktrace for debug malloc code.
Christopher Ferris [Wed, 30 Jul 2014 16:42:36 +0000 (16:42 +0000)]
am c701e5b3: Use libunwindbacktrace for debug malloc code.

* commit 'c701e5b3357b6484572d46f29c5d1e51063dfcbb':
  Use libunwindbacktrace for debug malloc code.

10 years agoam 1242f7eb: Remove declarations for things that don\'t exist.
Elliott Hughes [Wed, 30 Jul 2014 16:41:43 +0000 (16:41 +0000)]
am 1242f7eb: Remove declarations for things that don\'t exist.

* commit '1242f7eb67c678922b55e2077d9cf2d5cdc85b15':
  Remove declarations for things that don't exist.

10 years agoam f6aa1779: Merge "Revert "Added a bionic systrace class and tracing to pthread_mute...
Elliott Hughes [Wed, 30 Jul 2014 16:41:43 +0000 (16:41 +0000)]
am f6aa1779: Merge "Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."" into lmp-dev

* commit 'f6aa17798c5b0015d002b982c3684595b817d2d0':
  Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."

10 years agoam e872c923: Merge "en_US.UTF-8 is also supported." into lmp-dev
Dan Albert [Wed, 30 Jul 2014 14:15:47 +0000 (14:15 +0000)]
am e872c923: Merge "en_US.UTF-8 is also supported." into lmp-dev

* commit 'e872c9239af180df6bf4b28a623241c6b1c7f1c3':
  en_US.UTF-8 is also supported.

10 years agoam 9379ce69: Merge "There is no _MIN for unsigned types." into lmp-dev
Dan Albert [Wed, 30 Jul 2014 14:15:46 +0000 (14:15 +0000)]
am 9379ce69: Merge "There is no _MIN for unsigned types." into lmp-dev

* commit '9379ce694d8a6bd70341eee003e23e96e21352e5':
  There is no _MIN for unsigned types.

10 years agoam a1a813da: Merge "Fix mbsrtowcs(3)\'s handling of len parameter." into lmp-dev
Dan Albert [Wed, 30 Jul 2014 14:15:46 +0000 (14:15 +0000)]
am a1a813da: Merge "Fix mbsrtowcs(3)\'s handling of len parameter." into lmp-dev

* commit 'a1a813da8184153606bfcf8ffcce557eda09a5ba':
  Fix mbsrtowcs(3)'s handling of len parameter.

10 years agoam 8db0ce70: Merge "__libc_fatal should print a newline to stderr." into lmp-dev
Dan Albert [Wed, 30 Jul 2014 14:15:45 +0000 (14:15 +0000)]
am 8db0ce70: Merge "__libc_fatal should print a newline to stderr." into lmp-dev

* commit '8db0ce7050b0f6ee3874456394a1d7cb0d336c3a':
  __libc_fatal should print a newline to stderr.

10 years agoam 422106a2: Fix dlsym(3) to do breadth first search.
Dmitriy Ivanov [Wed, 30 Jul 2014 14:15:44 +0000 (14:15 +0000)]
am 422106a2: Fix dlsym(3) to do breadth first search.

* commit '422106a24d620af4be58e8d92a2e9b7b6167b72d':
  Fix dlsym(3) to do breadth first search.

10 years agoMerge "Fix mbsrtowcs(3) src param for finished string."
Dan Albert [Thu, 31 Jul 2014 20:52:19 +0000 (20:52 +0000)]
Merge "Fix mbsrtowcs(3) src param for finished string."

10 years agoFix mbsrtowcs(3) src param for finished string.
Dan Albert [Thu, 31 Jul 2014 18:31:03 +0000 (11:31 -0700)]
Fix mbsrtowcs(3) src param for finished string.

A mistake I made while cleaning this up the first time through.
mbstrtowcs(3) sets the src param to null if it finishes the string.

Change-Id: I6263646e25d9537043b7025fd1dd6ae195f365e2

10 years agoUse libunwindbacktrace for debug malloc code.
Christopher Ferris [Fri, 25 Jul 2014 00:52:23 +0000 (17:52 -0700)]
Use libunwindbacktrace for debug malloc code.

Create a method of disabling the debug allocation code paths so that
it's possible to use the libunwindbacktrace library without any
modifications.

Use this path to create and destroy the maps for the process. It's not
stricly necessary in the init code since the symbols are not modified
until after the initialize calls.

Also, remove the debug_XXX source files that doesn't need to be in libc.so.

Fix the maps reading code since it was completely broken for 64 bit.

Bug: 16408686

(cherry picked from commit 861c0ef37bcfcae56d88572cb01c18bcfe1faded)

Change-Id: I04445f0cf9a1e85172b64d57df92eb7939ce2332

10 years agoam 4ad5066e: Merge "Use libunwindbacktrace for debug malloc code."
Christopher Ferris [Wed, 30 Jul 2014 02:23:58 +0000 (02:23 +0000)]
am 4ad5066e: Merge "Use libunwindbacktrace for debug malloc code."

* commit '4ad5066e1de326e5db46df18eeade9a88bc11bec':
  Use libunwindbacktrace for debug malloc code.

10 years agoam 17886971: Merge "Remove declarations for things that don\'t exist."
Elliott Hughes [Wed, 30 Jul 2014 01:12:55 +0000 (01:12 +0000)]
am 17886971: Merge "Remove declarations for things that don\'t exist."

* commit '17886971ffc758270bb3da3fecec86fa5b2bb3c3':
  Remove declarations for things that don't exist.

10 years agoRemove declarations for things that don't exist.
Elliott Hughes [Tue, 29 Jul 2014 23:43:55 +0000 (16:43 -0700)]
Remove declarations for things that don't exist.

The <grp.h> ones prevent gdb from building out of the box.

(cherry picked from commit f4c1a36a4500bc7f12e3065be3da4e8669ee011d)

Change-Id: I6958f2f1731de8c03df20b383decd414b78100aa

10 years agoam 2b591b37: Merge "Fix dlsym(3) to do breadth first search."
Dmitriy Ivanov [Tue, 29 Jul 2014 22:09:23 +0000 (22:09 +0000)]
am 2b591b37: Merge "Fix dlsym(3) to do breadth first search."

* commit '2b591b37420b4186bda7fa823b9058d4b19565f6':
  Fix dlsym(3) to do breadth first search.

10 years agoFix dlsym(3) to do breadth first search.
Dmitriy Ivanov [Tue, 29 Jul 2014 00:32:20 +0000 (17:32 -0700)]
Fix dlsym(3) to do breadth first search.

  dlsym(3) with handle != RTLD_DEFAULT|RTLD_NEXT performs
  breadth first search through the dependency tree.

Bug: 16653281

(cherry picked from commit aa0f2bdbc22d4b7aec5d3f8f5f01eaeaa13414c2)

Change-Id: I0ba8c2034ab341f8a279cdb4e2e7e47f1aef7897

10 years agoMerge "[MIPSR6] Use C-coded string ops on mips32r6/mips64r6"
Elliott Hughes [Wed, 30 Jul 2014 22:15:43 +0000 (22:15 +0000)]
Merge "[MIPSR6] Use C-coded string ops on mips32r6/mips64r6"

10 years agoMerge "Fix dlsym(3) to do breadth first search."
Dmitriy Ivanov [Tue, 29 Jul 2014 21:42:55 +0000 (21:42 +0000)]
Merge "Fix dlsym(3) to do breadth first search."

10 years agoMerge "Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp.""...
Elliott Hughes [Tue, 29 Jul 2014 23:52:37 +0000 (23:52 +0000)]
Merge "Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."" into lmp-dev

10 years agoRevert "Added a bionic systrace class and tracing to pthread_mutex.cpp."
Elliott Hughes [Tue, 29 Jul 2014 23:52:29 +0000 (23:52 +0000)]
Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."

This reverts commit a09fe118b1a5eb876ddaa2620965c4a8fb8b007c.

Change-Id: Ia2eb07b57a25dc2ac76fecc0925efb2bed998156

10 years agoMerge "en_US.UTF-8 is also supported." into lmp-dev
Dan Albert [Tue, 29 Jul 2014 22:42:19 +0000 (22:42 +0000)]
Merge "en_US.UTF-8 is also supported." into lmp-dev

10 years agoFix dlsym(3) to do breadth first search.
Dmitriy Ivanov [Tue, 29 Jul 2014 00:32:20 +0000 (17:32 -0700)]
Fix dlsym(3) to do breadth first search.

  dlsym(3) with handle != RTLD_DEFAULT|RTLD_NEXT performs
  breadth first search through the dependency tree.

Bug: 16653281
Change-Id: I017a6975d1a62abb0218a7eb59ae4deba458e324

10 years agoen_US.UTF-8 is also supported.
Dan Albert [Fri, 25 Jul 2014 18:24:03 +0000 (11:24 -0700)]
en_US.UTF-8 is also supported.

Change-Id: Ic35fad3596dc5e24ee8ae35543a274a471f27bb2
(cherry picked from commit 1abb8bd21d64c2bd21258469b688483f821974d5)

10 years agoThere is no _MIN for unsigned types.
Dan Albert [Tue, 22 Jul 2014 00:16:30 +0000 (17:16 -0700)]
There is no _MIN for unsigned types.

Change-Id: I49c38e51197b750210bdbf28c9cf6db30452a206
(cherry picked from commit ee7f1b5946dffa3aa95394b8cf6f15527f1068eb)

10 years agoFix mbsrtowcs(3)'s handling of len parameter.
Dan Albert [Sun, 20 Jul 2014 18:51:26 +0000 (11:51 -0700)]
Fix mbsrtowcs(3)'s handling of len parameter.

The len parameter is a _maximum_ length. The previous code was treating
it as an exact length, causing the following typical call to fail:

    mbsrtowcs(out, &in, sizeof(out), state); // sizeof(out) > strlen(in)

Change-Id: I48e474fd54ea5f122bc168a4d74bfe08704f28cc
(cherry picked from commit 6b55ba54eff4657cffe053b71e1c9cce2944a8a9)

10 years ago__libc_fatal should print a newline to stderr.
Dan Albert [Sun, 20 Jul 2014 18:49:46 +0000 (11:49 -0700)]
__libc_fatal should print a newline to stderr.

Change-Id: I088dc880d7488a65beac8cda95f530f3db41f112
(cherry picked from commit 97e31dedf056b07bcfcd46c49b60bf0798c60843)

10 years agoam 2ea0a58e: Fix linkage of grantpt(3).
Elliott Hughes [Tue, 29 Jul 2014 18:01:25 +0000 (18:01 +0000)]
am 2ea0a58e: Fix linkage of grantpt(3).

* commit '2ea0a58e01c1ed6db1da9dd0314ee053f5a32026':
  Fix linkage of grantpt(3).

10 years agoam a7dc7600: Merge "Fix linkage of grantpt(3)."
Elliott Hughes [Tue, 29 Jul 2014 17:52:05 +0000 (17:52 +0000)]
am a7dc7600: Merge "Fix linkage of grantpt(3)."

* commit 'a7dc7600fe1be1f3fd61856b407bb7065307e711':
  Fix linkage of grantpt(3).

10 years agoFix linkage of grantpt(3).
Elliott Hughes [Sat, 26 Jul 2014 00:24:00 +0000 (17:24 -0700)]
Fix linkage of grantpt(3).

Also clean up the implementation of all the pty functions, add tests,
and fix the stub implementations of ttyname(3) and ttyname_r(3).

Bug: https://code.google.com/p/android/issues/detail?id=58888

(cherry picked from commit 4916706cfe590eb06c9b5bd4bd402ce056034d51)

Change-Id: I5cb7a1c17b156456e4c4818e65f256eb8d045424

10 years agoam a09fe118: Added a bionic systrace class and tracing to pthread_mutex.cpp.
Brigid Smith [Tue, 29 Jul 2014 17:25:00 +0000 (17:25 +0000)]
am a09fe118: Added a bionic systrace class and tracing to pthread_mutex.cpp.

* commit 'a09fe118b1a5eb876ddaa2620965c4a8fb8b007c':
  Added a bionic systrace class and tracing to pthread_mutex.cpp.

10 years agoam 52f8271f: Merge "Added a bionic systrace class and tracing to pthread_mutex.cpp."
Elliott Hughes [Tue, 29 Jul 2014 16:47:01 +0000 (16:47 +0000)]
am 52f8271f: Merge "Added a bionic systrace class and tracing to pthread_mutex.cpp."

* commit '52f8271fa9fd3f84849465f3c978580fbed866c1':
  Added a bionic systrace class and tracing to pthread_mutex.cpp.

10 years agoAdded a bionic systrace class and tracing to pthread_mutex.cpp.
Brigid Smith [Mon, 21 Jul 2014 22:38:06 +0000 (15:38 -0700)]
Added a bionic systrace class and tracing to pthread_mutex.cpp.

bionic_systrace.h contains an implementation of tracing that
can be used with systrace.py and its associated viewer.  pthread_mutex
now uses this tracing to track pthread_mutex contention, which can be
enabled by using the "bionic" command line option to systrace.

Bug: 15116468

(cherry picked from commit a406ee6d5f616192e9a13afad6ac6a9969814fc1)

Change-Id: Ic98fc303689fe9384974150d0d258c50806a55e4

10 years agoam 24dcda0f: Merge "Fix mips/mips64 build"
Dmitriy Ivanov [Tue, 29 Jul 2014 14:23:25 +0000 (14:23 +0000)]
am 24dcda0f: Merge "Fix mips/mips64 build"

* commit '24dcda0f4febe7d257b31c68887183c81d1b8791':
  Fix mips/mips64 build

10 years agoam 1a5db57d: Fix mips/mips64 build
Dmitriy Ivanov [Tue, 29 Jul 2014 13:15:21 +0000 (13:15 +0000)]
am 1a5db57d: Fix mips/mips64 build

* commit '1a5db57d5a0f633a83f20e667a4698757a63413e':
  Fix mips/mips64 build

10 years agoFix mips/mips64 build
Dmitriy Ivanov [Tue, 29 Jul 2014 00:53:29 +0000 (17:53 -0700)]
Fix mips/mips64 build

 Add _start entry label to mips/mips64 linker begin.S

(cherry picked from commit ed485347189e3dfe04a38207c416bdd8c8fac4bc)

Change-Id: Id1b6bb3258f3bfbe3b7ec9491a977f56e44bed14

10 years agoam 5febb0da: Fix \'adb shell /system/bin/linker\' crash
Dmitriy Ivanov [Tue, 29 Jul 2014 00:56:21 +0000 (00:56 +0000)]
am 5febb0da: Fix \'adb shell /system/bin/linker\' crash

* commit '5febb0da6f6d7106c403e6809917d89d6ee081ad':
  Fix 'adb shell /system/bin/linker' crash

10 years agoFix 'adb shell /system/bin/linker' crash
Dmitriy Ivanov [Mon, 28 Jul 2014 22:05:51 +0000 (15:05 -0700)]
Fix 'adb shell /system/bin/linker' crash

Bug: https://code.google.com/p/android/issues/detail?id=63174

(cherry picked from commit efe13832dccf2cec2898b89ca4418a6aac29d3eb)

Change-Id: I43629e4a14870f67abc2dd5ff2e3040c47b2168d