OSDN Git Service

android-x86/bionic.git
10 years agoMerge "Size the benchmark name column appropriately."
Elliott Hughes [Thu, 12 Jun 2014 18:10:33 +0000 (18:10 +0000)]
Merge "Size the benchmark name column appropriately."

10 years agoSize the benchmark name column appropriately.
Elliott Hughes [Wed, 11 Jun 2014 23:48:29 +0000 (16:48 -0700)]
Size the benchmark name column appropriately.

Nobody likes misaligned output.

Change-Id: Ifbfd7beec755e91e204426a96c054d4ea20d3fae

10 years agoMerge "Add __pure2 to a few more functions, most notably gettid and pthread_self."
Elliott Hughes [Wed, 11 Jun 2014 23:34:40 +0000 (23:34 +0000)]
Merge "Add __pure2 to a few more functions, most notably gettid and pthread_self."

10 years agoAdd __pure2 to a few more functions, most notably gettid and pthread_self.
Elliott Hughes [Wed, 11 Jun 2014 03:47:49 +0000 (20:47 -0700)]
Add __pure2 to a few more functions, most notably gettid and pthread_self.

Change-Id: I7eee9f26f45130038af09d8285782b07f70a996f

10 years agoMerge "Fix mbrtoc32 test from tests/uchar_test.cpp for x86."
Elliott Hughes [Wed, 11 Jun 2014 22:59:29 +0000 (22:59 +0000)]
Merge "Fix mbrtoc32 test from tests/uchar_test.cpp for x86."

10 years agoFix mbrtoc32 test from tests/uchar_test.cpp for x86.
Alexander Ivchenko [Wed, 11 Jun 2014 12:20:54 +0000 (16:20 +0400)]
Fix mbrtoc32 test from tests/uchar_test.cpp for x86.

Without that fix the test fails with:
"error: comparison between signed and unsigned integer expressions" on x86,
due to the fact that char is signed on x86.

Change-Id: I44462d67c15c7e9b730ad5da52eb9c05e207d34b
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
10 years agoMerge "Remove declarations related to cuserid(3)."
Dan Albert [Wed, 11 Jun 2014 21:26:19 +0000 (21:26 +0000)]
Merge "Remove declarations related to cuserid(3)."

10 years agoRemove declarations related to cuserid(3).
Dan Albert [Wed, 11 Jun 2014 20:20:18 +0000 (13:20 -0700)]
Remove declarations related to cuserid(3).

cuserid(3) was removed from POSIX 2004, and we don't have an
implementation anyway.

Bug: 13935372
Change-Id: I7ac7cde931ba802d0d5b917c22f5116618b21d2f

10 years agoMerge "Add a couple more system call benchmarks."
Elliott Hughes [Wed, 11 Jun 2014 03:17:19 +0000 (03:17 +0000)]
Merge "Add a couple more system call benchmarks."

10 years agoMerge "Revert "Temporarily expose dlmalloc_usable_size.""
Elliott Hughes [Wed, 11 Jun 2014 03:15:22 +0000 (03:15 +0000)]
Merge "Revert "Temporarily expose dlmalloc_usable_size.""

10 years agoMerge "Allow bionic-unit-tests-glibc to be built again."
Christopher Ferris [Wed, 11 Jun 2014 03:07:27 +0000 (03:07 +0000)]
Merge "Allow bionic-unit-tests-glibc to be built again."

10 years agoAllow bionic-unit-tests-glibc to be built again.
Christopher Ferris [Wed, 11 Jun 2014 02:46:07 +0000 (19:46 -0700)]
Allow bionic-unit-tests-glibc to be built again.

When we switched to 64 bit host build be default, we no longer build
the glibc unit tests. Fix that, and also set all host targets to build
multilib.

This change also changes the name of bionic-unit-tests-glibc to add
the suffix of 32 or 64 depending on the host type built.

Change-Id: Ife13f9d80f351750ff02825b086d44bb0c2df828

10 years agoMerge "Replaces vfork() implementation with fork()"
Dan Albert [Wed, 11 Jun 2014 16:59:53 +0000 (16:59 +0000)]
Merge "Replaces vfork() implementation with fork()"

10 years agoReplaces vfork() implementation with fork()
Dan Albert [Fri, 6 Jun 2014 01:07:03 +0000 (18:07 -0700)]
Replaces vfork() implementation with fork()

vfork() was removed from POSIX 2008, so this replaces its implementation
with a call to fork().

Bug: 13935372
Change-Id: I6d99ac9e52a2efc5ee9bda1cab908774b830cedc

10 years agoMerge "AArch64: Fix memcmp16() test"
Elliott Hughes [Tue, 10 Jun 2014 18:25:40 +0000 (18:25 +0000)]
Merge "AArch64: Fix memcmp16() test"

10 years agoAArch64: Fix memcmp16() test
Serban Constantinescu [Tue, 10 Jun 2014 13:50:16 +0000 (14:50 +0100)]
AArch64: Fix memcmp16() test

__memcmp16() should return an integer less than, equal to, or greater than
zero. However the tests looks for a specific value.

Change-Id: I06052f58f9ccc67146a3df9abb349c4bc19f090e
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
10 years agoAdd a couple more system call benchmarks.
Elliott Hughes [Tue, 10 Jun 2014 01:35:21 +0000 (18:35 -0700)]
Add a couple more system call benchmarks.

Bug: 15387103
Change-Id: I13419ddf77d201fdbde4c784259c0cb0dcfb9a77

10 years agoMerge "Hide rand48 implementation details."
Elliott Hughes [Tue, 10 Jun 2014 01:28:08 +0000 (01:28 +0000)]
Merge "Hide rand48 implementation details."

10 years agoHide rand48 implementation details.
Elliott Hughes [Tue, 10 Jun 2014 01:10:20 +0000 (18:10 -0700)]
Hide rand48 implementation details.

Bug: 11156955
Change-Id: I130272286989487dc22e246fb4ffbee5230225c4

10 years agoMerge "Hide non-standard syslog API."
Elliott Hughes [Tue, 10 Jun 2014 01:09:09 +0000 (01:09 +0000)]
Merge "Hide non-standard syslog API."

10 years agoHide non-standard syslog API.
Elliott Hughes [Tue, 10 Jun 2014 00:16:19 +0000 (17:16 -0700)]
Hide non-standard syslog API.

The definitions are still available on LP32 for binary compatibility, but
they're gone on LP64, and the declarations are gone everywhere.

We should probably just make syslog(3) log to the regular Android log,
but that's a job for another day.

Bug: 11156955
Change-Id: I74a98c92f7922ea733549ec6d37c6fa8b7014860

10 years agoMerge "Use PRIVATE_POST_INSTALL_CMD to create symlink."
Ying Wang [Mon, 9 Jun 2014 23:55:19 +0000 (23:55 +0000)]
Merge "Use PRIVATE_POST_INSTALL_CMD to create symlink."

10 years agoUse PRIVATE_POST_INSTALL_CMD to create symlink.
Ying Wang [Mon, 9 Jun 2014 23:32:51 +0000 (16:32 -0700)]
Use PRIVATE_POST_INSTALL_CMD to create symlink.

Bug: 15520908
Change-Id: Ib3349f7adb6def81abf07bfb9d37093e4a599d09

10 years agoMerge "Remove the MD5 implementation that was only used by toolbox."
Elliott Hughes [Mon, 9 Jun 2014 23:29:21 +0000 (23:29 +0000)]
Merge "Remove the MD5 implementation that was only used by toolbox."

10 years agoRemove the MD5 implementation that was only used by toolbox.
Elliott Hughes [Mon, 9 Jun 2014 23:26:29 +0000 (16:26 -0700)]
Remove the MD5 implementation that was only used by toolbox.

I've already moved toolbox over to openssl.

Change-Id: Ia75fba5b5e3335a975b97787f653bf4df78e1b4e

10 years agoMerge "Add a regression test for two libm bugs we didn't have."
Elliott Hughes [Mon, 9 Jun 2014 23:18:35 +0000 (23:18 +0000)]
Merge "Add a regression test for two libm bugs we didn't have."

10 years agoMerge "Move mips fenv implementation details into fenv.c."
Elliott Hughes [Mon, 9 Jun 2014 22:27:29 +0000 (22:27 +0000)]
Merge "Move mips fenv implementation details into fenv.c."

10 years agoMove mips fenv implementation details into fenv.c.
Elliott Hughes [Mon, 9 Jun 2014 21:33:39 +0000 (14:33 -0700)]
Move mips fenv implementation details into fenv.c.

Change-Id: I2415e4808e40c2981d016c01969ba14ea22bf82e

10 years agoMerge "Move x86 fenv implementation details into fenv.c."
Elliott Hughes [Mon, 9 Jun 2014 22:22:10 +0000 (22:22 +0000)]
Merge "Move x86 fenv implementation details into fenv.c."

10 years agoMove x86 fenv implementation details into fenv.c.
Elliott Hughes [Mon, 9 Jun 2014 21:29:25 +0000 (14:29 -0700)]
Move x86 fenv implementation details into fenv.c.

Change-Id: I6cb8c730483c325dc3cb75c2b2fbdd2d8455a54c

10 years agoMerge "Clean up the ARM fenv.h, moving implementation details into fenv.c."
Elliott Hughes [Mon, 9 Jun 2014 21:16:14 +0000 (21:16 +0000)]
Merge "Clean up the ARM fenv.h, moving implementation details into fenv.c."

10 years agoClean up the ARM fenv.h, moving implementation details into fenv.c.
Elliott Hughes [Mon, 9 Jun 2014 20:57:57 +0000 (13:57 -0700)]
Clean up the ARM fenv.h, moving implementation details into fenv.c.

Change-Id: I919d35db27ec16a6f54a7a5c3c070f33f03d9bb9

10 years agoMerge "AArch64: libm: Fix ARM64 fenv_t and refactor ARM64 libm implementation."
Elliott Hughes [Mon, 9 Jun 2014 20:54:22 +0000 (20:54 +0000)]
Merge "AArch64: libm: Fix ARM64 fenv_t and refactor ARM64 libm implementation."

10 years agoAArch64: libm: Fix ARM64 fenv_t and refactor ARM64 libm implementation.
Serban Constantinescu [Sun, 8 Jun 2014 15:55:22 +0000 (16:55 +0100)]
AArch64: libm: Fix ARM64 fenv_t and refactor ARM64 libm implementation.

This patch fixes the ARM64 ABI for libm. fenv_t is now split in 32bit status
and 32bit control. This mirrors the AArch64 FPU control and status
registers (FPCR, FPSR).

The patch also refactors the libm implementation for ARM64 into a finer
grained control over the FPU registers.

Bionic-benchmarks has been expanded with 3 more benchmarks for floating
point operations. The new libm implementation for ARM64 performs better
over all the math benchmarks available.

Change-Id: I2a7f81d6b4e55c91f8a63a4c69614fc8b1bcf2db
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
10 years agoMerge "AArch64: Remove Frame Record from ARM64 syscalls"
Elliott Hughes [Mon, 9 Jun 2014 19:29:46 +0000 (19:29 +0000)]
Merge "AArch64: Remove Frame Record from ARM64 syscalls"

10 years agoAArch64: Remove Frame Record from ARM64 syscalls
Serban Constantinescu [Sat, 7 Jun 2014 17:15:49 +0000 (18:15 +0100)]
AArch64: Remove Frame Record from ARM64 syscalls

This patch removes the frame record created on svc calls.

Change-Id: I67cf926ba59540e824fb9749d30538e332df7c1e
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
10 years agoMerge "Add the missing issetugid binary compatibility stub."
Elliott Hughes [Sat, 7 Jun 2014 05:37:25 +0000 (05:37 +0000)]
Merge "Add the missing issetugid binary compatibility stub."

10 years agoAdd a regression test for two libm bugs we didn't have.
Elliott Hughes [Sat, 7 Jun 2014 04:43:33 +0000 (21:43 -0700)]
Add a regression test for two libm bugs we didn't have.

Reported on the OpenBSD list, but we already had the fix for one from FreeBSD,
and I think the other only affected ld80 anyway. Worth having tests thuogh.

Change-Id: Ic4bbeb2384fd578a3ef13e4907be83deda50815f

10 years agoAdd the missing issetugid binary compatibility stub.
Elliott Hughes [Sat, 7 Jun 2014 03:41:42 +0000 (20:41 -0700)]
Add the missing issetugid binary compatibility stub.

Bug: 14569474
Change-Id: I3bedc1a0acf356af76424ceaf62ae7e85239f617

10 years agoMerge "Rewrite and hide longjmperror."
Elliott Hughes [Sat, 7 Jun 2014 03:35:27 +0000 (03:35 +0000)]
Merge "Rewrite and hide longjmperror."

10 years agoMerge "Remove unused scripts."
Christopher Ferris [Sat, 7 Jun 2014 01:45:28 +0000 (01:45 +0000)]
Merge "Remove unused scripts."

10 years agoRewrite and hide longjmperror.
Elliott Hughes [Fri, 6 Jun 2014 23:49:39 +0000 (16:49 -0700)]
Rewrite and hide longjmperror.

This shouldn't be public API, isn't supported on x86/x86_64, and it's
unlikely anyone would have actually seen the message before anyway.
Using __libc_fatal makes it much more likely to be seen.

Bug: 11156955
Change-Id: Icf7f654b22a7dacd89668b60c11e5705c7215c08

10 years agoRemove unused scripts.
Christopher Ferris [Fri, 6 Jun 2014 22:28:42 +0000 (15:28 -0700)]
Remove unused scripts.

Change-Id: I3391d6c903f710b45e62bcf01058cf3ad9abe399

10 years agoMerge "Fix ndk_cruft.cpp __getdents64 build failure."
Elliott Hughes [Fri, 6 Jun 2014 22:25:18 +0000 (22:25 +0000)]
Merge "Fix ndk_cruft.cpp __getdents64 build failure."

10 years agoMerge "Rename __bionic_clone_entry to __start_thread."
Elliott Hughes [Fri, 6 Jun 2014 22:24:44 +0000 (22:24 +0000)]
Merge "Rename __bionic_clone_entry to __start_thread."

10 years agoFix ndk_cruft.cpp __getdents64 build failure.
Elliott Hughes [Fri, 6 Jun 2014 22:24:20 +0000 (15:24 -0700)]
Fix ndk_cruft.cpp __getdents64 build failure.

Change-Id: Ia463113da0575b36b5a9935d8d45e7bd2c801357

10 years agoMerge "Add a few more C11 functions to the whitelist."
Elliott Hughes [Fri, 6 Jun 2014 22:21:17 +0000 (22:21 +0000)]
Merge "Add a few more C11 functions to the whitelist."

10 years agoAdd a few more C11 functions to the whitelist.
Elliott Hughes [Fri, 6 Jun 2014 22:20:50 +0000 (15:20 -0700)]
Add a few more C11 functions to the whitelist.

Change-Id: Ie2e767910d7cc8a78c05e29960cf4ab52a59fe9d

10 years agoRename __bionic_clone_entry to __start_thread.
Elliott Hughes [Fri, 6 Jun 2014 22:18:54 +0000 (15:18 -0700)]
Rename __bionic_clone_entry to __start_thread.

This seems a bit less obscure.

Change-Id: I7dc528c253b73c861694f67556ad8f919bf92136

10 years agoMerge "Remove getdents from bionic."
Elliott Hughes [Fri, 6 Jun 2014 22:17:59 +0000 (22:17 +0000)]
Merge "Remove getdents from bionic."

10 years agoMerge "Update kernel header generation docs."
Christopher Ferris [Fri, 6 Jun 2014 22:10:19 +0000 (22:10 +0000)]
Merge "Update kernel header generation docs."

10 years agoRemove getdents from bionic.
Elliott Hughes [Fri, 6 Jun 2014 18:44:55 +0000 (11:44 -0700)]
Remove getdents from bionic.

Bug: 11156955
Change-Id: I6c306989801be552d85fba8a50dcdc79282fb9d2

10 years agoUpdate kernel header generation docs.
Christopher Ferris [Thu, 5 Jun 2014 18:17:06 +0000 (11:17 -0700)]
Update kernel header generation docs.

Also move the description of the cleanup data to the cleanup script.

Bug: 15433575
Change-Id: I21e2cbbfab55da483af1bbe36bbe59126b518e3c

10 years agoMerge "Fix the printf family for non-ASCII."
Elliott Hughes [Fri, 6 Jun 2014 18:06:44 +0000 (18:06 +0000)]
Merge "Fix the printf family for non-ASCII."

10 years agoFix the printf family for non-ASCII.
Elliott Hughes [Fri, 6 Jun 2014 03:10:09 +0000 (20:10 -0700)]
Fix the printf family for non-ASCII.

The bug here turned out to be that we hadn't increased the constant
corresponding to the maximum number of bytes in a character to match
our new implementation, so any character requiring more than a byte
in UTF-8 would break our printf family.

Bug: 15439554
Change-Id: I693e5e6eb11c640b5886e848502908ec5fff53b1

10 years agoMerge "Remove unnecessary instructions from x86/x86_64 syscalls."
Elliott Hughes [Fri, 6 Jun 2014 01:03:19 +0000 (01:03 +0000)]
Merge "Remove unnecessary instructions from x86/x86_64 syscalls."

10 years agoRemove unnecessary instructions from x86/x86_64 syscalls.
Elliott Hughes [Fri, 6 Jun 2014 00:24:30 +0000 (17:24 -0700)]
Remove unnecessary instructions from x86/x86_64 syscalls.

__set_errno returns -1 exactly so that callers don't need to bother.
The other architectures were already taking advantage of this, but
no one had ever fixed x86 and x86_64.

Change-Id: Ie131494be664f6c4a1bbf8c61bbbed58eac56122

10 years agoMerge "Fix unwinding through x86-64 __bionic_clone."
Elliott Hughes [Thu, 5 Jun 2014 23:38:18 +0000 (23:38 +0000)]
Merge "Fix unwinding through x86-64 __bionic_clone."

10 years agoFix unwinding through x86-64 __bionic_clone.
Elliott Hughes [Thu, 5 Jun 2014 19:28:14 +0000 (12:28 -0700)]
Fix unwinding through x86-64 __bionic_clone.

x86-64 needs these CFI directives to stop unwinding here.
I've also cleaned up the assembler a little, and made x86 and x86-64
a little more alike.

Bug: 15195760
Change-Id: I40f92c007843c29c933bb6876fe2b4611e1b946b

10 years agoMerge "Removes index() from bionic."
Dan Albert [Thu, 5 Jun 2014 21:34:49 +0000 (21:34 +0000)]
Merge "Removes index() from bionic."

10 years agoMerge "Fix for slm-tuned memmove (both 32- and 64-bit)."
Christopher Ferris [Thu, 5 Jun 2014 18:10:59 +0000 (18:10 +0000)]
Merge "Fix for slm-tuned memmove (both 32- and 64-bit)."

10 years agoFix for slm-tuned memmove (both 32- and 64-bit).
Varvara Rainchik [Tue, 27 May 2014 08:41:55 +0000 (12:41 +0400)]
Fix for slm-tuned memmove (both 32- and 64-bit).

Introduce a test for memmove that catches a fault.
Fix both 32- and 64-bit versions of slm-tuned memmove.

Change-Id: Ib416def2610a0972e32c3b9b6055b54967643dc3
Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
10 years agoRemoves index() from bionic.
Dan Albert [Wed, 4 Jun 2014 15:53:33 +0000 (08:53 -0700)]
Removes index() from bionic.

This function has been removed from POSIX.

Unfortunately, we can't leave #define index(a, b) strchr((a), (b)) in its place
because defining a preprocessor macro for index() breaks a whole lot of code.

Bug: 13935372
Change-Id: Ifda348acde06da61c12e7ee2f8fe6950a3174dd1

10 years agoMerge "Remove bsd_signal and sysv_signal from bionic LP64."
Dan Albert [Thu, 5 Jun 2014 18:03:45 +0000 (18:03 +0000)]
Merge "Remove bsd_signal and sysv_signal from bionic LP64."

10 years agoRemove bsd_signal and sysv_signal from bionic LP64.
Dan Albert [Wed, 4 Jun 2014 17:14:19 +0000 (10:14 -0700)]
Remove bsd_signal and sysv_signal from bionic LP64.

bsd_signal was removed in POSIX 2008, sysv_signal was never POSIX.

Bug: 13935372
Change-Id: I7688e5cc317247ff075dcf99b598f515fb4f15c4

10 years agoMerge "Hide __libc_fini."
Elliott Hughes [Thu, 5 Jun 2014 03:24:24 +0000 (03:24 +0000)]
Merge "Hide __libc_fini."

10 years agoMerge "Revert "Remove ftime from bionic LP64""
Dan Albert [Thu, 5 Jun 2014 00:50:56 +0000 (00:50 +0000)]
Merge "Revert "Remove ftime from bionic LP64""

10 years agoRevert "Remove ftime from bionic LP64"
Dan Albert [Thu, 5 Jun 2014 00:50:43 +0000 (00:50 +0000)]
Revert "Remove ftime from bionic LP64"

Breaking some build... will look in to it later.

This reverts commit 26d6799bbe170b0955f564974b584c1471efdca1.

Change-Id: I35fa770221be3a181bd37c6c3dce1bf37a69a4a1

10 years agoMerge "Remove ftime from bionic LP64"
Dan Albert [Wed, 4 Jun 2014 23:42:26 +0000 (23:42 +0000)]
Merge "Remove ftime from bionic LP64"

10 years agoHide __libc_fini.
Elliott Hughes [Wed, 4 Jun 2014 23:29:37 +0000 (16:29 -0700)]
Hide __libc_fini.

Bug: 11156955
Change-Id: Id5af3540c6ec4d9ef969d62a230144fe8bb76b0b

10 years agoRemove ftime from bionic LP64
Dan Albert [Wed, 4 Jun 2014 22:20:17 +0000 (15:20 -0700)]
Remove ftime from bionic LP64

Bug: 13935372
Change-Id: I5dd31147143b23a090a3b75b846dc5354e599121

10 years agoRevert "Temporarily expose dlmalloc_usable_size."
Elliott Hughes [Wed, 4 Jun 2014 23:14:48 +0000 (23:14 +0000)]
Revert "Temporarily expose dlmalloc_usable_size."

This reverts commit 6403cc48707b67b3400bdaf720f3e4777a1b48de.

Change-Id: Id1ce4088be1e6c83271c6317eb3e5f7fc11c7b95

10 years agoMerge "Temporarily expose dlmalloc_usable_size."
Elliott Hughes [Wed, 4 Jun 2014 23:11:06 +0000 (23:11 +0000)]
Merge "Temporarily expose dlmalloc_usable_size."

10 years agoTemporarily expose dlmalloc_usable_size.
Elliott Hughes [Wed, 4 Jun 2014 23:08:17 +0000 (16:08 -0700)]
Temporarily expose dlmalloc_usable_size.

Bug: 15425694
Change-Id: I47e1ca598817359260c372fec8072e76886054f0

10 years agoMerge "Temporary fix for asan_malloc_linux.cc build failure."
Elliott Hughes [Wed, 4 Jun 2014 22:21:12 +0000 (22:21 +0000)]
Merge "Temporary fix for asan_malloc_linux.cc build failure."

10 years agoTemporary fix for asan_malloc_linux.cc build failure.
Elliott Hughes [Wed, 4 Jun 2014 22:18:36 +0000 (15:18 -0700)]
Temporary fix for asan_malloc_linux.cc build failure.

Bug: 15432753
Change-Id: I02a3a2c826e6d01e6809c51588a9670dcd179123

10 years agoMerge "Fix debug malloc."
Elliott Hughes [Wed, 4 Jun 2014 21:10:55 +0000 (21:10 +0000)]
Merge "Fix debug malloc."

10 years agoFix debug malloc.
Elliott Hughes [Wed, 4 Jun 2014 19:07:11 +0000 (12:07 -0700)]
Fix debug malloc.

Previously the dynamically-loaded part of the debug malloc implementation
wanted to access hidden symbols in libc itself.

Bug: 15426546
Change-Id: I6a366ef626854d1af1d705ca24842817b1c02a19

10 years agoMerge "Removes wcswcs from bionic for LP64."
Dan Albert [Wed, 4 Jun 2014 20:59:10 +0000 (20:59 +0000)]
Merge "Removes wcswcs from bionic for LP64."

10 years agoRemoves wcswcs from bionic for LP64.
Dan Albert [Wed, 4 Jun 2014 16:53:06 +0000 (09:53 -0700)]
Removes wcswcs from bionic for LP64.

Bug: 13935372
Change-Id: I0deb15e769da4fa81bb65a87f3c86db5163a5796

10 years agoMerge "Cherrypick upstream OpenBSD's vfwprintf.c revision 1.11."
Elliott Hughes [Wed, 4 Jun 2014 16:17:09 +0000 (16:17 +0000)]
Merge "Cherrypick upstream OpenBSD's vfwprintf.c revision 1.11."

10 years agoMerge "Adds functionality specified by uchar.h"
Dan Albert [Wed, 4 Jun 2014 16:10:50 +0000 (16:10 +0000)]
Merge "Adds functionality specified by uchar.h"

10 years agoCherrypick upstream OpenBSD's vfwprintf.c revision 1.11.
Elliott Hughes [Wed, 4 Jun 2014 16:00:25 +0000 (09:00 -0700)]
Cherrypick upstream OpenBSD's vfwprintf.c revision 1.11.

revision 1.11
date: 2014/06/04 07:45:25;  author: stsp;  state: Exp;  lines: +1 -7;  commitid:
 zJPRH5RUO224FmQu;
Remove assigned but unused local variables and macro from vfwprintf().
Found by Elliott @ google
ok mpi@

Change-Id: I716edc0c4d736a484a5317942de8e87bd8c6fd26

10 years agoAdds functionality specified by uchar.h
Dan Albert [Mon, 2 Jun 2014 18:33:04 +0000 (11:33 -0700)]
Adds functionality specified by uchar.h

mbrtoc32 and c32rtomb get their implementations from mbrtowc and wcrtomb. The
wc functions now simply call the c32 functions.

Bug: 14646575
Change-Id: I49d4b95fed0f9d790260c996c4d0f8bfd1686324

10 years agoMerge "Hide dlmalloc symbols."
Elliott Hughes [Wed, 4 Jun 2014 03:30:36 +0000 (03:30 +0000)]
Merge "Hide dlmalloc symbols."

10 years agoHide dlmalloc symbols.
Elliott Hughes [Wed, 4 Jun 2014 01:47:17 +0000 (18:47 -0700)]
Hide dlmalloc symbols.

We need to leave dlmalloc_trim and dlmalloc_inspect_all exposed for
the VM, but if we're seriously looking at other malloc implementations,
that's something we're going to have to fix.

Bug: 11156955
Change-Id: If85156c280044f1616c09a3c50ba674aaf0e8d3a

10 years agoMerge "Removes bcopy and bzero from bionic."
Dan Albert [Wed, 4 Jun 2014 01:00:40 +0000 (01:00 +0000)]
Merge "Removes bcopy and bzero from bionic."

10 years agoRemoves bcopy and bzero from bionic.
Dan Albert [Tue, 3 Jun 2014 18:35:48 +0000 (11:35 -0700)]
Removes bcopy and bzero from bionic.

These symbols are still defined for LP32 for binary compatibility, but
the declarations have been replaced with the POSIX recommended #defines.

Bug: 13935372
Change-Id: Ief7e6ca012db374588ba5839f11e8f3a13a20467

10 years agoMerge "Work around "error: variable 'uio' set but not used"."
Elliott Hughes [Tue, 3 Jun 2014 23:41:35 +0000 (23:41 +0000)]
Merge "Work around "error: variable 'uio' set but not used"."

10 years agoWork around "error: variable 'uio' set but not used".
Elliott Hughes [Tue, 3 Jun 2014 23:39:58 +0000 (16:39 -0700)]
Work around "error: variable 'uio' set but not used".

I've sent the real fix upstream, and will merge that when they commit it.

Change-Id: I75e5cab87026f8990c585d364dd178753d727e2a

10 years agoMerge "Remove an unused parameter from the dlopen implementation."
Elliott Hughes [Tue, 3 Jun 2014 23:36:35 +0000 (23:36 +0000)]
Merge "Remove an unused parameter from the dlopen implementation."

10 years agoRemove an unused parameter from the dlopen implementation.
Elliott Hughes [Tue, 3 Jun 2014 23:23:08 +0000 (16:23 -0700)]
Remove an unused parameter from the dlopen implementation.

Change-Id: I9297913a743bb570b48ebbe594ff711a481e89e0

10 years agoMerge "Turn on -Wunused and fix the mistakes it uncovers."
Elliott Hughes [Tue, 3 Jun 2014 23:14:20 +0000 (23:14 +0000)]
Merge "Turn on -Wunused and fix the mistakes it uncovers."

10 years agoTurn on -Wunused and fix the mistakes it uncovers.
Elliott Hughes [Tue, 3 Jun 2014 22:22:34 +0000 (15:22 -0700)]
Turn on -Wunused and fix the mistakes it uncovers.

Change-Id: I023d2d8b547fbc21d4124bb7510d42b06a0dc501

10 years agoMerge "Use __libc_fatal() for failed malloc in new"
Dan Albert [Tue, 3 Jun 2014 16:53:46 +0000 (16:53 +0000)]
Merge "Use __libc_fatal() for failed malloc in new"

10 years agoUse __libc_fatal() for failed malloc in new
Dan Albert [Fri, 30 May 2014 23:00:53 +0000 (16:00 -0700)]
Use __libc_fatal() for failed malloc in new

This way we can print a useful message to the log isntead of just dying
mysteriously.

Change-Id: Ib660c2fd8ce8bb9aa0d0bb634ae08c645d3901e5

10 years agoam 2deef73f: Merge "Avoid a system call in \'gettid\'."
Elliott Hughes [Mon, 2 Jun 2014 17:48:53 +0000 (17:48 +0000)]
am 2deef73f: Merge "Avoid a system call in \'gettid\'."

* commit '2deef73fe1e9dbf57b683a15fd1e0c2922e6ecc0':
  Avoid a system call in 'gettid'.

10 years agoMerge "Avoid a system call in 'gettid'."
Elliott Hughes [Mon, 2 Jun 2014 17:43:27 +0000 (17:43 +0000)]
Merge "Avoid a system call in 'gettid'."

10 years agoAvoid a system call in 'gettid'.
Elliott Hughes [Sat, 31 May 2014 02:00:03 +0000 (19:00 -0700)]
Avoid a system call in 'gettid'.

System calls can be pretty slow. This is mako, which has one of our
lowest latencies:

                       iterations      ns/op
  BM_unistd_getpid       10000000        209
  BM_unistd_gettid      200000000          8

Bug: 15297299 (kernel panic from too many gettid calls)
Bug: 15315766 (excessive gettid overhead in liblogd)
Change-Id: I49656c0fc5b5d092390264a59e4f2c0d8a8b1aeb

10 years agoam 831405b7: Merge "Make atexit.dlclose work for glibc"
Dmitriy Ivanov [Sat, 31 May 2014 01:31:26 +0000 (01:31 +0000)]
am 831405b7: Merge "Make atexit.dlclose work for glibc"

* commit '831405b749d15a11fb947a40d61fd858e952d860':
  Make atexit.dlclose work for glibc