OSDN Git Service
Dimitry Ivanov [Mon, 23 Nov 2015 07:28:32 +0000 (07:28 +0000)]
Merge "Handling invalid section headers"
Dmitriy Ivanov [Sat, 21 Nov 2015 01:28:12 +0000 (17:28 -0800)]
Handling invalid section headers
The linker crashes if native library has invalid section
headers. This change adds boundary checks on target offsets
and generates dlerror instead of crash.
Bug: http://b/
25800330
Change-Id: Ibe282029997302b9b557637c3aad064d7d0febc5
Yabin Cui [Sat, 21 Nov 2015 01:50:29 +0000 (01:50 +0000)]
Merge "Use FUTEX_WAIT_BITSET to avoid converting timeouts."
Dimitry Ivanov [Fri, 20 Nov 2015 21:42:18 +0000 (21:42 +0000)]
Merge "Move some utility functions to linker_utils"
Dmitriy Ivanov [Fri, 20 Nov 2015 21:34:11 +0000 (13:34 -0800)]
Move some utility functions to linker_utils
Also adds unit-tests for page_start, page_offset, and safe_add
Change-Id: Ia1325b4682d367328a01599a19848e4ffcd2c0ea
Dimitry Ivanov [Fri, 20 Nov 2015 19:16:14 +0000 (19:16 +0000)]
Merge "Improve error message for files with no sections"
Dmitriy Ivanov [Fri, 20 Nov 2015 18:42:02 +0000 (10:42 -0800)]
Improve error message for files with no sections
Bug: http://b/
25801618
Change-Id: I4f4f368e727ff48c84781279e3d17d4ac2d1b6b0
Chih-hung Hsieh [Fri, 20 Nov 2015 18:27:14 +0000 (18:27 +0000)]
Merge "Disable clang for mips/mips64 libc."
Chih-Hung Hsieh [Fri, 20 Nov 2015 17:55:35 +0000 (09:55 -0800)]
Disable clang for mips/mips64 libc.
* Many processes, including adbd, failed to start in mips/mips64
emulator when libc.so was compiled by clang.
BUG:
25291096
Change-Id: If3434ebdca4a3a6bf6102b120ee838a7ab66cd74
Elliott Hughes [Fri, 20 Nov 2015 17:19:19 +0000 (17:19 +0000)]
Merge "mmap: fix calculation of is_private_anonymous variable"
Vitaly Vul [Thu, 24 Sep 2015 12:28:59 +0000 (14:28 +0200)]
mmap: fix calculation of is_private_anonymous variable
Currently is_private_anonymous is calculated as true if _either_
MAP_PRIVATE or MAP_ANONYMOUS is set, which is a mistake.
According to Documentation/vm/ksm.txt, "KSM only merges anonymous
(private) pages, never pagecache (file) pages". MAP_PRIVATE can
still be set on file cache pages so in order to not redundantly
set MADV_MERGEABLE on pages that are not fitted for it, both
MAP_PRIVATE and MAP_ANONYMOUS should be set.
Along with this fix, add an extra check that the mapped page is
not a stack page before setting MADV_MERGEABLE for it. Stack pages
change too quickly and always end up in KSM 'page_volatile' list.
Change-Id: If4954142852f17cc61f02985ea1cb625a7f3dec6
Josh Gao [Fri, 20 Nov 2015 01:55:56 +0000 (01:55 +0000)]
Merge changes I73a39c6d,Iab2af242
* changes:
Fix test build break.
extend the PTRDIFF_MAX size check to mremap
Yabin Cui [Fri, 20 Nov 2015 00:40:00 +0000 (00:40 +0000)]
Merge "Fix tsan abort for lake of __libc_auxv initialization."
Colin Cross [Thu, 19 Nov 2015 22:48:33 +0000 (22:48 +0000)]
Merge "Update libc/Android.bp to match libc/Android.mk"
Yabin Cui [Thu, 19 Nov 2015 22:24:06 +0000 (14:24 -0800)]
Fix tsan abort for lake of __libc_auxv initialization.
If tsan is used, the following callchain can happen:
__libc_preinit() -> __libc_init_globals() ->
__libc_init_vdso() -> strcmp() -> __tsan_init()
-> sysconf(_SC_PAGE_SIZE) -> getauxval().
But __libc_auxv is initialized in __libc_init_common(),
after __libc_init_globals(). One simple way to fix
this is to initialize __libc_auxv at __libc_init_globals().
Bug:
25392375
Change-Id: I3893b1f567d5f3b7a8c881c0c1b8234b06b7751b
Colin Cross [Thu, 19 Nov 2015 21:32:49 +0000 (13:32 -0800)]
Update libc/Android.bp to match libc/Android.mk
Change-Id: I4dfadc55688213f095949c56306e5071b2ab6135
Josh Gao [Thu, 19 Nov 2015 21:44:20 +0000 (13:44 -0800)]
Fix test build break.
Change-Id: I73a39c6d4bb9baebbfb5572e9259bcd405116039
Yabin Cui [Thu, 5 Nov 2015 23:36:08 +0000 (15:36 -0800)]
Use FUTEX_WAIT_BITSET to avoid converting timeouts.
Add unittests for pthread APIs with timeout parameter.
Bug:
17569991
Change-Id: I6b3b9b2feae03680654cd64c3112ce7644632c87
Hung-ying Tyan [Thu, 19 Nov 2015 16:38:51 +0000 (16:38 +0000)]
Merge "Add /odm/lib to shared lib search path"
Daniel Micay [Sat, 7 Nov 2015 15:40:26 +0000 (10:40 -0500)]
extend the PTRDIFF_MAX size check to mremap
This removes another way to obtain objects larger than PTRDIFF_MAX. The
only known remaining hole is now jemalloc's merging of virtual memory
spans.
Technically this could be wrapped in an __LP64__ ifndef since it can't
occur on 64-bit due to the 1:1 split. It doesn't really matter either
way.
Change-Id: Iab2af242b775bc98a59421994d87aca0433215bd
Junichi Uekawa [Thu, 19 Nov 2015 12:44:19 +0000 (12:44 +0000)]
Merge "Do not depend on host bits to get the right size to write."
Junichi Uekawa [Wed, 18 Nov 2015 01:18:59 +0000 (10:18 +0900)]
Do not depend on host bits to get the right size to write.
x86_64 32-bit or 64-bit relocations do not depend on ELF bit size, they
are 32-bit or 64-bit respectively.
Known compiler that emits such code is nacl-clang which emits
R_X86_64_PC32 which should write 32 bits but ended up writing 64 bits.
Change-Id: Ibb6b484c0fea6a7e291362148e8ac749d6674529
Yabin Cui [Thu, 19 Nov 2015 01:55:37 +0000 (01:55 +0000)]
Merge "Implement pthread spin."
Yabin Cui [Thu, 19 Nov 2015 01:55:25 +0000 (01:55 +0000)]
Merge "Avoid tsan warning about pthread_mutex_destroy."
Yabin Cui [Wed, 18 Nov 2015 00:03:18 +0000 (16:03 -0800)]
Implement pthread spin.
In order to run tsan unit tests, we need to support pthread spin APIs.
Bug:
18623621
Bug:
25392375
Change-Id: Icbb4a74e72e467824b3715982a01600031868e29
Hung-ying Tyan [Thu, 12 Nov 2015 03:48:19 +0000 (11:48 +0800)]
Add /odm/lib to shared lib search path
ODM's shared libs should live in /odm/lib on the ODM partition.
BUG:
25654402
Change-Id: I3f5c26f208af87ff2817e490e51d0b4f5b8ec98e
Dimitry Ivanov [Wed, 18 Nov 2015 03:43:59 +0000 (03:43 +0000)]
Merge "Ignore target sdk version for the public namespace"
Dmitriy Ivanov [Wed, 18 Nov 2015 02:36:50 +0000 (18:36 -0800)]
Ignore target sdk version for the public namespace
This fixes the bug with using the libraries loaded
prior to android_set_target_sdk_version call.
Bug: http://b/
22548808
Change-Id: I3ca2d367b0fa930a437bbb65f780834803d2ef0a
Yabin Cui [Tue, 17 Nov 2015 04:19:31 +0000 (20:19 -0800)]
Avoid tsan warning about pthread_mutex_destroy.
If calling pthread_mutex_trylock from pthread_mutex_destroy, tsan
warns about an attempt to destroy a locked mutex.
Bug:
25392375
Change-Id: I5feee20e7a0d0915adad24da874ec1ccce241381
Yabin Cui [Tue, 17 Nov 2015 00:22:54 +0000 (00:22 +0000)]
Merge "Implement pthread barrier."
Dimitry Ivanov [Mon, 16 Nov 2015 22:25:50 +0000 (22:25 +0000)]
Merge "Remove the warning about empty LD_LIBRARY_PATH"
Dmitriy Ivanov [Mon, 16 Nov 2015 22:23:37 +0000 (14:23 -0800)]
Remove the warning about empty LD_LIBRARY_PATH
Change-Id: I3eca11512d8055ab94dd0a6badcd83ce6440d675
Yabin Cui [Fri, 6 Nov 2015 06:06:09 +0000 (22:06 -0800)]
Implement pthread barrier.
Bug:
24341262
Change-Id: I5472549e5d7545c1c3f0bef78235f545557b9630
Chih-hung Hsieh [Mon, 16 Nov 2015 21:31:36 +0000 (21:31 +0000)]
Merge "Enable clang to compile more tests."
Dimitry Ivanov [Mon, 16 Nov 2015 21:23:18 +0000 (21:23 +0000)]
Merge "Fix arm64 and x86 builds"
Dmitriy Ivanov [Mon, 16 Nov 2015 21:17:27 +0000 (13:17 -0800)]
Fix arm64 and x86 builds
Change-Id: Ic3746b2f200f42218b6ac857c1631e873c767c17
Dimitry Ivanov [Mon, 16 Nov 2015 20:14:37 +0000 (20:14 +0000)]
Merge "Introducing linker namespaces"
Chih-Hung Hsieh [Mon, 16 Nov 2015 19:13:04 +0000 (11:13 -0800)]
Enable clang to compile more tests.
* Disable optimization only in gtest.h of atexit_test.c for arm/aarch64
to keep VTT for std::__1::basic_stringstream<char, std::__1::char_traits<char>,
std::__1::allocator<char> > to link with g++ compiled modules.
* bionic-unit-tests source files are not affected by clang x86_64 fp128 bug
so they can be compiled with clang.
BUG:
25643775
Change-Id: I3da2a0de61edcdca07b7fcd73a16de9da4a1f7d6
Dmitriy Ivanov [Fri, 30 Oct 2015 00:01:24 +0000 (17:01 -0700)]
Introducing linker namespaces
Bug: http://b/
22548808
Change-Id: Ia3af3c0a167f1d16447a3d83bb045d143319b1e1
Elliott Hughes [Fri, 13 Nov 2015 18:24:41 +0000 (18:24 +0000)]
Merge "Improve libc time zone fallback behavior."
Elliott Hughes [Fri, 13 Nov 2015 16:38:48 +0000 (08:38 -0800)]
Improve libc time zone fallback behavior.
We should fall back to GMT if neither the environment variable nor the
system property is set. This is the case if you wipe a WiFi-only device,
because we currently only take the time zone from cell networks.
Bug: http://b/
24773112
Change-Id: I90d236d4d492b6562d75021bd312030b91c1e298
Elliott Hughes [Fri, 13 Nov 2015 02:58:30 +0000 (02:58 +0000)]
Merge "Fix strftime if tm_zone is null."
Nick Kralevich [Fri, 13 Nov 2015 01:09:44 +0000 (01:09 +0000)]
Merge "FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc"
Elliott Hughes [Fri, 13 Nov 2015 00:51:31 +0000 (16:51 -0800)]
Fix strftime if tm_zone is null.
Upstream tzcode said "On platforms with tm_zone, strftime.c now assumes it
is not NULL". Which is fine for any struct tm generated by tzcode, but not
necessarily true of a struct tm constructed by arbitrary code. In particular,
Netflix on Nexus Player was failing to start because they format "%Z" with
a struct tm whose tm_zone is null (the other fields are valid, but, yeah,
that's probably not intentional).
glibc takes a null tm_zone to mean "the current time zone", so let's do that
too. (Historically Android would use the empty string, and POSIX doesn't
clarify which of this is the appropriate behavior when tm_zone is null.)
Bug: http://b/
25170306
Change-Id: Idbf68bfe90d143aca7dada8607742905188b1d33
Nick Kralevich [Thu, 12 Nov 2015 23:55:13 +0000 (15:55 -0800)]
FORTIFY_SOURCE: make sure gcc unittests are compiled with gcc
The default compiler is clang. We need to explicitly indicate
that we should use gcc.
Change-Id: I37859c2e303f2a86a2565fe72eda1fda7c557a59
Chih-hung Hsieh [Thu, 12 Nov 2015 20:45:48 +0000 (20:45 +0000)]
Merge "Still cannot compile with clang on arm64."
Chih-Hung Hsieh [Thu, 12 Nov 2015 20:39:13 +0000 (12:39 -0800)]
Still cannot compile with clang on arm64.
When __cxa_thread_atexit_impl.cpp is compiled with clang on arm64,
Android cannot boot up.
BUG:
25662915
Change-Id: If997b544f43e956172ce605d86fe147d42fd39e0
Chih-hung Hsieh [Thu, 12 Nov 2015 01:04:51 +0000 (01:04 +0000)]
Merge "Enable clang for modules failed with TLS."
Elliott Hughes [Thu, 12 Nov 2015 00:59:08 +0000 (00:59 +0000)]
Merge "Clean up pthread_gettid_np test."
Chih-Hung Hsieh [Tue, 10 Nov 2015 19:15:43 +0000 (11:15 -0800)]
Enable clang for modules failed with TLS.
New 3.8 clang/llvm can compile TLS code now.
* For x86_64, still disable clang due to f128 bug.
* For b/
25643775, arm and arm64, disable clang in unit tests.
* Fix thread_local_test.cpp to compile with clang and
limit gcc workaround only to arm and aarch64.
BUG:
25643775
Change-Id: Iecd006bf1fc417dbcce2c63343a59c4bf1fa77ea
Josh Gao [Wed, 11 Nov 2015 22:22:59 +0000 (22:22 +0000)]
Merge "Add 100 column limit to .clang-format."
Josh Gao [Wed, 11 Nov 2015 22:21:09 +0000 (14:21 -0800)]
Add 100 column limit to .clang-format.
Change-Id: I3c3fa5e61cfb2af7f2888dcee56229692ec1479c
Elliott Hughes [Wed, 11 Nov 2015 21:32:28 +0000 (13:32 -0800)]
Clean up pthread_gettid_np test.
Change-Id: I0fad26c7824981bfa3ad3a8a0b28a1984062dcd1
Elliott Hughes [Wed, 11 Nov 2015 21:21:33 +0000 (21:21 +0000)]
Merge "Fix potential race condition on CTS TC pthread_gettid_np"
Junjie Hu [Wed, 11 Nov 2015 04:52:25 +0000 (12:52 +0800)]
Fix potential race condition on CTS TC pthread_gettid_np
Root cause:
If start_routine thread exits before pthread_gettid_np is invokded, the "tid" field
will be cleared so that pthread_gettid_np will get "0" (which is cleared by kernel,
due to the flag "CLONE_CHILD_CLEARTID" is set while calling clone system call inside
pthread_create).
Proposed patch:
Use a mutex to guarantee pthread_gettid_np will be invoked and returned before the
start_routine exits
Signed-off-by: Junjie Hu <junjie.hu@mediatek.com>
Change-Id: I22411f1b0f7446d76a0373cef4ccec858fac7018
(cherry picked from commit
4f8010293506d4e08d184e66bf4af44ef3483611)
Nick Kralevich [Wed, 11 Nov 2015 02:06:59 +0000 (02:06 +0000)]
Merge "libc_init_common.cpp: Clarify when environment stripping occurs"
Nick Kralevich [Wed, 11 Nov 2015 00:39:29 +0000 (16:39 -0800)]
libc_init_common.cpp: Clarify when environment stripping occurs
The current comment implies that we only strip sensitive
environment variables on executing a setuid program. This is
true but incomplete. The AT_SECURE flag is set whenever a
security transition occurs, such as executing a setuid program,
SELinux security transition, executing a file with file capabilities,
etc...
Fixup the comments.
Change-Id: I30a73992adfde14d6e5f642b3a1ead2ee56726be
Tom Cherry [Tue, 10 Nov 2015 21:54:39 +0000 (21:54 +0000)]
Merge "Refactor prop_area into a class"
Tom Cherry [Wed, 23 Sep 2015 22:34:40 +0000 (15:34 -0700)]
Refactor prop_area into a class
Bug
21852512
Change-Id: I432bf592f1a71a046c32616fc334ad77c220f0ca
Josh Gao [Tue, 10 Nov 2015 00:08:09 +0000 (00:08 +0000)]
Merge "Fix test failure."
Josh Gao [Tue, 10 Nov 2015 00:04:50 +0000 (16:04 -0800)]
Fix test failure.
Bug: http://b/
25596173
Change-Id: I0cf8f550837d4a936d6a784063a0ec9509150358
Dan Willemsen [Mon, 9 Nov 2015 22:28:18 +0000 (22:28 +0000)]
Merge "Update Android.bp with latest Android.mk changes"
Dan Willemsen [Mon, 9 Nov 2015 22:03:46 +0000 (14:03 -0800)]
Update Android.bp with latest Android.mk changes
Change-Id: I45f6292fcc4d4559519d88f948b4478204b08f25
Yabin Cui [Sat, 7 Nov 2015 00:24:52 +0000 (00:24 +0000)]
Merge "Add fileno_unlocked to support thread sanitizer."
Yabin Cui [Sat, 7 Nov 2015 00:13:47 +0000 (16:13 -0800)]
Add fileno_unlocked to support thread sanitizer.
Bug:
25392375
Change-Id: If3f92a0e08a53f4b59e01397e8efa307d8572349
Elliott Hughes [Fri, 6 Nov 2015 21:18:08 +0000 (21:18 +0000)]
Merge "fix the mremap signature"
Daniel Micay [Tue, 3 Nov 2015 10:14:08 +0000 (05:14 -0500)]
fix the mremap signature
The mremap definition was incorrect (unsigned long instead of int) and
it was missing the optional new_address parameter.
Change-Id: Ib9d0675aaa098c21617cedc9b2b8cf267be3aec4
Dimitry Ivanov [Fri, 6 Nov 2015 19:00:24 +0000 (19:00 +0000)]
Merge "linker: cleanup solist after unsuccessful read"
Dmitriy Ivanov [Fri, 6 Nov 2015 18:44:37 +0000 (10:44 -0800)]
linker: cleanup solist after unsuccessful read
Bug: http://b/
25560017
Change-Id: I03c5a1d7aed34c480d341aacfb3b1afdfa037b99
Dimitry Ivanov [Fri, 6 Nov 2015 02:32:34 +0000 (02:32 +0000)]
Merge "Fix linked_list::remove_if()"
Dmitriy Ivanov [Fri, 6 Nov 2015 01:41:05 +0000 (17:41 -0800)]
Fix linked_list::remove_if()
When remove_if removes last element from the list
following push_back stops working.
Change-Id: Ia3e92763b83a2e172eaa10de7aecfb7a4be452d7
Colin Cross [Thu, 5 Nov 2015 01:56:58 +0000 (01:56 +0000)]
Merge "Use cc_defaults"
Josh Gao [Wed, 4 Nov 2015 22:26:13 +0000 (22:26 +0000)]
Merge "Fix GNU/POSIX basename headers."
Josh Gao [Wed, 4 Nov 2015 02:46:02 +0000 (18:46 -0800)]
Fix GNU/POSIX basename headers.
Including glibc's <libgen.h> will result in the user getting the POSIX
version of basename always, regardless of when it is included relative
to <string.h>. Prior to this patch, our implementation would result in
the one that's included first winning.
Bug: http://b/
25459151
Change-Id: Id4aaf1670dad317d6bbc05763a84ee87596e8e59
Colin Cross [Sun, 1 Nov 2015 06:03:05 +0000 (23:03 -0700)]
Use cc_defaults
Use a cc_defaults module to reduce duplication.
Change-Id: Iaee6bf20b84123babcdc68d4feb06308f5f61a59
Dan Willemsen [Tue, 3 Nov 2015 22:38:23 +0000 (22:38 +0000)]
Merge "Update Android.bp with arch-specific version scripts"
Dan Willemsen [Tue, 3 Nov 2015 22:30:57 +0000 (14:30 -0800)]
Update Android.bp with arch-specific version scripts
Change-Id: I59b34f21b54e8a2084bb318a08c4092064f48083
Josh Gao [Tue, 3 Nov 2015 19:35:05 +0000 (19:35 +0000)]
Merge "fix PTRDIFF_MAX check in the 32-bit mmap wrapper"
Daniel Micay [Tue, 3 Nov 2015 10:30:29 +0000 (05:30 -0500)]
fix PTRDIFF_MAX check in the 32-bit mmap wrapper
It wasn't making use of the page-rounded size.
Change-Id: I911345fcfd6419a4dbc18a4622b42e1b76729abb
Christopher Ferris [Mon, 2 Nov 2015 21:10:19 +0000 (21:10 +0000)]
Merge "Fix comment to reflect the actual reality."
am:
e07558fb80
* commit '
e07558fb80da4e196e8b7e371041c1e75c56b29b':
Fix comment to reflect the actual reality.
Christopher Ferris [Mon, 2 Nov 2015 21:07:04 +0000 (21:07 +0000)]
Merge "Fix comment to reflect the actual reality."
Christopher Ferris [Mon, 2 Nov 2015 20:56:37 +0000 (12:56 -0800)]
Fix comment to reflect the actual reality.
The original comment implied that Android 32 bit was the only one
using a bad time_t, but it turns out 32 bit glibc has the same time_t
as Android. Update the comment to reflect this reality.
Change-Id: I72cdd2c677a6521f7b43d4695a52fd8fdc3305bd
Dimitry Ivanov [Sat, 31 Oct 2015 18:20:28 +0000 (18:20 +0000)]
Merge "Generate libdl.so per-architecture version script"
am:
75dd3710e7
* commit '
75dd3710e72e819ce6710e93672f937550ed3818':
Generate libdl.so per-architecture version script
Dimitry Ivanov [Sat, 31 Oct 2015 18:17:17 +0000 (18:17 +0000)]
Merge "Generate libdl.so per-architecture version script"
Christopher Ferris [Sat, 31 Oct 2015 16:15:17 +0000 (16:15 +0000)]
Merge "Make _signal hidden in all cases."
am:
6a8a09f7c4
* commit '
6a8a09f7c40fb677a8dc8a233b58f62df8ae79dc':
Make _signal hidden in all cases.
Christopher Ferris [Sat, 31 Oct 2015 16:11:48 +0000 (16:11 +0000)]
Merge "Make _signal hidden in all cases."
Dmitriy Ivanov [Sat, 31 Oct 2015 00:43:27 +0000 (17:43 -0700)]
Generate libdl.so per-architecture version script
Bug: http://b/
24767418
Change-Id: I3d5775ba44d4c8e7fc5f2fbebae10e022100f1e2
Christopher Ferris [Sat, 31 Oct 2015 00:10:47 +0000 (17:10 -0700)]
Make _signal hidden in all cases.
_signal was static in 64 bit, and hidden on 32 bit. There is no
reason to have this distinction, so make it hidden in all cases.
Change-Id: I09d5d93ac8cab4fe14dc7bdfeb25aa46a3b7413d
Elliott Hughes [Fri, 30 Oct 2015 23:40:48 +0000 (23:40 +0000)]
Merge "Add prlimit to LP32."
am:
c36be975ce
* commit '
c36be975ce4525b452435f43beb1fb9fc26a7fdc':
Add prlimit to LP32.
Elliott Hughes [Fri, 30 Oct 2015 23:35:40 +0000 (23:35 +0000)]
Merge "Add prlimit to LP32."
Elliott Hughes [Fri, 30 Oct 2015 22:16:58 +0000 (22:16 +0000)]
Merge "Remove <sys/shm.h>."
am:
bdac9ec142
* commit '
bdac9ec142347a0dc9784bddd0f8336535e73529':
Remove <sys/shm.h>.
Elliott Hughes [Fri, 30 Oct 2015 22:06:26 +0000 (22:06 +0000)]
Merge "Remove <sys/shm.h>."
Christopher Ferris [Fri, 30 Oct 2015 16:06:45 +0000 (16:06 +0000)]
Merge "Move __set_errno to ndk_cruft.cpp."
am:
e75453d5dd
* commit '
e75453d5dd8b373f6e7ef61ec22a6a3074d51e02':
Move __set_errno to ndk_cruft.cpp.
Christopher Ferris [Fri, 30 Oct 2015 16:02:01 +0000 (16:02 +0000)]
Merge "Move __set_errno to ndk_cruft.cpp."
Elliott Hughes [Fri, 30 Oct 2015 02:52:44 +0000 (19:52 -0700)]
Remove <sys/shm.h>.
Android doesn't allow SysV IPC, so this only serves two purposes. It's
good in that it helps random code (especially code that doesn't actually
need this header) to compile anyway. But it's bad for the same reason:
it's misleading for configure scripts that test for the header but not
for the corresponding functions.
Bug: http://b/
19340456
Change-Id: I4a5f319d9aecf46fc512fc94bb4f9e3f6ea64e71
Christopher Ferris [Fri, 30 Oct 2015 01:11:32 +0000 (18:11 -0700)]
Move __set_errno to ndk_cruft.cpp.
Change-Id: I5caa1cc161961d2e4629429c0d406875b93cdbd0
Elliott Hughes [Thu, 29 Oct 2015 00:14:48 +0000 (17:14 -0700)]
Add prlimit to LP32.
Bug: http://b/
24918750
Change-Id: I0151cd66ccf79a6169610de35bb9c288c0fa4917
Dimitry Ivanov [Thu, 29 Oct 2015 00:56:57 +0000 (00:56 +0000)]
Merge "Fix mips and x86 builds"
am:
50e9279589
* commit '
50e92795890c0d8b4bf54c535f66f3b2edf7bd59':
Fix mips and x86 builds
Dimitry Ivanov [Thu, 29 Oct 2015 00:53:52 +0000 (00:53 +0000)]
Merge "Fix mips and x86 builds"
Dmitriy Ivanov [Thu, 29 Oct 2015 00:51:47 +0000 (17:51 -0700)]
Fix mips and x86 builds
Change-Id: Idda2494876fd6bf64b3efe6de2e384da9b6a0dbc