OSDN Git Service

android-x86/bionic.git
11 years agoam 44badc70: Merge "Upgrade libm."
Elliott Hughes [Fri, 1 Feb 2013 23:24:27 +0000 (15:24 -0800)]
am 44badc70: Merge "Upgrade libm."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '44badc70ccd35d7690bda9f107e3e5da0b80d295':
  Upgrade libm.

11 years agoMerge "Upgrade libm."
Elliott Hughes [Fri, 1 Feb 2013 23:07:48 +0000 (23:07 +0000)]
Merge "Upgrade libm."

11 years agoUpgrade libm.
Elliott Hughes [Thu, 31 Jan 2013 03:06:37 +0000 (19:06 -0800)]
Upgrade libm.

This brings us up to date with FreeBSD HEAD, fixes various bugs, unifies
the set of functions we support on ARM, MIPS, and x86, fixes "long double",
adds ISO C99 support, and adds basic unit tests.

It turns out that our "long double" functions have always been broken
for non-normal numbers. This patch fixes that by not using the upstream
implementations and just forwarding to the regular "double" implementation
instead (since "long double" on Android is just "double" anyway, which is
what BSD doesn't support).

All the tests pass on ARM, MIPS, and x86, plus glibc on x86-64.

Bug: 3169850
Bug: 8012787
Bug: https://code.google.com/p/android/issues/detail?id=6697
Change-Id: If0c343030959c24bfc50d4d21c9530052c581837

11 years agoam fb55511e: am e1a124e5: Merge "Say explicitly if there were no leaks."
Elliott Hughes [Wed, 30 Jan 2013 20:11:30 +0000 (12:11 -0800)]
am fb55511e: am e1a124e5: Merge "Say explicitly if there were no leaks."

# Via Android Git Automerger (1) and others
* commit 'fb55511e71900476fd03f9c490dc60269d076d1f':
  Say explicitly if there were no leaks.

11 years agoam e1a124e5: Merge "Say explicitly if there were no leaks."
Elliott Hughes [Wed, 30 Jan 2013 20:09:14 +0000 (12:09 -0800)]
am e1a124e5: Merge "Say explicitly if there were no leaks."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit 'e1a124e5c93b59e2b6792e4de8a2c72dc0a78be1':
  Say explicitly if there were no leaks.

11 years agoMerge "Say explicitly if there were no leaks."
Elliott Hughes [Wed, 30 Jan 2013 19:53:49 +0000 (19:53 +0000)]
Merge "Say explicitly if there were no leaks."

11 years agoSay explicitly if there were no leaks.
Elliott Hughes [Wed, 30 Jan 2013 19:38:26 +0000 (11:38 -0800)]
Say explicitly if there were no leaks.

Otherwise people trying to use this are left wondering "did I not leak, or did
the leak checking code not get called when I exited?".

Change-Id: If79b225f8a2e24dd69aba1fb836bf9e81bb00efe

11 years agoam 4e882503: am a990cf5b: Merge "Clean up trailing whitespace in the kernel headers."
Elliott Hughes [Wed, 30 Jan 2013 18:31:24 +0000 (10:31 -0800)]
am 4e882503: am a990cf5b: Merge "Clean up trailing whitespace in the kernel headers."

# Via Android Git Automerger (1) and others
* commit '4e8825038e08762dcc973fa435b531f10290ffa8':
  Clean up trailing whitespace in the kernel headers.

11 years agoam a990cf5b: Merge "Clean up trailing whitespace in the kernel headers."
Elliott Hughes [Wed, 30 Jan 2013 18:28:59 +0000 (10:28 -0800)]
am a990cf5b: Merge "Clean up trailing whitespace in the kernel headers."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit 'a990cf5b3392c5aef767aee1e67b4d7ef651afc6':
  Clean up trailing whitespace in the kernel headers.

11 years agoMerge "Clean up trailing whitespace in the kernel headers."
Elliott Hughes [Wed, 30 Jan 2013 18:13:28 +0000 (18:13 +0000)]
Merge "Clean up trailing whitespace in the kernel headers."

11 years agoClean up trailing whitespace in the kernel headers.
Elliott Hughes [Wed, 30 Jan 2013 02:15:55 +0000 (18:15 -0800)]
Clean up trailing whitespace in the kernel headers.

And fix the scripts so they stop letting trailing whitespace through.

Change-Id: Ie109fbe1f63321e565ba0fa60fee8e9cf3a61cfc

11 years agoam 7bc49fcf: am 323287ea: Merge "Fix valgrind build."
Elliott Hughes [Wed, 30 Jan 2013 02:09:26 +0000 (18:09 -0800)]
am 7bc49fcf: am 323287ea: Merge "Fix valgrind build."

# Via Android Git Automerger (1) and others
* commit '7bc49fcfc0de8ce6f386f362cdab6902e6bbe7b4':
  Fix valgrind build.

11 years agoam 323287ea: Merge "Fix valgrind build."
Elliott Hughes [Wed, 30 Jan 2013 02:06:19 +0000 (18:06 -0800)]
am 323287ea: Merge "Fix valgrind build."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '323287ea7fb1d22f64b49d701b33cef9fbaf757d':
  Fix valgrind build.

11 years agoMerge "Fix valgrind build."
Elliott Hughes [Wed, 30 Jan 2013 01:50:16 +0000 (01:50 +0000)]
Merge "Fix valgrind build."

11 years agoFix valgrind build.
Elliott Hughes [Wed, 30 Jan 2013 01:49:12 +0000 (17:49 -0800)]
Fix valgrind build.

Change-Id: Ie375d32565d10f4c0c56da5422f52b68cb069654

11 years agoam 1cc09402: am f6721978: Merge "Fix x86 build to use <elf.h>."
Elliott Hughes [Wed, 30 Jan 2013 01:04:14 +0000 (17:04 -0800)]
am 1cc09402: am f6721978: Merge "Fix x86 build to use <elf.h>."

# Via Android Git Automerger (1) and others
* commit '1cc09402e86b91213e06a9a349c5c510cefcf1d5':
  Fix x86 build to use <elf.h>.

11 years agoam be11de2b: am 5fb409b7: Merge "Bring the NOTICE files back up to date."
Elliott Hughes [Wed, 30 Jan 2013 01:04:13 +0000 (17:04 -0800)]
am be11de2b: am 5fb409b7: Merge "Bring the NOTICE files back up to date."

# Via Android Git Automerger (1) and others
* commit 'be11de2b52ac5f8cbb5a733821cb27002f2ea975':
  Bring the NOTICE files back up to date.

11 years agoam 172e038f: am f09f6db5: Merge "Use the NetBSD <sys/exec_elf.h>."
Elliott Hughes [Wed, 30 Jan 2013 01:04:11 +0000 (17:04 -0800)]
am 172e038f: am f09f6db5: Merge "Use the NetBSD <sys/exec_elf.h>."

# Via Android Git Automerger (1) and others
* commit '172e038f9e5b711a77afe7e8899343215cf25c9e':
  Use the NetBSD <sys/exec_elf.h>.

11 years agoam f6721978: Merge "Fix x86 build to use <elf.h>."
Elliott Hughes [Wed, 30 Jan 2013 00:58:45 +0000 (16:58 -0800)]
am f6721978: Merge "Fix x86 build to use <elf.h>."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit 'f67219783fa7c38c1f4f077364290d10d3aa1db4':
  Fix x86 build to use <elf.h>.

11 years agoam 5fb409b7: Merge "Bring the NOTICE files back up to date."
Elliott Hughes [Wed, 30 Jan 2013 00:42:04 +0000 (16:42 -0800)]
am 5fb409b7: Merge "Bring the NOTICE files back up to date."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '5fb409b7b0b0a4ecca5fd2a6c7dc5ce421f6b7cf':
  Bring the NOTICE files back up to date.

11 years agoMerge "Fix x86 build to use <elf.h>."
Elliott Hughes [Wed, 30 Jan 2013 00:41:23 +0000 (00:41 +0000)]
Merge "Fix x86 build to use <elf.h>."

11 years agoFix x86 build to use <elf.h>.
Elliott Hughes [Wed, 30 Jan 2013 00:40:39 +0000 (16:40 -0800)]
Fix x86 build to use <elf.h>.

Change-Id: I7b697d5eae69dc08eb31471a42cb8bbe5360be76

11 years agoMerge "Bring the NOTICE files back up to date."
Elliott Hughes [Wed, 30 Jan 2013 00:33:53 +0000 (00:33 +0000)]
Merge "Bring the NOTICE files back up to date."

11 years agoam f09f6db5: Merge "Use the NetBSD <sys/exec_elf.h>."
Elliott Hughes [Wed, 30 Jan 2013 00:26:10 +0000 (16:26 -0800)]
am f09f6db5: Merge "Use the NetBSD <sys/exec_elf.h>."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit 'f09f6db5dd87856bbbb7a3d465187b9d8799a788':
  Use the NetBSD <sys/exec_elf.h>.

11 years agoBring the NOTICE files back up to date.
Elliott Hughes [Wed, 30 Jan 2013 00:25:06 +0000 (16:25 -0800)]
Bring the NOTICE files back up to date.

Change-Id: I978275cf6604b90595ee79d897c0460eeadc7dc8

11 years agoMerge "Use the NetBSD <sys/exec_elf.h>."
Elliott Hughes [Wed, 30 Jan 2013 00:06:11 +0000 (00:06 +0000)]
Merge "Use the NetBSD <sys/exec_elf.h>."

11 years agoUse the NetBSD <sys/exec_elf.h>.
Elliott Hughes [Tue, 29 Jan 2013 23:02:50 +0000 (15:02 -0800)]
Use the NetBSD <sys/exec_elf.h>.

Replace a kernel header file dependency with files from NetBSD.
They're more complete, and ELF is ELF, whether you're on Linux or a BSD.

Bug: 7973611
Change-Id: I83ee719e7efdf432ec2ddbe8be271d05b2f558d7

11 years agoam 3f20ecc2: am 3db2fc5a: Merge "Don\'t collect useless stack frames; do demangle...
Elliott Hughes [Tue, 29 Jan 2013 20:07:13 +0000 (12:07 -0800)]
am 3f20ecc2: am 3db2fc5a: Merge "Don\'t collect useless stack frames; do demangle C++ symbols."

# Via Android Git Automerger (1) and others
* commit '3f20ecc20486ae8fe8d9332102b503135f83c62d':
  Don't collect useless stack frames; do demangle C++ symbols.

11 years agoam 3db2fc5a: Merge "Don\'t collect useless stack frames; do demangle C++ symbols."
Elliott Hughes [Tue, 29 Jan 2013 20:03:53 +0000 (12:03 -0800)]
am 3db2fc5a: Merge "Don\'t collect useless stack frames; do demangle C++ symbols."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '3db2fc5acb4894a2cb22533b165a0de1bbafc3f6':
  Don't collect useless stack frames; do demangle C++ symbols.

11 years agoMerge "Don't collect useless stack frames; do demangle C++ symbols."
Elliott Hughes [Tue, 29 Jan 2013 19:59:30 +0000 (19:59 +0000)]
Merge "Don't collect useless stack frames; do demangle C++ symbols."

11 years agoDon't collect useless stack frames; do demangle C++ symbols.
Elliott Hughes [Tue, 29 Jan 2013 00:27:36 +0000 (16:27 -0800)]
Don't collect useless stack frames; do demangle C++ symbols.

Previously, we'd collect every stack frame and then throw some away
when we came to log them. This meant that stack traces were effectively
shorter than the buffers that had been allocated for them. This patch
only stores frames we'll actually output.

Also dynamically call the C++ demangler so we don't have to try to
read mangled names. Because no one knows the mangling of operator new[]
for int arrays off the top of their head.

Bug: 7291287
Change-Id: I42b022fd7cd61675d05171de4c3b2704d058ef2a

11 years agoam d383ac15: am a0151cbf: Merge "Unit tests for formatting code, fix %%."
Elliott Hughes [Mon, 28 Jan 2013 22:11:54 +0000 (14:11 -0800)]
am d383ac15: am a0151cbf: Merge "Unit tests for formatting code, fix %%."

# Via Android Git Automerger (1) and others
* commit 'd383ac1570b553d68ed399c74b73bad1498d78f6':
  Unit tests for formatting code, fix %%.

11 years agoam a0151cbf: Merge "Unit tests for formatting code, fix %%."
Elliott Hughes [Mon, 28 Jan 2013 22:10:08 +0000 (14:10 -0800)]
am a0151cbf: Merge "Unit tests for formatting code, fix %%."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit 'a0151cbfbaa37965dbcd188a55a78d3ad4802b9b':
  Unit tests for formatting code, fix %%.

11 years agoMerge "Unit tests for formatting code, fix %%."
Elliott Hughes [Mon, 28 Jan 2013 22:04:44 +0000 (22:04 +0000)]
Merge "Unit tests for formatting code, fix %%."

11 years agoUnit tests for formatting code, fix %%.
Elliott Hughes [Mon, 28 Jan 2013 18:36:31 +0000 (10:36 -0800)]
Unit tests for formatting code, fix %%.

Also fix <signal.h> and <stdio.h> so they don't cause compiler warnings.

Change-Id: Ib1a746bf01de22d47dbd964de0e6af80a7c96303

11 years agoam f07db754: am 0a91b11d: Merge "More debug malloc fixes."
Elliott Hughes [Sat, 26 Jan 2013 02:09:45 +0000 (18:09 -0800)]
am f07db754: am 0a91b11d: Merge "More debug malloc fixes."

# Via Android Git Automerger (1) and others
* commit 'f07db75443cce4ab96c93bdaa0793d7b8e87547e':
  More debug malloc fixes.

11 years agoam 0a91b11d: Merge "More debug malloc fixes."
Elliott Hughes [Sat, 26 Jan 2013 02:07:23 +0000 (18:07 -0800)]
am 0a91b11d: Merge "More debug malloc fixes."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '0a91b11d286446fe7849a6f537b4a21a52f63399':
  More debug malloc fixes.

11 years agoMerge "More debug malloc fixes."
Elliott Hughes [Sat, 26 Jan 2013 01:55:43 +0000 (01:55 +0000)]
Merge "More debug malloc fixes."

11 years agoMore debug malloc fixes.
Elliott Hughes [Sat, 26 Jan 2013 01:13:45 +0000 (17:13 -0800)]
More debug malloc fixes.

Include the leaky executable's name in the log output. Fix the "sh" test.
Use uintptr_t instead of intptr_t.

Also fix debug formatting of NULL with %s.

Bug: 7291287
Change-Id: I015bf341cd48d43a247173612e6ccb1bf1243d53

11 years agoam 7ae99845: am 6a94cb74: Merge "arm syscall : for eabi call_default don\'t use stack"
Elliott Hughes [Fri, 25 Jan 2013 22:10:02 +0000 (14:10 -0800)]
am 7ae99845: am 6a94cb74: Merge "arm syscall : for eabi call_default don\'t use stack"

# By Matthieu Castet
# Via Android Git Automerger (1) and others
* commit '7ae998456c2564aff4ecbe6a6df214821f6e26cc':
  arm syscall : for eabi call_default don't use stack

11 years agoam 27818d2a: am b871e5d6: Merge "system_properties: do more checking of file"
Nick Kralevich [Fri, 25 Jan 2013 22:10:01 +0000 (14:10 -0800)]
am 27818d2a: am b871e5d6: Merge "system_properties: do more checking of file"

# Via Android Git Automerger (1) and others
* commit '27818d2a16e4972acba15368f55a59cc0ed990f0':
  system_properties: do more checking of file

11 years agoam 6a94cb74: Merge "arm syscall : for eabi call_default don\'t use stack"
Elliott Hughes [Fri, 25 Jan 2013 22:08:26 +0000 (14:08 -0800)]
am 6a94cb74: Merge "arm syscall : for eabi call_default don\'t use stack"

# By Matthieu Castet
# Via Gerrit Code Review (1) and Matthieu Castet (1)
* commit '6a94cb748bf63278c3271b0ab610061b0dc6f04a':
  arm syscall : for eabi call_default don't use stack

11 years agoam b871e5d6: Merge "system_properties: do more checking of file"
Nick Kralevich [Fri, 25 Jan 2013 22:08:26 +0000 (14:08 -0800)]
am b871e5d6: Merge "system_properties: do more checking of file"

# Via Gerrit Code Review (1) and Nick Kralevich (1)
* commit 'b871e5d6b3b4a214c7f19bdfca7663f1fe49fda8':
  system_properties: do more checking of file

11 years agoMerge "arm syscall : for eabi call_default don't use stack"
Elliott Hughes [Fri, 25 Jan 2013 21:57:58 +0000 (21:57 +0000)]
Merge "arm syscall : for eabi call_default don't use stack"

11 years agoMerge "system_properties: do more checking of file"
Nick Kralevich [Fri, 25 Jan 2013 21:52:00 +0000 (21:52 +0000)]
Merge "system_properties: do more checking of file"

11 years agosystem_properties: do more checking of file
Nick Kralevich [Fri, 25 Jan 2013 21:07:31 +0000 (13:07 -0800)]
system_properties: do more checking of file

Check that the permissions on the properties file
are exactly as we expect them to be.

Make sure we close the fd if fstat fails.

Refactor the code slightly.

Change-Id: I5503fd58c3b8093ce7e6d05920748ed70eaf8e2c

11 years agoam da2d2c61: am 82ef8296: Merge "prctl.h: include sys/cdefs.h"
Nick Kralevich [Fri, 25 Jan 2013 00:11:56 +0000 (16:11 -0800)]
am da2d2c61: am 82ef8296: Merge "prctl.h: include sys/cdefs.h"

# Via Android Git Automerger (1) and others
* commit 'da2d2c618c23f212f8dec0c0615bf75d7c18b88d':
  prctl.h: include sys/cdefs.h

11 years agoam 82ef8296: Merge "prctl.h: include sys/cdefs.h"
Nick Kralevich [Thu, 24 Jan 2013 16:59:00 +0000 (08:59 -0800)]
am 82ef8296: Merge "prctl.h: include sys/cdefs.h"

# Via Gerrit Code Review (1) and Nick Kralevich (1)
* commit '82ef8296dc5e25b9cc8e7231f9515f50185dac9d':
  prctl.h: include sys/cdefs.h

11 years agoMerge "prctl.h: include sys/cdefs.h"
Nick Kralevich [Thu, 24 Jan 2013 16:44:59 +0000 (16:44 +0000)]
Merge "prctl.h: include sys/cdefs.h"

11 years agoprctl.h: include sys/cdefs.h
Nick Kralevich [Thu, 24 Jan 2013 00:49:47 +0000 (16:49 -0800)]
prctl.h: include sys/cdefs.h

prctl.h uses __BEGIN_DECLS but fails to include sys/cdefs.h
(where it's defined).  Code which includes prctl.h without
previously including sys/cdefs.h will fail to compile.

Fixed.

Change-Id: If4c9f3308f08b93596dcd00e351ae786807e9320

11 years agoam e7d937b5: am b3351f12: Merge "libc: use more secure system properties if available"
Nick Kralevich [Wed, 23 Jan 2013 19:09:40 +0000 (11:09 -0800)]
am e7d937b5: am b3351f12: Merge "libc: use more secure system properties if available"

* commit 'e7d937b52f183ce84751701c369ffe6a4c81d033':
  libc: use more secure system properties if available

11 years agoam b3351f12: Merge "libc: use more secure system properties if available"
Nick Kralevich [Wed, 23 Jan 2013 19:07:23 +0000 (11:07 -0800)]
am b3351f12: Merge "libc: use more secure system properties if available"

* commit 'b3351f12047747b603efb070069e7afdf3040335':
  libc: use more secure system properties if available

11 years agoMerge "libc: use more secure system properties if available"
Nick Kralevich [Wed, 23 Jan 2013 18:50:24 +0000 (18:50 +0000)]
Merge "libc: use more secure system properties if available"

11 years agolibc: use more secure system properties if available
Nick Kralevich [Wed, 23 Jan 2013 17:28:35 +0000 (09:28 -0800)]
libc: use more secure system properties if available

Currently, system properties are passed via the environment
variable ANDROID_PROPERTY_WORKSPACE and a file descriptor passed
from parent to child. This is insecure for setuid executables,
as the environment variable can be changed by the caller.

Modify system property handling so that we get the properties
from a root owned properties file, rather than using an
environment variable.  Fall back to the environment variable
if the file doesn't exist.

Bug: 8045561
Change-Id: I54f3efa98cf7d63d88788da5ce0d19e34fd7851a

11 years agoam 40107623: am 778a68e1: Merge "Don\'t free anything when reporting leaks."
Elliott Hughes [Wed, 23 Jan 2013 06:14:32 +0000 (22:14 -0800)]
am 40107623: am 778a68e1: Merge "Don\'t free anything when reporting leaks."

* commit '40107623b05fdc2b6c61d9c885483abd3add486a':
  Don't free anything when reporting leaks.

11 years agoam 552e02fa: am 5c8f75ef: Merge "Disable leak checking for mksh; it\'s way too leaky."
Elliott Hughes [Wed, 23 Jan 2013 06:14:31 +0000 (22:14 -0800)]
am 552e02fa: am 5c8f75ef: Merge "Disable leak checking for mksh; it\'s way too leaky."

* commit '552e02fa9c99fd234c57d756358e3208d11a13ad':
  Disable leak checking for mksh; it's way too leaky.

11 years agoam 778a68e1: Merge "Don\'t free anything when reporting leaks."
Elliott Hughes [Wed, 23 Jan 2013 06:11:55 +0000 (22:11 -0800)]
am 778a68e1: Merge "Don\'t free anything when reporting leaks."

* commit '778a68e1e57408be04806b5bfc3150aade44bcbf':
  Don't free anything when reporting leaks.

11 years agoam 5c8f75ef: Merge "Disable leak checking for mksh; it\'s way too leaky."
Elliott Hughes [Wed, 23 Jan 2013 06:11:54 +0000 (22:11 -0800)]
am 5c8f75ef: Merge "Disable leak checking for mksh; it\'s way too leaky."

* commit '5c8f75ef8bd89498de1d1108efa54869a2784738':
  Disable leak checking for mksh; it's way too leaky.

11 years agoMerge "Don't free anything when reporting leaks."
Elliott Hughes [Wed, 23 Jan 2013 06:06:21 +0000 (06:06 +0000)]
Merge "Don't free anything when reporting leaks."

11 years agoMerge "Disable leak checking for mksh; it's way too leaky."
Elliott Hughes [Wed, 23 Jan 2013 06:05:18 +0000 (06:05 +0000)]
Merge "Disable leak checking for mksh; it's way too leaky."

11 years agoDon't free anything when reporting leaks.
Elliott Hughes [Wed, 23 Jan 2013 02:36:28 +0000 (18:36 -0800)]
Don't free anything when reporting leaks.

We don't know that they're not going to be cleaned up by a
C++ global destructor that runs after us. This is the case with
bootanimation, for example.

Bug: 7291287
Change-Id: Iba402514d1735fdc2ae4bc95b65396d816be46c0

11 years agoDisable leak checking for mksh; it's way too leaky.
Elliott Hughes [Wed, 23 Jan 2013 02:35:14 +0000 (18:35 -0800)]
Disable leak checking for mksh; it's way too leaky.

When each shell leaks ~240 allocations, you can't see the leaks from
the program you ran with "adb shell".

Bug: 7291287
Change-Id: Ib8780db72ba0114ebdb24768537da74bbb61f354

11 years agoam b16ec162: am 28f82b26: Merge "Add const for first argument of sigismember for...
Elliott Hughes [Wed, 23 Jan 2013 01:29:01 +0000 (17:29 -0800)]
am b16ec162: am 28f82b26: Merge "Add const for first argument of sigismember for fit POSIX spec"

* commit 'b16ec162881110a30f665ce7bd1432ccefba60b7':
  Add const for first argument of sigismember for fit POSIX spec

11 years agoam 28f82b26: Merge "Add const for first argument of sigismember for fit POSIX spec"
Elliott Hughes [Wed, 23 Jan 2013 01:26:45 +0000 (17:26 -0800)]
am 28f82b26: Merge "Add const for first argument of sigismember for fit POSIX spec"

* commit '28f82b260c9076aae437dafb57193a174aef1eb3':
  Add const for first argument of sigismember for fit POSIX spec

11 years agoMerge "Add const for first argument of sigismember for fit POSIX spec"
Elliott Hughes [Wed, 23 Jan 2013 01:11:28 +0000 (01:11 +0000)]
Merge "Add const for first argument of sigismember for fit POSIX spec"

11 years agoam 57edf36c: am 8d6302cd: Merge "Our strcoll(3) is no different from NetBSD\'s, so...
Elliott Hughes [Tue, 22 Jan 2013 23:33:24 +0000 (15:33 -0800)]
am 57edf36c: am 8d6302cd: Merge "Our strcoll(3) is no different from NetBSD\'s, so take exactly theirs."

* commit '57edf36c5f83fa7bcf9d8d028cde0acc7ddfadcc':
  Our strcoll(3) is no different from NetBSD's, so take exactly theirs.

11 years agoam 8d6302cd: Merge "Our strcoll(3) is no different from NetBSD\'s, so take exactly...
Elliott Hughes [Tue, 22 Jan 2013 23:31:26 +0000 (15:31 -0800)]
am 8d6302cd: Merge "Our strcoll(3) is no different from NetBSD\'s, so take exactly theirs."

* commit '8d6302cdcff9c53fe3ecd36ab479fdf08318c504':
  Our strcoll(3) is no different from NetBSD's, so take exactly theirs.

11 years agoMerge "Our strcoll(3) is no different from NetBSD's, so take exactly theirs."
Elliott Hughes [Tue, 22 Jan 2013 23:19:35 +0000 (23:19 +0000)]
Merge "Our strcoll(3) is no different from NetBSD's, so take exactly theirs."

11 years agoOur strcoll(3) is no different from NetBSD's, so take exactly theirs.
Elliott Hughes [Tue, 22 Jan 2013 23:10:19 +0000 (15:10 -0800)]
Our strcoll(3) is no different from NetBSD's, so take exactly theirs.

Change-Id: I45251047202a229f9175735ecc23c0ebcda71e8d

11 years agoam 5f7b6b83: am 547eba0a: Merge "Avoid overflow in memccpy."
Elliott Hughes [Tue, 22 Jan 2013 23:08:58 +0000 (15:08 -0800)]
am 5f7b6b83: am 547eba0a: Merge "Avoid overflow in memccpy."

* commit '5f7b6b8301658a834516f05e8e0a9eb4513e6e62':
  Avoid overflow in memccpy.

11 years agoam 547eba0a: Merge "Avoid overflow in memccpy."
Elliott Hughes [Tue, 22 Jan 2013 23:05:31 +0000 (15:05 -0800)]
am 547eba0a: Merge "Avoid overflow in memccpy."

* commit '547eba0a63951d7db93c0542e1ecab891725b9a8':
  Avoid overflow in memccpy.

11 years agoMerge "Avoid overflow in memccpy."
Elliott Hughes [Tue, 22 Jan 2013 22:53:53 +0000 (22:53 +0000)]
Merge "Avoid overflow in memccpy."

11 years agoam e8e1f34a: am 85597e2b: Merge "Clean up debuggerd-related logging."
Elliott Hughes [Tue, 22 Jan 2013 22:53:25 +0000 (14:53 -0800)]
am e8e1f34a: am 85597e2b: Merge "Clean up debuggerd-related logging."

* commit 'e8e1f34a33158290aa3bb9059e31ddc7a73ac1e6':
  Clean up debuggerd-related logging.

11 years agoam 85597e2b: Merge "Clean up debuggerd-related logging."
Elliott Hughes [Tue, 22 Jan 2013 22:49:11 +0000 (14:49 -0800)]
am 85597e2b: Merge "Clean up debuggerd-related logging."

* commit '85597e2b59af91be0607ed073b6574b934ed369d':
  Clean up debuggerd-related logging.

11 years agoAvoid overflow in memccpy.
Elliott Hughes [Tue, 22 Jan 2013 22:41:23 +0000 (14:41 -0800)]
Avoid overflow in memccpy.

Just take the upstream NetBSD code.

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

11 years agoMerge "Clean up debuggerd-related logging."
Elliott Hughes [Tue, 22 Jan 2013 22:37:27 +0000 (22:37 +0000)]
Merge "Clean up debuggerd-related logging."

11 years agoam 0609c0fe: am 7af7895e: Merge "Use the new non-allocating logging for dlmalloc...
Elliott Hughes [Tue, 22 Jan 2013 22:35:06 +0000 (14:35 -0800)]
am 0609c0fe: am 7af7895e: Merge "Use the new non-allocating logging for dlmalloc failures."

* commit '0609c0fe8dae2ec10f1811c46a4d583f557c68f7':
  Use the new non-allocating logging for dlmalloc failures.

11 years agoam 7af7895e: Merge "Use the new non-allocating logging for dlmalloc failures."
Elliott Hughes [Tue, 22 Jan 2013 22:32:02 +0000 (14:32 -0800)]
am 7af7895e: Merge "Use the new non-allocating logging for dlmalloc failures."

* commit '7af7895eeb810ff1a1ca8b60fcda13595d551114':
  Use the new non-allocating logging for dlmalloc failures.

11 years agoMerge "Use the new non-allocating logging for dlmalloc failures."
Elliott Hughes [Tue, 22 Jan 2013 22:26:35 +0000 (22:26 +0000)]
Merge "Use the new non-allocating logging for dlmalloc failures."

11 years agoUse the new non-allocating logging for dlmalloc failures.
Elliott Hughes [Tue, 22 Jan 2013 22:00:09 +0000 (14:00 -0800)]
Use the new non-allocating logging for dlmalloc failures.

Change-Id: I88afe0201ee5766a295fc5a9e710fba9d6e0d363

11 years agoClean up debuggerd-related logging.
Elliott Hughes [Tue, 22 Jan 2013 22:17:14 +0000 (14:17 -0800)]
Clean up debuggerd-related logging.

Bug: 7291287
Change-Id: Ia7aa386e8b75b8058d7d9e707e11b1da7dc62f00

11 years agoam e652ed30: am 244bee5b: Merge "bionic_auxv.h: fix #define conflict"
Nick Kralevich [Tue, 22 Jan 2013 21:43:46 +0000 (13:43 -0800)]
am e652ed30: am 244bee5b: Merge "bionic_auxv.h: fix #define conflict"

* commit 'e652ed30514afcf314b40c69b9cac088602a83da':
  bionic_auxv.h: fix #define conflict

11 years agoam 244bee5b: Merge "bionic_auxv.h: fix #define conflict"
Nick Kralevich [Tue, 22 Jan 2013 21:38:53 +0000 (13:38 -0800)]
am 244bee5b: Merge "bionic_auxv.h: fix #define conflict"

* commit '244bee5bb6e0bc12b739c57028ac8af23a18aed0':
  bionic_auxv.h: fix #define conflict

11 years agoMerge "bionic_auxv.h: fix #define conflict"
Nick Kralevich [Tue, 22 Jan 2013 21:30:27 +0000 (21:30 +0000)]
Merge "bionic_auxv.h: fix #define conflict"

11 years agobionic_auxv.h: fix #define conflict
Nick Kralevich [Tue, 22 Jan 2013 21:09:04 +0000 (13:09 -0800)]
bionic_auxv.h: fix #define conflict

Both libc/include/sys/auxv.h and libc/private/bionic_auxv.h
use _SYS_AUXV_H_ to see if a header file has already been included.
This prevents both of these files from being included at the same
time.

Fix this name conflict.

Change-Id: Ifaec88aa9779d784b95f8e75145117acf3d5cfc5

11 years agoam 8ef83bc4: am 02f96b9d: Merge "Add missing extern "C"."
Elliott Hughes [Tue, 22 Jan 2013 19:34:25 +0000 (11:34 -0800)]
am 8ef83bc4: am 02f96b9d: Merge "Add missing extern "C"."

* commit '8ef83bc46e06e8fe98e918fcb1c582d6f5807461':
  Add missing extern "C".

11 years agoam 02f96b9d: Merge "Add missing extern "C"."
Elliott Hughes [Tue, 22 Jan 2013 19:32:16 +0000 (11:32 -0800)]
am 02f96b9d: Merge "Add missing extern "C"."

* commit '02f96b9db0242711fe1dfe0713c0c4e698561da5':
  Add missing extern "C".

11 years agoMerge "Add missing extern "C"."
Elliott Hughes [Tue, 22 Jan 2013 19:22:46 +0000 (19:22 +0000)]
Merge "Add missing extern "C"."

11 years agoAdd missing extern "C".
Elliott Hughes [Tue, 22 Jan 2013 19:20:45 +0000 (11:20 -0800)]
Add missing extern "C".

Change-Id: Idbf24ce8482ff03f24caa89bafb08677b1c5cec3

11 years agoam 75b64a1b: am ca483765: Merge "Fix the duplication in the debugging code."
Elliott Hughes [Tue, 22 Jan 2013 18:02:12 +0000 (10:02 -0800)]
am 75b64a1b: am ca483765: Merge "Fix the duplication in the debugging code."

* commit '75b64a1b64e788b9e69ac4f4cd8cce37932513a8':
  Fix the duplication in the debugging code.

11 years agoam ca483765: Merge "Fix the duplication in the debugging code."
Elliott Hughes [Tue, 22 Jan 2013 17:59:44 +0000 (09:59 -0800)]
am ca483765: Merge "Fix the duplication in the debugging code."

* commit 'ca483765bd0dc16294b9e67dd0de5c6d53b1bfa3':
  Fix the duplication in the debugging code.

11 years agoMerge "Fix the duplication in the debugging code."
Elliott Hughes [Tue, 22 Jan 2013 17:44:15 +0000 (17:44 +0000)]
Merge "Fix the duplication in the debugging code."

11 years agoAdd const for first argument of sigismember for fit POSIX spec
Kito Cheng [Sat, 19 Jan 2013 16:15:15 +0000 (00:15 +0800)]
Add const for first argument of sigismember for fit POSIX spec

Change-Id: Icbc67375282f2a22dce02e4bacab15ddae846057

11 years agoFix the duplication in the debugging code.
Elliott Hughes [Fri, 18 Jan 2013 02:36:06 +0000 (18:36 -0800)]
Fix the duplication in the debugging code.

We had two copies of the backtrace code, and two copies of the
libcorkscrew /proc/pid/maps code. This patch gets us down to one.

We also had hacks so we could log in the malloc debugging code.
This patch pulls the non-allocating "printf" code out of the
dynamic linker so everyone can share.

This patch also makes the leak diagnostics easier to read, and
makes it possible to paste them directly into the 'stack' tool (by
using relative PCs).

This patch also fixes the stdio standard stream leak that was
causing a leak warning every time tf_daemon ran.

Bug: 7291287
Change-Id: I66e4083ac2c5606c8d2737cb45c8ac8a32c7cfe8

11 years agoam f246ae98: am 5496bbf6: Merge "Revert "Filter ANDROID_PROPERTY_WORKSPACE""
Nick Kralevich [Fri, 18 Jan 2013 21:11:13 +0000 (13:11 -0800)]
am f246ae98: am 5496bbf6: Merge "Revert "Filter ANDROID_PROPERTY_WORKSPACE""

* commit 'f246ae984baa133b93af4e14f94ba35990b43dbb':
  Revert "Filter ANDROID_PROPERTY_WORKSPACE"

11 years agoam 5496bbf6: Merge "Revert "Filter ANDROID_PROPERTY_WORKSPACE""
Nick Kralevich [Fri, 18 Jan 2013 21:10:04 +0000 (13:10 -0800)]
am 5496bbf6: Merge "Revert "Filter ANDROID_PROPERTY_WORKSPACE""

* commit '5496bbf6a3592fd99cee6b8c20c8624c2aeea0c1':
  Revert "Filter ANDROID_PROPERTY_WORKSPACE"

11 years agoMerge "Revert "Filter ANDROID_PROPERTY_WORKSPACE""
Nick Kralevich [Fri, 18 Jan 2013 20:50:40 +0000 (20:50 +0000)]
Merge "Revert "Filter ANDROID_PROPERTY_WORKSPACE""

11 years agoRevert "Filter ANDROID_PROPERTY_WORKSPACE"
Guang Zhu [Fri, 18 Jan 2013 07:25:24 +0000 (23:25 -0800)]
Revert "Filter ANDROID_PROPERTY_WORKSPACE"

Temporarily revert the change since DNS resolution seems
broken right now in ping util.

Bug: 8029617

This reverts commit a0f64756a4a55ab48b2b5511d4e7c45583dac44b.

11 years agoam 0a0c2321: am 4bfaf1e5: Merge "FORTIFY_SOURCE: optimize"
Nick Kralevich [Fri, 18 Jan 2013 01:06:11 +0000 (17:06 -0800)]
am 0a0c2321: am 4bfaf1e5: Merge "FORTIFY_SOURCE: optimize"

* commit '0a0c23216766adf76739dc38dcb45934105cd41c':
  FORTIFY_SOURCE: optimize

11 years agoam 4bfaf1e5: Merge "FORTIFY_SOURCE: optimize"
Nick Kralevich [Fri, 18 Jan 2013 01:04:33 +0000 (17:04 -0800)]
am 4bfaf1e5: Merge "FORTIFY_SOURCE: optimize"

* commit '4bfaf1e5f62748b305406ff4ceebd5f4b750038c':
  FORTIFY_SOURCE: optimize