OSDN Git Service

android-x86/bionic.git
11 years agoMerge "libc/arm: add cortex-a7 cpu variant" into jb-mr2-dev
Dima Zavin [Mon, 25 Mar 2013 19:42:28 +0000 (19:42 +0000)]
Merge "libc/arm: add cortex-a7 cpu variant" into jb-mr2-dev

11 years agoam 3c1504d9: am 48f25cef: Merge "Stop generating <sys/linux-syscalls.h>."
Elliott Hughes [Mon, 25 Mar 2013 17:24:42 +0000 (10:24 -0700)]
am 3c1504d9: am 48f25cef: Merge "Stop generating <sys/linux-syscalls.h>."

* commit '3c1504d9d7d529b8281a447dc69af3ecf6b5ec83':
  Stop generating <sys/linux-syscalls.h>.

11 years agoam 93f3811b: am a4075118: Merge "Unhide __set_errno for backwards compatibility."
Elliott Hughes [Mon, 25 Mar 2013 17:24:42 +0000 (10:24 -0700)]
am 93f3811b: am a4075118: Merge "Unhide __set_errno for backwards compatibility."

* commit '93f3811b744b2100d0f259916876965c242cd3d9':
  Unhide __set_errno for backwards compatibility.

11 years agoam 48f25cef: Merge "Stop generating <sys/linux-syscalls.h>."
Elliott Hughes [Mon, 25 Mar 2013 17:22:43 +0000 (10:22 -0700)]
am 48f25cef: Merge "Stop generating <sys/linux-syscalls.h>."

* commit '48f25cef45f8f68567d528a5d833ed45cb760bec':
  Stop generating <sys/linux-syscalls.h>.

11 years agoam a4075118: Merge "Unhide __set_errno for backwards compatibility."
Elliott Hughes [Mon, 25 Mar 2013 17:22:43 +0000 (10:22 -0700)]
am a4075118: Merge "Unhide __set_errno for backwards compatibility."

* commit 'a40751185f3a7245f73afb45382c23f71dbbcfc3':
  Unhide __set_errno for backwards compatibility.

11 years agoMerge "Stop generating <sys/linux-syscalls.h>."
Elliott Hughes [Mon, 25 Mar 2013 17:13:25 +0000 (17:13 +0000)]
Merge "Stop generating <sys/linux-syscalls.h>."

11 years agoMerge "Unhide __set_errno for backwards compatibility."
Elliott Hughes [Mon, 25 Mar 2013 17:12:19 +0000 (17:12 +0000)]
Merge "Unhide __set_errno for backwards compatibility."

11 years agolibc/arm: add cortex-a7 cpu variant
Dima Zavin [Sat, 23 Mar 2013 08:38:22 +0000 (01:38 -0700)]
libc/arm: add cortex-a7 cpu variant

Change-Id: I541d665805ea69ca96bb6a5f4d50e56287f8c08c
Signed-off-by: Dima Zavin <dima@android.com>
11 years agoUnhide __set_errno for backwards compatibility.
Elliott Hughes [Sat, 23 Mar 2013 02:12:52 +0000 (19:12 -0700)]
Unhide __set_errno for backwards compatibility.

This was in <errno.h>, and people called it :-(

Change-Id: I038490be77eb9372b3f31305ec580fa7b09c983e

11 years agoStop generating <sys/linux-syscalls.h>.
Elliott Hughes [Sat, 23 Mar 2013 01:56:24 +0000 (18:56 -0700)]
Stop generating <sys/linux-syscalls.h>.

The <asm/unistd.h> files contain the canonical data, and
<sys/glibc-syscalls.h> contain new glibc-compatible names,
and if you #include the standard <sys/syscall.h> you get
both sets of names.

Change-Id: I9919c080931c0ba1660f5e37c6a6265ea716d603

11 years agoam a3fe475c: am c019345a: Merge "Use the correct names for the __ARM_NR_* syscalls."
Elliott Hughes [Fri, 22 Mar 2013 22:09:13 +0000 (15:09 -0700)]
am a3fe475c: am c019345a: Merge "Use the correct names for the __ARM_NR_* syscalls."

* commit 'a3fe475c9ff444f45eb3c4dd7fd462326dfdb13d':
  Use the correct names for the __ARM_NR_* syscalls.

11 years agoam c019345a: Merge "Use the correct names for the __ARM_NR_* syscalls."
Elliott Hughes [Fri, 22 Mar 2013 22:07:06 +0000 (15:07 -0700)]
am c019345a: Merge "Use the correct names for the __ARM_NR_* syscalls."

* commit 'c019345a3a0f3ee8561e595917b75d6419ee4cc8':
  Use the correct names for the __ARM_NR_* syscalls.

11 years agoMerge "Use the correct names for the __ARM_NR_* syscalls."
Elliott Hughes [Fri, 22 Mar 2013 21:50:49 +0000 (21:50 +0000)]
Merge "Use the correct names for the __ARM_NR_* syscalls."

11 years agoUse the correct names for the __ARM_NR_* syscalls.
Elliott Hughes [Fri, 22 Mar 2013 20:50:44 +0000 (13:50 -0700)]
Use the correct names for the __ARM_NR_* syscalls.

This lets us move all the ARM syscall stubs over to the kernel <asm/unistd.h>.
Our generated <sys/linux-syscalls.h> is now unused, but I'll remove that in a
later change.

Change-Id: Ie5ff2cc4abce1938576af7cbaef615a79c7f310d

11 years agoam 65163750: am c37dd599: Merge "Fix builds where _FORTIFY_SOURCE is off."
Elliott Hughes [Fri, 22 Mar 2013 18:20:22 +0000 (11:20 -0700)]
am 65163750: am c37dd599: Merge "Fix builds where _FORTIFY_SOURCE is off."

* commit '65163750b11c814d6a75940ab1ede1e907b14d81':
  Fix builds where _FORTIFY_SOURCE is off.

11 years agoam c37dd599: Merge "Fix builds where _FORTIFY_SOURCE is off."
Elliott Hughes [Fri, 22 Mar 2013 18:18:26 +0000 (11:18 -0700)]
am c37dd599: Merge "Fix builds where _FORTIFY_SOURCE is off."

* commit 'c37dd599561ac07a895bc435d818f000054a498d':
  Fix builds where _FORTIFY_SOURCE is off.

11 years agoam 85598626: am 34895c1b: Merge "Replace unnecessary ARM uses of <sys/linux-syscalls...
Elliott Hughes [Fri, 22 Mar 2013 18:11:34 +0000 (11:11 -0700)]
am 85598626: am 34895c1b: Merge "Replace unnecessary ARM uses of <sys/linux-syscalls.h> with <asm/unistd.h>."

* commit '85598626f4ca7914d996371ce0471ab154aa7585':
  Replace unnecessary ARM uses of <sys/linux-syscalls.h> with <asm/unistd.h>.

11 years agoMerge "Fix builds where _FORTIFY_SOURCE is off."
Elliott Hughes [Fri, 22 Mar 2013 18:01:50 +0000 (18:01 +0000)]
Merge "Fix builds where _FORTIFY_SOURCE is off."

11 years agoam 34895c1b: Merge "Replace unnecessary ARM uses of <sys/linux-syscalls.h> with ...
Elliott Hughes [Fri, 22 Mar 2013 17:59:57 +0000 (10:59 -0700)]
am 34895c1b: Merge "Replace unnecessary ARM uses of <sys/linux-syscalls.h> with <asm/unistd.h>."

* commit '34895c1bdfa5df48ee9a7b4368b6def403f24cf1':
  Replace unnecessary ARM uses of <sys/linux-syscalls.h> with <asm/unistd.h>.

11 years agoFix builds where _FORTIFY_SOURCE is off.
Elliott Hughes [Fri, 22 Mar 2013 17:58:55 +0000 (10:58 -0700)]
Fix builds where _FORTIFY_SOURCE is off.

Also add a more intention-revealing guard so we don't have loads of
places checking whether our inlining macro is defined.

Change-Id: I168860cedcfc798b07a5145bc48a125700265e47

11 years agoMerge "Replace unnecessary ARM uses of <sys/linux-syscalls.h> with <asm/unistd.h>."
Elliott Hughes [Fri, 22 Mar 2013 17:51:42 +0000 (17:51 +0000)]
Merge "Replace unnecessary ARM uses of <sys/linux-syscalls.h> with <asm/unistd.h>."

11 years agoam b80a05fa: am 5c5f303e: Merge "Replace unnecessary MIPS uses of <sys/linux-syscalls...
Elliott Hughes [Fri, 22 Mar 2013 16:43:28 +0000 (09:43 -0700)]
am b80a05fa: am 5c5f303e: Merge "Replace unnecessary MIPS uses of <sys/linux-syscalls.h> with <asm/unistd.h>."

* commit 'b80a05fa678b287f46dc596353d285a9a7d09fbc':
  Replace unnecessary MIPS uses of <sys/linux-syscalls.h> with <asm/unistd.h>.

11 years agoam bc0d7f73: am e7cb795c: Merge "Replace unnecessary x86 uses of <sys/linux-syscalls...
Elliott Hughes [Fri, 22 Mar 2013 16:43:28 +0000 (09:43 -0700)]
am bc0d7f73: am e7cb795c: Merge "Replace unnecessary x86 uses of <sys/linux-syscalls.h> with <asm/unistd.h>."

* commit 'bc0d7f736c2c66868844f2b5c9e6507d3e7a7982':
  Replace unnecessary x86 uses of <sys/linux-syscalls.h> with <asm/unistd.h>.

11 years agoam 5c5f303e: Merge "Replace unnecessary MIPS uses of <sys/linux-syscalls.h> with...
Elliott Hughes [Fri, 22 Mar 2013 16:41:46 +0000 (09:41 -0700)]
am 5c5f303e: Merge "Replace unnecessary MIPS uses of <sys/linux-syscalls.h> with <asm/unistd.h>."

* commit '5c5f303e4c661a71ae8e4c7fd99fc7674360321e':
  Replace unnecessary MIPS uses of <sys/linux-syscalls.h> with <asm/unistd.h>.

11 years agoam e7cb795c: Merge "Replace unnecessary x86 uses of <sys/linux-syscalls.h> with ...
Elliott Hughes [Fri, 22 Mar 2013 16:41:46 +0000 (09:41 -0700)]
am e7cb795c: Merge "Replace unnecessary x86 uses of <sys/linux-syscalls.h> with <asm/unistd.h>."

* commit 'e7cb795cb639ef4e04b0417ebf4b16b12ea5dc4e':
  Replace unnecessary x86 uses of <sys/linux-syscalls.h> with <asm/unistd.h>.

11 years agoMerge "Replace unnecessary MIPS uses of <sys/linux-syscalls.h> with <asm/unistd.h>."
Elliott Hughes [Fri, 22 Mar 2013 16:30:56 +0000 (16:30 +0000)]
Merge "Replace unnecessary MIPS uses of <sys/linux-syscalls.h> with <asm/unistd.h>."

11 years agoMerge "Replace unnecessary x86 uses of <sys/linux-syscalls.h> with <asm/unistd.h>."
Elliott Hughes [Fri, 22 Mar 2013 16:30:36 +0000 (16:30 +0000)]
Merge "Replace unnecessary x86 uses of <sys/linux-syscalls.h> with <asm/unistd.h>."

11 years agoReplace unnecessary ARM uses of <sys/linux-syscalls.h> with <asm/unistd.h>.
Elliott Hughes [Fri, 22 Mar 2013 05:43:25 +0000 (22:43 -0700)]
Replace unnecessary ARM uses of <sys/linux-syscalls.h> with <asm/unistd.h>.

For some reason, socketcalls.c was only being compiled for ARM, where
it makes no sense. For x86 we generate stubs for the socket functions
that use __NR_socketcall directly.

Change-Id: I84181e6183fae2314ae3ed862276eba82ad21e8e

11 years agoam 5686bb30: am 3323628d: Merge "The SYS_ constants should cover all __NR_ values."
Elliott Hughes [Fri, 22 Mar 2013 05:54:49 +0000 (22:54 -0700)]
am 5686bb30: am 3323628d: Merge "The SYS_ constants should cover all __NR_ values."

* commit '5686bb300304f5de0597f356c6da72b8a090a647':
  The SYS_ constants should cover all __NR_ values.

11 years agoam 3323628d: Merge "The SYS_ constants should cover all __NR_ values."
Elliott Hughes [Fri, 22 Mar 2013 05:53:44 +0000 (22:53 -0700)]
am 3323628d: Merge "The SYS_ constants should cover all __NR_ values."

* commit '3323628d635d3973965ee458c1fee7d8ab45136f':
  The SYS_ constants should cover all __NR_ values.

11 years agoReplace unnecessary MIPS uses of <sys/linux-syscalls.h> with <asm/unistd.h>.
Elliott Hughes [Fri, 22 Mar 2013 05:52:25 +0000 (22:52 -0700)]
Replace unnecessary MIPS uses of <sys/linux-syscalls.h> with <asm/unistd.h>.

Change-Id: I193a35f9790b82c83fd3b5672e24ac1b2034d0b0

11 years agoReplace unnecessary x86 uses of <sys/linux-syscalls.h> with <asm/unistd.h>.
Elliott Hughes [Fri, 22 Mar 2013 05:48:18 +0000 (22:48 -0700)]
Replace unnecessary x86 uses of <sys/linux-syscalls.h> with <asm/unistd.h>.

Change-Id: I9d016ee8e8329cccf244d27c336d9524348af996

11 years agoMerge "The SYS_ constants should cover all __NR_ values."
Elliott Hughes [Fri, 22 Mar 2013 05:39:05 +0000 (05:39 +0000)]
Merge "The SYS_ constants should cover all __NR_ values."

11 years agoThe SYS_ constants should cover all __NR_ values.
Elliott Hughes [Fri, 22 Mar 2013 05:15:06 +0000 (22:15 -0700)]
The SYS_ constants should cover all __NR_ values.

<sys/linux-syscalls.h> only contains constants for the syscalls
we're generating stubs for. We want all the syscalls available
on the architecture in question.

Keep using <sys/linux-syscalls.h> on ARM for now because the
__NR_ARM_set_tls and __NR_ARM_cacheflush values aren't in <asm/unistd.h>.

Change-Id: I66683950d87d9b18d6107d0acc0ed238a4496f44

11 years agoam a3167257: am babb72dc: Merge "Fix pthread_setname_np\'s behavior on invalid pthrea...
Elliott Hughes [Fri, 22 Mar 2013 05:22:49 +0000 (22:22 -0700)]
am a3167257: am babb72dc: Merge "Fix pthread_setname_np\'s behavior on invalid pthread_ts."

* commit 'a316725740ac123de65e225f5bfbf99450f66e6b':
  Fix pthread_setname_np's behavior on invalid pthread_ts.

11 years agoam babb72dc: Merge "Fix pthread_setname_np\'s behavior on invalid pthread_ts."
Elliott Hughes [Fri, 22 Mar 2013 05:20:53 +0000 (22:20 -0700)]
am babb72dc: Merge "Fix pthread_setname_np\'s behavior on invalid pthread_ts."

* commit 'babb72dc292a567674f6d7d2ccf7f63edaf77b80':
  Fix pthread_setname_np's behavior on invalid pthread_ts.

11 years agoMerge "Fix pthread_setname_np's behavior on invalid pthread_ts."
Elliott Hughes [Fri, 22 Mar 2013 05:11:35 +0000 (05:11 +0000)]
Merge "Fix pthread_setname_np's behavior on invalid pthread_ts."

11 years agoFix pthread_setname_np's behavior on invalid pthread_ts.
Elliott Hughes [Fri, 22 Mar 2013 03:02:35 +0000 (20:02 -0700)]
Fix pthread_setname_np's behavior on invalid pthread_ts.

Change-Id: I0a154beaab4d164ac812f2564d12e4d79b80a8e8

11 years agoam a596aa6a: am 26c815c4: Merge "Drop magic number in strrchr and strchr"
Elliott Hughes [Fri, 22 Mar 2013 02:58:23 +0000 (19:58 -0700)]
am a596aa6a: am 26c815c4: Merge "Drop magic number in strrchr and strchr"

* commit 'a596aa6abfdd8ecdb4bcdd9bcad24a19adcf7525':
  Drop magic number in strrchr and strchr

11 years agoam 01c0e19e: am 612333f6: Merge "Don\'t #define SYS_ constants unless they make sense...
Elliott Hughes [Fri, 22 Mar 2013 02:58:22 +0000 (19:58 -0700)]
am 01c0e19e: am 612333f6: Merge "Don\'t #define SYS_ constants unless they make sense for the current architecture."

* commit '01c0e19e426df5620c5ca822ab546907dbf1fa7d':
  Don't #define SYS_ constants unless they make sense for the current architecture.

11 years agoam 26c815c4: Merge "Drop magic number in strrchr and strchr"
Elliott Hughes [Fri, 22 Mar 2013 02:56:39 +0000 (19:56 -0700)]
am 26c815c4: Merge "Drop magic number in strrchr and strchr"

* commit '26c815c489197259e3692d4a1e35463989f7c7a3':
  Drop magic number in strrchr and strchr

11 years agoam 612333f6: Merge "Don\'t #define SYS_ constants unless they make sense for the...
Elliott Hughes [Fri, 22 Mar 2013 02:56:38 +0000 (19:56 -0700)]
am 612333f6: Merge "Don\'t #define SYS_ constants unless they make sense for the current architecture."

* commit '612333f671a59d98fad6f594f5bf657dbd6c9c4d':
  Don't #define SYS_ constants unless they make sense for the current architecture.

11 years agoMerge "Drop magic number in strrchr and strchr"
Elliott Hughes [Fri, 22 Mar 2013 02:48:32 +0000 (02:48 +0000)]
Merge "Drop magic number in strrchr and strchr"

11 years agoMerge "Don't #define SYS_ constants unless they make sense for the current architecture."
Elliott Hughes [Fri, 22 Mar 2013 02:46:22 +0000 (02:46 +0000)]
Merge "Don't #define SYS_ constants unless they make sense for the current architecture."

11 years agoDon't #define SYS_ constants unless they make sense for the current architecture.
Elliott Hughes [Fri, 22 Mar 2013 02:43:54 +0000 (19:43 -0700)]
Don't #define SYS_ constants unless they make sense for the current architecture.

Fixes the MIPS and x86 builds. strace tests whether syscalls
are supported using #ifdef of the appropriate SYS_ constant.

Change-Id: I90be118dc42abfdaf5b0f9b1e676e8601f55106e

11 years agoam c48968d2: am 4453c51c: Merge "Drop unnecessary execution permission for .cpp/...
Elliott Hughes [Fri, 22 Mar 2013 02:40:15 +0000 (19:40 -0700)]
am c48968d2: am 4453c51c: Merge "Drop unnecessary execution permission for .cpp/.c/.h"

* commit 'c48968d268820ee64986f738e227910b29290eab':
  Drop unnecessary execution permission for .cpp/.c/.h

11 years agoam 4453c51c: Merge "Drop unnecessary execution permission for .cpp/.c/.h"
Elliott Hughes [Fri, 22 Mar 2013 02:38:53 +0000 (19:38 -0700)]
am 4453c51c: Merge "Drop unnecessary execution permission for .cpp/.c/.h"

* commit '4453c51c8269457b337578f809670d0fdb755132':
  Drop unnecessary execution permission for .cpp/.c/.h

11 years agoMerge "Drop unnecessary execution permission for .cpp/.c/.h"
Elliott Hughes [Fri, 22 Mar 2013 02:30:28 +0000 (02:30 +0000)]
Merge "Drop unnecessary execution permission for .cpp/.c/.h"

11 years agoDrop unnecessary execution permission for .cpp/.c/.h
Kito Cheng [Fri, 22 Mar 2013 02:25:56 +0000 (10:25 +0800)]
Drop unnecessary execution permission for .cpp/.c/.h

Change-Id: I9ac2b9d8f6bdb4fab8962210c5ec8f9c3e8c0ebf

11 years agoDrop magic number in strrchr and strchr
Kito Cheng [Fri, 22 Mar 2013 02:16:14 +0000 (10:16 +0800)]
Drop magic number in strrchr and strchr

Change-Id: Ic7391be8575eaaac76914dab62bc41c9773d703d

11 years agoam f977d2dc: am 800ad824: Merge "Provide glibc-compatible SYS_* aliases for the __NR_...
Elliott Hughes [Fri, 22 Mar 2013 01:51:51 +0000 (18:51 -0700)]
am f977d2dc: am 800ad824: Merge "Provide glibc-compatible SYS_* aliases for the __NR_* constants."

* commit 'f977d2dc1dce28a517329e8b4990ebee696faec1':
  Provide glibc-compatible SYS_* aliases for the __NR_* constants.

11 years agoam 800ad824: Merge "Provide glibc-compatible SYS_* aliases for the __NR_* constants."
Elliott Hughes [Fri, 22 Mar 2013 01:49:24 +0000 (18:49 -0700)]
am 800ad824: Merge "Provide glibc-compatible SYS_* aliases for the __NR_* constants."

* commit '800ad8249a398e94d039b6f6597e2a51558e41dd':
  Provide glibc-compatible SYS_* aliases for the __NR_* constants.

11 years agoMerge "Provide glibc-compatible SYS_* aliases for the __NR_* constants."
Elliott Hughes [Fri, 22 Mar 2013 01:41:57 +0000 (01:41 +0000)]
Merge "Provide glibc-compatible SYS_* aliases for the __NR_* constants."

11 years agoProvide glibc-compatible SYS_* aliases for the __NR_* constants.
Elliott Hughes [Fri, 22 Mar 2013 01:06:55 +0000 (18:06 -0700)]
Provide glibc-compatible SYS_* aliases for the __NR_* constants.

This helps us remove another external/strace bionic hack.

Change-Id: I3e82c0d2fd27e479be98f096e05b666fd16f8eb3

11 years agoam 39e2a408: am 6eb978c9: Merge "Expose wait4 as wait4 rather than __wait4."
Elliott Hughes [Thu, 21 Mar 2013 23:19:29 +0000 (16:19 -0700)]
am 39e2a408: am 6eb978c9: Merge "Expose wait4 as wait4 rather than __wait4."

* commit '39e2a408a64bd24fb0fe7f5eb444b55af1160480':
  Expose wait4 as wait4 rather than __wait4.

11 years agoam 6eb978c9: Merge "Expose wait4 as wait4 rather than __wait4."
Elliott Hughes [Thu, 21 Mar 2013 23:18:22 +0000 (16:18 -0700)]
am 6eb978c9: Merge "Expose wait4 as wait4 rather than __wait4."

* commit '6eb978c9bf02d2bcdece2826577cc65900030690':
  Expose wait4 as wait4 rather than __wait4.

11 years agoMerge "Expose wait4 as wait4 rather than __wait4."
Elliott Hughes [Thu, 21 Mar 2013 23:14:47 +0000 (23:14 +0000)]
Merge "Expose wait4 as wait4 rather than __wait4."

11 years agoExpose wait4 as wait4 rather than __wait4.
Elliott Hughes [Thu, 21 Mar 2013 22:43:53 +0000 (15:43 -0700)]
Expose wait4 as wait4 rather than __wait4.

This helps strace(1) compile with one fewer hack.

Change-Id: I5296d0cfec5546709cda990abd705ad33d7c4626

11 years agoam 9088af19: am 86c31849: Merge "Create arch specific versions of strcmp."
Christopher Ferris [Wed, 20 Mar 2013 22:33:54 +0000 (15:33 -0700)]
am 9088af19: am 86c31849: Merge "Create arch specific versions of strcmp."

* commit '9088af19b45d1b7339b982c92ef9113337f5d2c6':
  Create arch specific versions of strcmp.

11 years agoam 86c31849: Merge "Create arch specific versions of strcmp."
Christopher Ferris [Wed, 20 Mar 2013 22:29:06 +0000 (15:29 -0700)]
am 86c31849: Merge "Create arch specific versions of strcmp."

* commit '86c318497270c80a3791b4cd9835367653636377':
  Create arch specific versions of strcmp.

11 years agoMerge "Create arch specific versions of strcmp."
Christopher Ferris [Wed, 20 Mar 2013 22:14:48 +0000 (22:14 +0000)]
Merge "Create arch specific versions of strcmp."

11 years agoCreate arch specific versions of strcmp.
Christopher Ferris [Sat, 9 Mar 2013 00:50:31 +0000 (16:50 -0800)]
Create arch specific versions of strcmp.

This uses the new strcmp.a15.S code as the basis for new versions
of strcmp.S.

The cortex-a15 code is the performance optimized version of strcmp.a15.S
taken with only the addition of a few pld instructions.
The cortex-a9 code is the same as the cortex-a15 code except that the
unaligned strcmp code was taken from the original strcmp.S.
The krait code is the same as the cortex-a15 code except that one path
in the unaligned strcmp code was taken from the original strcmp.S code
(the 2 byte overlap case).
The generic code is the original unmodified strmp.S from the bionic
subdirectory.

All three new versions underwent these test cases:

Strings the same, all same size:
- Both pointers double word aligned.
- One pointer double word aligned, one pointer word aligned.
- Both pointers word aligned.
- One pointer double word aligned, one pointer 1 off a word alignment.
- One pointer double word aligned, one pointer 2 off a word alignment.
- One pointer double word aligned, one pointer 3 off a word alignment.
- One pointer word aligned, one pointer 1 off a word alignment.
- One pointer word aligned, one pointer 2 off a word alignment.
- One pointer word aligned, one pointer 3 off a word alignment.
For all cases where it made sense, the two pointers were also tested
swapped.

Different strings, all same size:
- Single difference at double word boundary.
- Single difference at word boudary.
- Single difference at 1 off a word alignment.
- Single difference at 2 off a word alignment.
- Single difference at 3 off a word alignment.

Different sized strings, strings the same until the end:
- Shorter string ends on a double word boundary.
- Shorter string ends on word boundary.
- Shorter string ends at 1 off a word boundary.
- Shorter string ends at 2 off a word boundary.
- Shorter string ends at 3 off a word boundary.

For all different cases, run them through the same pointer alignment
cases when the strings are the same size.
For all cases the two pointers were also tested swapped.

Bug: 8005082

Merge from internal master.

(cherry-picked from commit a9a5870d166f8060a8182cd61e5536b0becea74e)

Change-Id: I4c2b98f8a50804fb98ab67f75e9d660f1315a144

11 years agoam 987fc5a3: am adeec096: Merge "Hide various symbols that shouldn\'t be exposed."
Elliott Hughes [Sat, 16 Mar 2013 00:09:17 +0000 (17:09 -0700)]
am 987fc5a3: am adeec096: Merge "Hide various symbols that shouldn\'t be exposed."

* commit '987fc5a3c4046831dc9e6c252e99a9c694bbd9ee':
  Hide various symbols that shouldn't be exposed.

11 years agoam adeec096: Merge "Hide various symbols that shouldn\'t be exposed."
Elliott Hughes [Sat, 16 Mar 2013 00:07:45 +0000 (17:07 -0700)]
am adeec096: Merge "Hide various symbols that shouldn\'t be exposed."

* commit 'adeec096292a3ad63767f13af04836249ecbc075':
  Hide various symbols that shouldn't be exposed.

11 years agoMerge "Hide various symbols that shouldn't be exposed."
Elliott Hughes [Fri, 15 Mar 2013 23:52:09 +0000 (23:52 +0000)]
Merge "Hide various symbols that shouldn't be exposed."

11 years agoam 5f829205: am c1416647: Merge "Clean up internal libc logging."
Elliott Hughes [Fri, 15 Mar 2013 23:36:37 +0000 (16:36 -0700)]
am 5f829205: am c1416647: Merge "Clean up internal libc logging."

* commit '5f8292050fc07f4bf9e70f37a807ad028e3cfc87':
  Clean up internal libc logging.

11 years agoam c1416647: Merge "Clean up internal libc logging."
Elliott Hughes [Fri, 15 Mar 2013 23:34:05 +0000 (16:34 -0700)]
am c1416647: Merge "Clean up internal libc logging."

* commit 'c14166477e7fd22693eab194d37624c2f7506ce4':
  Clean up internal libc logging.

11 years agoHide various symbols that shouldn't be exposed.
Elliott Hughes [Fri, 15 Mar 2013 23:31:09 +0000 (16:31 -0700)]
Hide various symbols that shouldn't be exposed.

A mangled symbol in libc.so is a symbol that shouldn't be exported
by libc.so.

Change-Id: Id92d1e1968b3d11d111a5d9ef692adb1ac7694a1

11 years agoMerge "Clean up internal libc logging."
Elliott Hughes [Fri, 15 Mar 2013 23:21:36 +0000 (23:21 +0000)]
Merge "Clean up internal libc logging."

11 years agoClean up internal libc logging.
Elliott Hughes [Fri, 15 Mar 2013 22:30:25 +0000 (15:30 -0700)]
Clean up internal libc logging.

We only need one logging API, and I prefer the one that does no
allocation and is thus safe to use in any context.

Also use O_CLOEXEC when opening the /dev/log files.

Move everything logging-related into one header file.

Change-Id: Ic1e3ea8e9b910dc29df351bff6c0aa4db26fbb58

11 years agoam 50d42294: am e23ed8c6: Merge "Remove useless workaround for HTC RIL bugs."
Elliott Hughes [Fri, 15 Mar 2013 18:46:05 +0000 (11:46 -0700)]
am 50d42294: am e23ed8c6: Merge "Remove useless workaround for HTC RIL bugs."

* commit '50d42294bdc983e05eca0fb0099bbb9f634fd5e3':
  Remove useless workaround for HTC RIL bugs.

11 years agoam e23ed8c6: Merge "Remove useless workaround for HTC RIL bugs."
Elliott Hughes [Fri, 15 Mar 2013 18:43:50 +0000 (11:43 -0700)]
am e23ed8c6: Merge "Remove useless workaround for HTC RIL bugs."

* commit 'e23ed8c6441389a79c6504295184f7249e01a197':
  Remove useless workaround for HTC RIL bugs.

11 years agoMerge "Remove useless workaround for HTC RIL bugs."
Elliott Hughes [Fri, 15 Mar 2013 18:26:49 +0000 (18:26 +0000)]
Merge "Remove useless workaround for HTC RIL bugs."

11 years agoRemove useless workaround for HTC RIL bugs.
Elliott Hughes [Fri, 15 Mar 2013 18:21:15 +0000 (11:21 -0700)]
Remove useless workaround for HTC RIL bugs.

HTC's RIL uses the liblog logging, not ours.

Change-Id: I56f9304e833ccb329df4ee55042012d7ad5f73ed

11 years agoam f8d689bc: am 4d696eb4: Merge "Fix a bug in ZoneCompactor that meant the zonetab...
Elliott Hughes [Fri, 15 Mar 2013 00:42:42 +0000 (17:42 -0700)]
am f8d689bc: am 4d696eb4: Merge "Fix a bug in ZoneCompactor that meant the zonetab offset was wrong."

* commit 'f8d689bc56976f8bd37b306053154a0e9d17fb1d':
  Fix a bug in ZoneCompactor that meant the zonetab offset was wrong.

11 years agoam 4d696eb4: Merge "Fix a bug in ZoneCompactor that meant the zonetab offset was...
Elliott Hughes [Fri, 15 Mar 2013 00:40:26 +0000 (17:40 -0700)]
am 4d696eb4: Merge "Fix a bug in ZoneCompactor that meant the zonetab offset was wrong."

* commit '4d696eb49d24590a6d6d25657b5bc0103e2d90ba':
  Fix a bug in ZoneCompactor that meant the zonetab offset was wrong.

11 years agoMerge "Fix a bug in ZoneCompactor that meant the zonetab offset was wrong."
Elliott Hughes [Fri, 15 Mar 2013 00:30:48 +0000 (00:30 +0000)]
Merge "Fix a bug in ZoneCompactor that meant the zonetab offset was wrong."

11 years agoFix a bug in ZoneCompactor that meant the zonetab offset was wrong.
Elliott Hughes [Fri, 15 Mar 2013 00:10:24 +0000 (17:10 -0700)]
Fix a bug in ZoneCompactor that meant the zonetab offset was wrong.

Bug: 8391426
Change-Id: Ia4a8889b5a613aa96bb3fb5d89a921c913ff7626

11 years agoam f694ed1c: am d30b9f09: Merge "Remove unused arm defines."
Christopher Ferris [Thu, 14 Mar 2013 23:36:45 +0000 (16:36 -0700)]
am f694ed1c: am d30b9f09: Merge "Remove unused arm defines."

* commit 'f694ed1cdbfd2d26cdc2a008b67bfd3451522c8f':
  Remove unused arm defines.

11 years agoam d30b9f09: Merge "Remove unused arm defines."
Christopher Ferris [Thu, 14 Mar 2013 23:32:21 +0000 (16:32 -0700)]
am d30b9f09: Merge "Remove unused arm defines."

* commit 'd30b9f0912b4763f0d98bdee23064015223ec03f':
  Remove unused arm defines.

11 years agoMerge "Remove unused arm defines."
Christopher Ferris [Thu, 14 Mar 2013 23:23:42 +0000 (23:23 +0000)]
Merge "Remove unused arm defines."

11 years agoRemove unused arm defines.
Christopher Ferris [Thu, 28 Feb 2013 00:25:03 +0000 (16:25 -0800)]
Remove unused arm defines.

The defines HAVE_32_BYTE_CACHE_LINES and ARCH_ARM_USE_NON_NEON_MEMCPY
are not used by any code. The previous memcpy code that used these
has been split into different architecture versions to avoid the need
for them.

Bug: 8005082

Merge from internal master.

(cherry-picked from commit 6e1a5cf31ba47508b08dba02a45b4ea6e1edd6d2)

Change-Id: Ib18fc3f4131b21cdbd19b9dde7697ac25d066fcf

11 years agoam 2e7b8d63: am f861bc5c: Merge "Don\'t search off the end of the index for bad Olson...
Elliott Hughes [Thu, 14 Mar 2013 22:30:13 +0000 (15:30 -0700)]
am 2e7b8d63: am f861bc5c: Merge "Don\'t search off the end of the index for bad Olson ids."

* commit '2e7b8d6399fdea6e43dd07f353346324d2bf4ec4':
  Don't search off the end of the index for bad Olson ids.

11 years agoam f861bc5c: Merge "Don\'t search off the end of the index for bad Olson ids."
Elliott Hughes [Thu, 14 Mar 2013 22:17:09 +0000 (15:17 -0700)]
am f861bc5c: Merge "Don\'t search off the end of the index for bad Olson ids."

* commit 'f861bc5cc3e17322e49f89deea61f278aaefbe76':
  Don't search off the end of the index for bad Olson ids.

11 years agoMerge "Don't search off the end of the index for bad Olson ids."
Elliott Hughes [Thu, 14 Mar 2013 22:05:44 +0000 (22:05 +0000)]
Merge "Don't search off the end of the index for bad Olson ids."

11 years agoDon't search off the end of the index for bad Olson ids.
Elliott Hughes [Thu, 14 Mar 2013 21:38:08 +0000 (14:38 -0700)]
Don't search off the end of the index for bad Olson ids.

In the old code, the index was a file to itself, so it made sense to
read until you hit the end of the file. In the new code, the index is
followed by hundreds of KiB of data, so we need to just search the
index.

Bug: 8368791
Change-Id: Icf5f8b5516cf3a93679fa849c9f6cd1cb100e0f1

11 years agoam 2f44c05b: am ec706c24: Merge "Use the kernel\'s MAX_ERRNO in the syscall stubs."
Elliott Hughes [Wed, 13 Mar 2013 00:55:54 +0000 (17:55 -0700)]
am 2f44c05b: am ec706c24: Merge "Use the kernel\'s MAX_ERRNO in the syscall stubs."

* commit '2f44c05bc54073aa6decfc5d933b7e77e7ce5768':
  Use the kernel's MAX_ERRNO in the syscall stubs.

11 years agoam ec706c24: Merge "Use the kernel\'s MAX_ERRNO in the syscall stubs."
Elliott Hughes [Wed, 13 Mar 2013 00:54:00 +0000 (17:54 -0700)]
am ec706c24: Merge "Use the kernel\'s MAX_ERRNO in the syscall stubs."

* commit 'ec706c24acb4d1db6a583a57b76adfb9250d39eb':
  Use the kernel's MAX_ERRNO in the syscall stubs.

11 years agoMerge "Use the kernel's MAX_ERRNO in the syscall stubs."
Elliott Hughes [Wed, 13 Mar 2013 00:44:33 +0000 (00:44 +0000)]
Merge "Use the kernel's MAX_ERRNO in the syscall stubs."

11 years agoUse the kernel's MAX_ERRNO in the syscall stubs.
Elliott Hughes [Tue, 12 Mar 2013 21:57:30 +0000 (14:57 -0700)]
Use the kernel's MAX_ERRNO in the syscall stubs.

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

11 years agoam 2a66ccf1: am 980508b0: Merge "Break bionic implementations into arch versions."
Christopher Ferris [Tue, 12 Mar 2013 22:40:22 +0000 (15:40 -0700)]
am 2a66ccf1: am 980508b0: Merge "Break bionic implementations into arch versions."

* commit '2a66ccf1bb4dd0183b65264cb8107ba70748f626':
  Break bionic implementations into arch versions.

11 years agoam 980508b0: Merge "Break bionic implementations into arch versions."
Christopher Ferris [Tue, 12 Mar 2013 22:39:38 +0000 (15:39 -0700)]
am 980508b0: Merge "Break bionic implementations into arch versions."

* commit '980508b0ead3ee01e99e93635c57eb76d1aba62d':
  Break bionic implementations into arch versions.

11 years agoMerge "Break bionic implementations into arch versions."
Christopher Ferris [Tue, 12 Mar 2013 22:24:09 +0000 (22:24 +0000)]
Merge "Break bionic implementations into arch versions."

11 years agoBreak bionic implementations into arch versions.
Christopher Ferris [Tue, 26 Feb 2013 09:30:00 +0000 (01:30 -0800)]
Break bionic implementations into arch versions.

Move arch specific code for arm, mips, x86 into separate
makefiles.
In addition, add different arm cpu versions of memcpy/memset.

Bug: 8005082

Merge from internal master (acdde8c1cf8e8beed98c052757d96695b820b50c).

Change-Id: I04f3d0715104fab618e1abf7cf8f7eec9bec79df

11 years agoam a3214c65: am 94a34010: Merge "Support large errno values on ARM."
Elliott Hughes [Tue, 12 Mar 2013 19:18:49 +0000 (12:18 -0700)]
am a3214c65: am 94a34010: Merge "Support large errno values on ARM."

* commit 'a3214c65620827628a87849a5fbad5a4ef97eeb1':
  Support large errno values on ARM.

11 years agoam 94a34010: Merge "Support large errno values on ARM."
Elliott Hughes [Tue, 12 Mar 2013 19:17:15 +0000 (12:17 -0700)]
am 94a34010: Merge "Support large errno values on ARM."

* commit '94a34010c1f989032c0a4dc7a7a68d069ca23b1e':
  Support large errno values on ARM.

11 years agoMerge "Support large errno values on ARM."
Elliott Hughes [Tue, 12 Mar 2013 19:08:36 +0000 (19:08 +0000)]
Merge "Support large errno values on ARM."

11 years agoam 5d998b4a: am f21aa3b6: Merge "Use more types than just \'unsigned\' in the linker."
Elliott Hughes [Tue, 12 Mar 2013 19:03:06 +0000 (12:03 -0700)]
am 5d998b4a: am f21aa3b6: Merge "Use more types than just \'unsigned\' in the linker."

* commit '5d998b4a21aab09da750e8e43cb608f5ee6b1f3d':
  Use more types than just 'unsigned' in the linker.

11 years agoam f21aa3b6: Merge "Use more types than just \'unsigned\' in the linker."
Elliott Hughes [Tue, 12 Mar 2013 19:00:55 +0000 (12:00 -0700)]
am f21aa3b6: Merge "Use more types than just \'unsigned\' in the linker."

* commit 'f21aa3b61ebc6b1a7c34265699f40bd9b5af7952':
  Use more types than just 'unsigned' in the linker.

11 years agoSupport large errno values on ARM.
Elliott Hughes [Tue, 12 Mar 2013 18:55:45 +0000 (11:55 -0700)]
Support large errno values on ARM.

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