OSDN Git Service

android-x86/bionic.git
10 years agoUpdate kernel headers to v3.14.
Christopher Ferris [Wed, 9 Jul 2014 22:33:25 +0000 (15:33 -0700)]
Update kernel headers to v3.14.

Other changes:
- Modify update_all.py to skip ion header files when importing into aosp.
- Fix generate_uapi_headers.sh to handle imports from a linux-stable kernel.

Change-Id: I1ad81b9ccb063c21740f9875f2cc1238052cd4b3

10 years agoMerge "Added __system_propery_read benchmark."
Elliott Hughes [Wed, 9 Jul 2014 18:03:19 +0000 (18:03 +0000)]
Merge "Added __system_propery_read benchmark."

10 years agoAdded __system_propery_read benchmark.
Brigid Smith [Wed, 9 Jul 2014 17:26:17 +0000 (10:26 -0700)]
Added __system_propery_read benchmark.

Change-Id: Ic0e9118859a013aa04841de25822a81a7fc74b3c

10 years agoMerge "Remove __CTOR_LIST__ from mips/mips64."
Elliott Hughes [Wed, 9 Jul 2014 16:48:41 +0000 (16:48 +0000)]
Merge "Remove __CTOR_LIST__ from mips/mips64."

10 years agoRemove __CTOR_LIST__ from mips/mips64.
Elliott Hughes [Wed, 9 Jul 2014 16:20:17 +0000 (09:20 -0700)]
Remove __CTOR_LIST__ from mips/mips64.

Change-Id: I3486b09e30b32ddb67da602cbc2b5fb0402f9764

10 years agoMerge "Don't zero r1 on entry to the dynamic linker."
Elliott Hughes [Wed, 9 Jul 2014 16:25:10 +0000 (16:25 +0000)]
Merge "Don't zero r1 on entry to the dynamic linker."

10 years agoMerge "TARGET_OUT_DATA_NATIVE_TESTS now points to $(TARGET_OUT_DATA)/nativetest64...
Ying Wang [Wed, 9 Jul 2014 16:15:45 +0000 (16:15 +0000)]
Merge "TARGET_OUT_DATA_NATIVE_TESTS now points to $(TARGET_OUT_DATA)/nativetest64 in 64-bit target"

10 years agoDon't zero r1 on entry to the dynamic linker.
Elliott Hughes [Wed, 9 Jul 2014 02:22:57 +0000 (19:22 -0700)]
Don't zero r1 on entry to the dynamic linker.

There's no need: __linker_init only takes one argument.

Also remove the arm __CTOR_LIST__; we use .init_array and .fini_array instead
of .ctor and .dtor anyway, and I don't think we've ever supported the latter.

Change-Id: Ifc91a5a90c6aa39d674bf0509a7af2e1ff0beddd

10 years agoTARGET_OUT_DATA_NATIVE_TESTS now points to $(TARGET_OUT_DATA)/nativetest64 in 64...
Ying Wang [Wed, 9 Jul 2014 01:54:42 +0000 (18:54 -0700)]
TARGET_OUT_DATA_NATIVE_TESTS now points to $(TARGET_OUT_DATA)/nativetest64 in 64-bit target

Change-Id: I9a562e79de7ec0f065c90de9ae1b72cbcd7d8c6b

10 years agoMerge "Add test for constructor function."
Dmitriy Ivanov [Wed, 9 Jul 2014 04:24:57 +0000 (04:24 +0000)]
Merge "Add test for constructor function."

10 years agoAdd test for constructor function.
Dmitriy Ivanov [Wed, 9 Jul 2014 04:21:34 +0000 (21:21 -0700)]
Add test for constructor function.

Change-Id: I0ad26d617f00cdd6c2241d613be39a1d16918612

10 years agoMerge "Change android_dlextinfo flags to uint64_t"
Dmitriy Ivanov [Tue, 8 Jul 2014 18:27:20 +0000 (18:27 +0000)]
Merge "Change android_dlextinfo flags to uint64_t"

10 years agoChange android_dlextinfo flags to uint64_t
Dmitriy Ivanov [Tue, 8 Jul 2014 18:21:56 +0000 (11:21 -0700)]
Change android_dlextinfo flags to uint64_t

Change-Id: Id27e8f8e58dbcf6ae79644f2ad3af3dd0aef9ae7

10 years agoMerge "Regenerate the bionic NOTICE files."
Elliott Hughes [Tue, 8 Jul 2014 17:40:53 +0000 (17:40 +0000)]
Merge "Regenerate the bionic NOTICE files."

10 years agoRegenerate the bionic NOTICE files.
Elliott Hughes [Mon, 7 Jul 2014 22:42:06 +0000 (15:42 -0700)]
Regenerate the bionic NOTICE files.

Also fix a few formatting issues in copyright headers that were confusing
the script (though obviously it would be better if the script were smarter).

Change-Id: I7f561bef4f84fdcbd84f375ee226bd65db0e507b

10 years agoMerge "Remove some dead data."
Elliott Hughes [Mon, 7 Jul 2014 17:53:23 +0000 (17:53 +0000)]
Merge "Remove some dead data."

10 years agoRemove some dead data.
Elliott Hughes [Mon, 7 Jul 2014 16:46:11 +0000 (09:46 -0700)]
Remove some dead data.

Clang doesn't like dead data, and this is just an LP32 compatibility turd.

Change-Id: I3832748a4e773b254877f4438b5340e7d4c1ce70

10 years agoMerge "Fix recv.cpp so it can build with clang."
Elliott Hughes [Wed, 2 Jul 2014 23:58:33 +0000 (23:58 +0000)]
Merge "Fix recv.cpp so it can build with clang."

10 years agoFix recv.cpp so it can build with clang.
Elliott Hughes [Wed, 2 Jul 2014 23:46:34 +0000 (16:46 -0700)]
Fix recv.cpp so it can build with clang.

Change-Id: Iac3e676aa256837333240219bcadbdc31985b5dd

10 years agoMerge "Fix all resolv warnings and turn on -Werror."
Elliott Hughes [Wed, 2 Jul 2014 23:43:03 +0000 (23:43 +0000)]
Merge "Fix all resolv warnings and turn on -Werror."

10 years agoFix all resolv warnings and turn on -Werror.
Elliott Hughes [Wed, 2 Jul 2014 23:27:20 +0000 (16:27 -0700)]
Fix all resolv warnings and turn on -Werror.

The res_init.c changes bring us a bit closer to upstream too, though
there's still work to be done there. Some of the remaining differences
look like bugs we'd want to fix, so we should definitely try to come
back to that.

Change-Id: I50baa148e967c90d55d711e9904ad54c7d724d4d

10 years agoMerge "Build fix"
Dmitriy Ivanov [Wed, 2 Jul 2014 23:09:47 +0000 (23:09 +0000)]
Merge "Build fix"

10 years agoBuild fix
Dmitriy Ivanov [Wed, 2 Jul 2014 23:05:24 +0000 (16:05 -0700)]
Build fix

Change-Id: Ib43e0f055e3c5f07b50393bfcab9738454835ac3

10 years agoMerge "Load library using file handle."
Dmitriy Ivanov [Wed, 2 Jul 2014 22:48:24 +0000 (22:48 +0000)]
Merge "Load library using file handle."

10 years agoMerge "Switch to upstream OpenBSD mktemp.c."
Elliott Hughes [Wed, 2 Jul 2014 20:59:18 +0000 (20:59 +0000)]
Merge "Switch to upstream OpenBSD mktemp.c."

10 years agoMerge "Fix three clang complaints about the DNS code."
Elliott Hughes [Mon, 7 Jul 2014 17:50:21 +0000 (17:50 +0000)]
Merge "Fix three clang complaints about the DNS code."

10 years agoFix three clang complaints about the DNS code.
Elliott Hughes [Mon, 7 Jul 2014 16:44:17 +0000 (09:44 -0700)]
Fix three clang complaints about the DNS code.

These are all already fixed upstream in the same way.

Change-Id: I2881b6d0fbd0237fffc0f00563bc14750dcce0d9

10 years agoMerge "Fix a broken boolean test found by clang."
Elliott Hughes [Mon, 7 Jul 2014 17:49:58 +0000 (17:49 +0000)]
Merge "Fix a broken boolean test found by clang."

10 years agoFix a broken boolean test found by clang.
Elliott Hughes [Mon, 7 Jul 2014 16:45:15 +0000 (09:45 -0700)]
Fix a broken boolean test found by clang.

This was only on the failure case, so this probably never caused
any real trouble.

Change-Id: Id983689772102cbb9171693b927e544fb0b584fb

10 years agoMerge "Use __unused rather than self assignment for unused parameters."
Elliott Hughes [Mon, 7 Jul 2014 17:49:33 +0000 (17:49 +0000)]
Merge "Use __unused rather than self assignment for unused parameters."

10 years agoUse __unused rather than self assignment for unused parameters.
Elliott Hughes [Mon, 7 Jul 2014 16:46:54 +0000 (09:46 -0700)]
Use __unused rather than self assignment for unused parameters.

Clang, reasonably enough, doesn't like self assignment.

Change-Id: Ie5843287802949dad148a1a815231035678e1306

10 years agoMerge "Revert "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64."""
Dan Albert [Mon, 7 Jul 2014 16:14:04 +0000 (16:14 +0000)]
Merge "Revert "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64."""

10 years agoMerge "Revert "Reenable support for non-PIE executables""
Nick Kralevich [Thu, 3 Jul 2014 19:44:27 +0000 (19:44 +0000)]
Merge "Revert "Reenable support for non-PIE executables""

10 years agoRevert "Reenable support for non-PIE executables"
Nick Kralevich [Thu, 3 Jul 2014 19:04:31 +0000 (12:04 -0700)]
Revert "Reenable support for non-PIE executables"

/system/bin/tf_daemon on Nakasi has been updated so it's
a PIE executable. We can now drop non-PIE support.

This reverts commit d81b3b275dff99561cbe5905ca63a1c72fa54a17.

Bug: 15086752
Bug: 15732002
Bug: 14566672
Change-Id: I832c4de01a8fa050754ea64da317d1639990265e

10 years agoMerge "libc_logging: Set SOCK_CLOEXEC on socket"
Nick Kralevich [Thu, 3 Jul 2014 15:56:49 +0000 (15:56 +0000)]
Merge "libc_logging: Set SOCK_CLOEXEC on socket"

10 years agolibc_logging: Set SOCK_CLOEXEC on socket
Nick Kralevich [Thu, 3 Jul 2014 05:39:14 +0000 (22:39 -0700)]
libc_logging: Set SOCK_CLOEXEC on socket

Socket file descriptors remain open across exec unless
SOCK_CLOEXEC is set. Enable this option, to avoid leaking
file descriptors.

In practice, this isn't a big deal, since the socket only remains
open for a very short period to write a message. However, this
socket might leak for for multithreaded programs if an exec occurs
between the open and close.

Change-Id: Ica2e71fe28657c32d56de1431c8f7f1f5c7b7c58

10 years agoLoad library using file handle.
Dmitriy Ivanov [Tue, 1 Jul 2014 21:10:16 +0000 (14:10 -0700)]
Load library using file handle.

 * This patch enables dlopen by file descriptor
   instead of path/name.

Bug: 15984217
Change-Id: Ib39051e00567fb97070bf96d8ce63993877c0a01

10 years agoSwitch to upstream OpenBSD mktemp.c.
Elliott Hughes [Wed, 2 Jul 2014 18:22:26 +0000 (11:22 -0700)]
Switch to upstream OpenBSD mktemp.c.

Almost all of our stdio is actually OpenBSD, so although this isn't
really a core part of stdio (it doesn't touch struct FILE, for example)
it probably makes sense for it to come from the same upstream. My
actual motivation though is that it's the only FreeBSD file we have
compiler warnings from.

This patch moves us over to -Werror by default, with only the DNS code
having -Wno-error.

Change-Id: Id244a5b445cba41b0a1ca30298ca7b1ed177810c

10 years agoRevert "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64.""
Dan Albert [Tue, 1 Jul 2014 22:41:50 +0000 (22:41 +0000)]
Revert "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64.""

This reverts commit 715242fd0f69e73a6aca19e32b8979fa0f384788.

Change-Id: Ia9892fa3b03287129aa72a49974cef9fd94ae735

10 years agoMerge "Build all bionic test files -Werror and fix our one warning."
Elliott Hughes [Wed, 2 Jul 2014 00:34:28 +0000 (00:34 +0000)]
Merge "Build all bionic test files -Werror and fix our one warning."

10 years agoBuild all bionic test files -Werror and fix our one warning.
Elliott Hughes [Wed, 2 Jul 2014 00:17:46 +0000 (17:17 -0700)]
Build all bionic test files -Werror and fix our one warning.

Change-Id: I62bb0528fd1bcb9aa4c61e44c78158a592690fc7

10 years agoMerge "Quiten warnings in semaphore.c."
Elliott Hughes [Wed, 2 Jul 2014 00:33:17 +0000 (00:33 +0000)]
Merge "Quiten warnings in semaphore.c."

10 years agoQuiten warnings in semaphore.c.
Elliott Hughes [Wed, 2 Jul 2014 00:07:43 +0000 (17:07 -0700)]
Quiten warnings in semaphore.c.

Change-Id: I30aff82174f789ab407d2282c07e6207123d4d5b

10 years agoMerge "Quiten warnings in fts.c."
Elliott Hughes [Wed, 2 Jul 2014 00:32:59 +0000 (00:32 +0000)]
Merge "Quiten warnings in fts.c."

10 years agoQuiten warnings in fts.c.
Elliott Hughes [Wed, 2 Jul 2014 00:20:06 +0000 (17:20 -0700)]
Quiten warnings in fts.c.

Also bring us closer to upstream. Sadly the Linux and BSD dirent
structs don't match, so we'll never be completely in sync (and I don't
think we can hide the difference with macro trickery).

Change-Id: Ief4275856116cd1d5b5e0f9166db1ead9439515c

10 years agoMerge "Disable local/protected symbol test for lp64"
Dmitriy Ivanov [Wed, 2 Jul 2014 18:46:22 +0000 (18:46 +0000)]
Merge "Disable local/protected symbol test for lp64"

10 years agoDisable local/protected symbol test for lp64
Dmitriy Ivanov [Wed, 2 Jul 2014 02:09:49 +0000 (19:09 -0700)]
Disable local/protected symbol test for lp64

  * Static linker optimizes protected local symbol
    out of existence, which leads to test failure.
    Disabling it for now.

Change-Id: I8de327e5073f98b64639f7a0bba3a273aa419884

10 years agoMerge "Native tests are now multilib=both by default"
Dmitriy Ivanov [Tue, 1 Jul 2014 22:59:07 +0000 (22:59 +0000)]
Merge "Native tests are now multilib=both by default"

10 years agoNative tests are now multilib=both by default
Dmitriy Ivanov [Tue, 1 Jul 2014 22:38:22 +0000 (15:38 -0700)]
Native tests are now multilib=both by default

Change-Id: I788ac0b871703c137727a65e017c4466127c0190

10 years agoMerge "Write message to stderr on __libc_fatal()"
Dmitriy Ivanov [Tue, 1 Jul 2014 21:57:16 +0000 (21:57 +0000)]
Merge "Write message to stderr on __libc_fatal()"

10 years agoWrite message to stderr on __libc_fatal()
Dmitriy Ivanov [Tue, 1 Jul 2014 21:24:45 +0000 (14:24 -0700)]
Write message to stderr on __libc_fatal()

Change-Id: Ia8d6e256768fa51786d0139d3f3b6e9e4bebe027

10 years agoMerge "Add support for protected local symbol lookup."
Dmitriy Ivanov [Tue, 1 Jul 2014 21:22:51 +0000 (21:22 +0000)]
Merge "Add support for protected local symbol lookup."

10 years agoAdd support for protected local symbol lookup.
Dmitriy Ivanov [Sun, 29 Jun 2014 19:28:37 +0000 (12:28 -0700)]
Add support for protected local symbol lookup.

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

10 years agoMerge "Fix a warning in if_indextoname.c."
Elliott Hughes [Tue, 1 Jul 2014 18:59:46 +0000 (18:59 +0000)]
Merge "Fix a warning in if_indextoname.c."

10 years agoFix a warning in if_indextoname.c.
Elliott Hughes [Tue, 1 Jul 2014 18:13:25 +0000 (11:13 -0700)]
Fix a warning in if_indextoname.c.

Change-Id: Ib6afe2a5452022f5c98ec28fd110d6b910dccdad

10 years agoMerge "Revert "Revert "Prevent symbols from libgcc from being reexported."""
Dan Albert [Tue, 1 Jul 2014 22:41:13 +0000 (22:41 +0000)]
Merge "Revert "Revert "Prevent symbols from libgcc from being reexported."""

10 years agoMerge "Add optimized stpcpy."
Christopher Ferris [Tue, 1 Jul 2014 02:41:30 +0000 (02:41 +0000)]
Merge "Add optimized stpcpy."

10 years agoMerge "add CLOEXEC to various DNS related code"
Nick Kralevich [Mon, 30 Jun 2014 23:10:35 +0000 (23:10 +0000)]
Merge "add CLOEXEC to various DNS related code"

10 years agoMerge "Restore <nsswitch.h> which is BSD API, not private."
Elliott Hughes [Mon, 30 Jun 2014 23:03:21 +0000 (23:03 +0000)]
Merge "Restore <nsswitch.h> which is BSD API, not private."

10 years agoRestore <nsswitch.h> which is BSD API, not private.
Elliott Hughes [Mon, 30 Jun 2014 21:15:34 +0000 (14:15 -0700)]
Restore <nsswitch.h> which is BSD API, not private.

Also make nsdispatch non-hidden. Firefox uses it.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1030899
Change-Id: Iaccc1ec813d196ec91ac475fcc4ae9dca756861d

10 years agoAdd optimized stpcpy.
Christopher Ferris [Fri, 27 Jun 2014 22:26:15 +0000 (15:26 -0700)]
Add optimized stpcpy.

Change-Id: Ifed38f92a54fef4488fd0ed26a1569059a054574

10 years agoMerge "Add extra strchr testing."
Christopher Ferris [Mon, 30 Jun 2014 19:56:01 +0000 (19:56 +0000)]
Merge "Add extra strchr testing."

10 years agoAdd extra strchr testing.
Christopher Ferris [Fri, 27 Jun 2014 19:33:22 +0000 (12:33 -0700)]
Add extra strchr testing.

Change-Id: Idd0a779eb3388e402cfcb4e0df40872320f8e155

10 years agoMerge "Switch to upstream NetBSD nsap_addr.c."
Elliott Hughes [Mon, 30 Jun 2014 19:28:10 +0000 (19:28 +0000)]
Merge "Switch to upstream NetBSD nsap_addr.c."

10 years agoSwitch to upstream NetBSD nsap_addr.c.
Elliott Hughes [Mon, 30 Jun 2014 19:03:43 +0000 (12:03 -0700)]
Switch to upstream NetBSD nsap_addr.c.

These symbols should be public (and Firefox uses them), and we'd also probably
rather have the upstream thread-safe implementation.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1030899
Change-Id: I2a5888fbb3198546848398f576fd2195ff3fe00c

10 years agoadd CLOEXEC to various DNS related code
Nick Kralevich [Mon, 30 Jun 2014 03:46:17 +0000 (20:46 -0700)]
add CLOEXEC to various DNS related code

Occasionally file descriptors seem to be leaking across execs
from DNS related calls. Set close-on-execute for the various
sockets / file to prevent file descriptor leakage.

Change-Id: I4724b47bc7236f40c29518a6075598a9bba48b0a

10 years agoMerge "Silence time64.c build warnings."
Elliott Hughes [Tue, 1 Jul 2014 18:07:58 +0000 (18:07 +0000)]
Merge "Silence time64.c build warnings."

10 years agoSilence time64.c build warnings.
Elliott Hughes [Tue, 1 Jul 2014 17:48:23 +0000 (10:48 -0700)]
Silence time64.c build warnings.

Change-Id: Ibc5672480ee5e72eedf2bc29e420315b5346b0df

10 years agoMerge "Revert "HACK: linker: check for handle==0xffffffff on LP64""
Colin Cross [Sat, 28 Jun 2014 00:39:33 +0000 (00:39 +0000)]
Merge "Revert "HACK: linker: check for handle==0xffffffff on LP64""

10 years agoMerge "Disallow dlopen("egl/blah.so") on LP64"
Dmitriy Ivanov [Mon, 30 Jun 2014 17:53:49 +0000 (17:53 +0000)]
Merge "Disallow dlopen("egl/blah.so") on LP64"

10 years agoDisallow dlopen("egl/blah.so") on LP64
Dmitriy Ivanov [Sun, 29 Jun 2014 20:00:23 +0000 (13:00 -0700)]
Disallow dlopen("egl/blah.so") on LP64

Bug: 7465467
Change-Id: Ibd3a4f1a6095f4397bde4f656e3c11b67f7edd47

10 years agoMerge "Reinstate the x86 dynamic linker warning for text relocations."
Elliott Hughes [Mon, 30 Jun 2014 21:55:34 +0000 (21:55 +0000)]
Merge "Reinstate the x86 dynamic linker warning for text relocations."

10 years agoReinstate the x86 dynamic linker warning for text relocations.
Elliott Hughes [Mon, 30 Jun 2014 21:46:53 +0000 (14:46 -0700)]
Reinstate the x86 dynamic linker warning for text relocations.

Bug: 11358761
Change-Id: I4fc56ce7d76c9703a307ddd4d371d5e98bc6f51d

10 years agoMerge "Add optimized 64 bit strcpy."
Christopher Ferris [Fri, 27 Jun 2014 22:25:05 +0000 (22:25 +0000)]
Merge "Add optimized 64 bit strcpy."

10 years agoAdd optimized 64 bit strcpy.
Christopher Ferris [Thu, 26 Jun 2014 22:27:08 +0000 (15:27 -0700)]
Add optimized 64 bit strcpy.

Change-Id: I4ac12735a53c3ae9336b148ce694fe6c63613139

10 years agoMerge "asm/sigcontext.h is required to build unwind-dw2.c in gcc-4.9."
Elliott Hughes [Fri, 27 Jun 2014 21:15:07 +0000 (21:15 +0000)]
Merge "asm/sigcontext.h is required to build unwind-dw2.c in gcc-4.9."

10 years agoMerge "Add optimized neon strchr implementation based on newlib"
Christopher Ferris [Fri, 27 Jun 2014 19:39:08 +0000 (19:39 +0000)]
Merge "Add optimized neon strchr implementation based on newlib"

10 years agoAdd optimized neon strchr implementation based on newlib
Bernhard Rosenkränzer [Fri, 27 Jun 2014 11:21:42 +0000 (13:21 +0200)]
Add optimized neon strchr implementation based on newlib

Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Change-Id: I276ff0f879e733a1115456247e1342b9c5a09015

10 years agoasm/sigcontext.h is required to build unwind-dw2.c in gcc-4.9.
Raghu Gandham [Thu, 26 Jun 2014 00:58:48 +0000 (17:58 -0700)]
asm/sigcontext.h is required to build unwind-dw2.c in gcc-4.9.

Change-Id: Ie36b68d1260a656056f66a67750232a7da78c61f
Signed-off-by: Steve Ellcey <steve.ellcey@imgtec.com>
10 years agoMerge "Add a new pthread_key_delete test."
Elliott Hughes [Wed, 25 Jun 2014 20:54:14 +0000 (20:54 +0000)]
Merge "Add a new pthread_key_delete test."

10 years agoAdd a new pthread_key_delete test.
Elliott Hughes [Wed, 25 Jun 2014 20:46:46 +0000 (13:46 -0700)]
Add a new pthread_key_delete test.

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

10 years agoMerge "Change the LP64 off_t/loff_t/off64_t definitions to reduce warnings."
Elliott Hughes [Wed, 25 Jun 2014 19:19:44 +0000 (19:19 +0000)]
Merge "Change the LP64 off_t/loff_t/off64_t definitions to reduce warnings."

10 years agoChange the LP64 off_t/loff_t/off64_t definitions to reduce warnings.
Elliott Hughes [Wed, 25 Jun 2014 19:09:11 +0000 (12:09 -0700)]
Change the LP64 off_t/loff_t/off64_t definitions to reduce warnings.

Code written for glibc can be sloppy about these types on LP64 and
get away with it. It's probably better for our users if these types
are identical rather than just being the same size.

Change-Id: I3dd116d80569d2d101342a552c55f4a18884025b

10 years agoMerge "Add splice, tee, and vmsplice."
Elliott Hughes [Wed, 25 Jun 2014 02:04:10 +0000 (02:04 +0000)]
Merge "Add splice, tee, and vmsplice."

10 years agoAdd splice, tee, and vmsplice.
Elliott Hughes [Tue, 24 Jun 2014 23:32:01 +0000 (16:32 -0700)]
Add splice, tee, and vmsplice.

Change-Id: I5f43380b88d776a8bb607b47dbbc5db5a2fe6163

10 years agoMerge "Sync to current upstream arc4random."
Elliott Hughes [Tue, 24 Jun 2014 21:24:55 +0000 (21:24 +0000)]
Merge "Sync to current upstream arc4random."

10 years agoSync to current upstream arc4random.
Elliott Hughes [Sat, 21 Jun 2014 05:49:20 +0000 (22:49 -0700)]
Sync to current upstream arc4random.

This is actually revision 1.33, which is no longer the latest, but it's
as close to head as we can currently reasonably get. I've also switched
to the OpenBSD getentropy_linux.c implementation of getentropy, lightly
modified to try to report an error on failure.

Bug: 14499627
Change-Id: Ia7c561184b1f366c9bf66f248aa60f0d53535fcb

10 years agoMerge "Fix getpid caching across a clone."
Elliott Hughes [Tue, 24 Jun 2014 16:36:31 +0000 (16:36 +0000)]
Merge "Fix getpid caching across a clone."

10 years agoMerge "Prefix cmsg_nxthdr with "__"."
Calin Juravle [Tue, 24 Jun 2014 10:54:53 +0000 (10:54 +0000)]
Merge "Prefix cmsg_nxthdr with "__"."

10 years agoPrefix cmsg_nxthdr with "__".
Calin Juravle [Thu, 19 Jun 2014 17:16:17 +0000 (18:16 +0100)]
Prefix cmsg_nxthdr with "__".

This brings us on par with glibc.

To avoid breaking clients, temporary keep cmsg_nxthdr until the next NDK
refresh.

Bug: 15822452
Change-Id: I24c24e68c31f4f2b8f3d2df7acd575cb75174173

10 years agoRevert "Revert "Prevent symbols from libgcc from being reexported.""
Dan Albert [Tue, 24 Jun 2014 04:31:08 +0000 (04:31 +0000)]
Revert "Revert "Prevent symbols from libgcc from being reexported.""

This reverts commit 4e4e1a5d78ff6dd9394b9b116c012046da409e99.

Change-Id: I8e78c3a59598e052e02965dd37b3fba8f567eed9

10 years agoFix getpid caching across a clone.
Elliott Hughes [Tue, 24 Jun 2014 00:49:45 +0000 (17:49 -0700)]
Fix getpid caching across a clone.

If you make clone, fork, or vfork system calls directly, you're still
on your own, but we now do the right thing for the clone wrapper.
With this implementation, children lose the getpid caching, but we've
no reason to think that that covers any significant use cases.

Bug: 15387103
Change-Id: Icfab6b63c708fea830960742ec92aeba8ce7680d

10 years agoRevert "Prevent symbols from libgcc from being reexported."
Dan Albert [Mon, 23 Jun 2014 20:12:05 +0000 (20:12 +0000)]
Revert "Prevent symbols from libgcc from being reexported."

This reverts commit 65e80cf62200085f72c1c081aea2d6e9b800cde2.

Change-Id: I5f94b123f73db8d0b03cd71a5cffa0662776a017

10 years agoMerge "Revert "Prevent symbols from libgcc from being reexported.""
Dan Albert [Mon, 23 Jun 2014 21:11:50 +0000 (21:11 +0000)]
Merge "Revert "Prevent symbols from libgcc from being reexported.""

10 years agoPrevent symbols from libgcc from being reexported.
Dan Albert [Thu, 19 Jun 2014 00:18:33 +0000 (17:18 -0700)]
Prevent symbols from libgcc from being reexported.

Since this was not done earlier, there are binary compatibility concerns
that prevent us from being able to apply this to LP32.

Bug: 11156955
Change-Id: Ie717c3ae4b81c749548a45a993c834e109700b27

10 years agoMerge "Prevent symbols from libgcc from being reexported."
Dan Albert [Sat, 21 Jun 2014 07:59:57 +0000 (07:59 +0000)]
Merge "Prevent symbols from libgcc from being reexported."

10 years agoMerge "Remove SHA1 from LP64 in favor of libcrypto."
Dan Albert [Sat, 21 Jun 2014 04:43:24 +0000 (04:43 +0000)]
Merge "Remove SHA1 from LP64 in favor of libcrypto."

10 years agoMerge "[MIPS64] Regenerate mips kernel headers with fixed tool"
Christopher Ferris [Sat, 21 Jun 2014 00:58:04 +0000 (00:58 +0000)]
Merge "[MIPS64] Regenerate mips kernel headers with fixed tool"

10 years ago[MIPS64] Regenerate mips kernel headers with fixed tool
Duane Sand [Thu, 19 Jun 2014 22:39:29 +0000 (15:39 -0700)]
[MIPS64] Regenerate mips kernel headers with fixed tool

Change-Id: I530891123cba78edbea4aa8af88390213711ab16

10 years ago[MIPS64] Adjust kernel/tools for mips32,mips64 headers
Duane Sand [Thu, 19 Jun 2014 21:38:07 +0000 (14:38 -0700)]
[MIPS64] Adjust kernel/tools for mips32,mips64 headers

Define CONFIG_32BIT as _ABIO32 rather than as 1;
it needs to be undefined for calls from mips64.
We need  defined(CONFIG_32BIT) == !defined(CONFIG_64BIT),
and get that via  defined(_ABIO32) == !defined(__LP64__).

Define CONFIG_CPU_LITTLE_ENDIAN to get correctly-placed
struct msqid64_ds fillers on ipc calls from mips32.
Without this, big-endian fillers were erroneously used.
This bug exists in prior mips32 Android releases.

Define __SANE_USERSPACE_TYPES__ to use int_ll64.h
rather than int_ll64.h on mips64.
This depends on external/kernel-headers patch
 https://android-review.googlesource.com/#/c/98915/
 http://patchwork.linux-mips.org/patch/6890/

Change-Id: If65fa80746533723cdf46eebe95733bea7ce24ba