OSDN Git Service

android-x86/bionic.git
11 years agoam 50a2cd86: am 0b4a85bf: Merge "Fix TIMING/STATS/COUNT_PAGES dynamic linker build"
Elliott Hughes [Wed, 6 Mar 2013 17:44:43 +0000 (17:44 +0000)]
am 50a2cd86: am 0b4a85bf: Merge "Fix TIMING/STATS/COUNT_PAGES dynamic linker build"

* commit '50a2cd865e7cc8c72d926548ed5d64e269003055':
  Fix TIMING/STATS/COUNT_PAGES dynamic linker build

11 years agoam 0b4a85bf: Merge "Fix TIMING/STATS/COUNT_PAGES dynamic linker build"
Elliott Hughes [Wed, 6 Mar 2013 17:41:56 +0000 (09:41 -0800)]
am 0b4a85bf: Merge "Fix TIMING/STATS/COUNT_PAGES dynamic linker build"

* commit '0b4a85bf1e11e28f66d0f101f9e7d4c51a0bb31c':
  Fix TIMING/STATS/COUNT_PAGES dynamic linker build

11 years agoMerge "Fix TIMING/STATS/COUNT_PAGES dynamic linker build"
Elliott Hughes [Wed, 6 Mar 2013 17:25:51 +0000 (17:25 +0000)]
Merge "Fix TIMING/STATS/COUNT_PAGES dynamic linker build"

11 years agoFix TIMING/STATS/COUNT_PAGES dynamic linker build
Kito Cheng [Wed, 6 Mar 2013 15:52:45 +0000 (23:52 +0800)]
Fix TIMING/STATS/COUNT_PAGES dynamic linker build

Change-Id: I6432ac378816da253b83d1c7fb1d3fb64647b89e

11 years agoam 9043202b: am 20958207: Merge "Fix MIPS linker build"
Brian Carlstrom [Wed, 6 Mar 2013 09:18:59 +0000 (09:18 +0000)]
am 9043202b: am 20958207: Merge "Fix MIPS linker build"

* commit '9043202b5bb8e0725b0302e9da9d3a57c837e798':
  Fix MIPS linker build

11 years agoam 20958207: Merge "Fix MIPS linker build"
Brian Carlstrom [Wed, 6 Mar 2013 09:17:27 +0000 (01:17 -0800)]
am 20958207: Merge "Fix MIPS linker build"

* commit '20958207d5f9d36cc6f6b3edc4ff899c73b72b02':
  Fix MIPS linker build

11 years agoMerge "Fix MIPS linker build"
Brian Carlstrom [Wed, 6 Mar 2013 09:06:16 +0000 (09:06 +0000)]
Merge "Fix MIPS linker build"

11 years agoFix MIPS linker build
Brian Carlstrom [Wed, 6 Mar 2013 09:03:25 +0000 (01:03 -0800)]
Fix MIPS linker build

(cherry-picked from 8c7d8c2057e303985f78eab96da747ddaa013c78)

Change-Id: Idcf62ab95f8fccbc2d7c3e771a4cfbe768a1555e

11 years agoam 9a0b658c: am c41dcad0: Merge "More linker cleanup."
Elliott Hughes [Wed, 6 Mar 2013 06:44:06 +0000 (06:44 +0000)]
am 9a0b658c: am c41dcad0: Merge "More linker cleanup."

* commit '9a0b658c9c1f8f4492f61a75909e5ca2f05c3ac1':
  More linker cleanup.

11 years agoam c41dcad0: Merge "More linker cleanup."
Elliott Hughes [Wed, 6 Mar 2013 06:42:33 +0000 (22:42 -0800)]
am c41dcad0: Merge "More linker cleanup."

* commit 'c41dcad040ede2975ea63e383a8a3d36e3642d56':
  More linker cleanup.

11 years agoMerge "More linker cleanup."
Elliott Hughes [Wed, 6 Mar 2013 06:26:55 +0000 (06:26 +0000)]
Merge "More linker cleanup."

11 years agoMore linker cleanup.
Elliott Hughes [Wed, 6 Mar 2013 02:47:58 +0000 (18:47 -0800)]
More linker cleanup.

Change-Id: I9fb3c7c0d4b4ffef0eeaf092d4e30ffe63a08671

11 years agoam a2517de3: am 036f9097: Merge "Minor linker cleanup, primarily to use Elf32_Dyn"
Brian Carlstrom [Wed, 6 Mar 2013 01:22:25 +0000 (01:22 +0000)]
am a2517de3: am 036f9097: Merge "Minor linker cleanup, primarily to use Elf32_Dyn"

* commit 'a2517de3844d95b5f00a4666b8dae00ef893ac24':
  Minor linker cleanup, primarily to use Elf32_Dyn

11 years agoam 036f9097: Merge "Minor linker cleanup, primarily to use Elf32_Dyn"
Brian Carlstrom [Wed, 6 Mar 2013 01:20:35 +0000 (17:20 -0800)]
am 036f9097: Merge "Minor linker cleanup, primarily to use Elf32_Dyn"

* commit '036f909720fd0d56dbd04b9a761fb1d0714980b0':
  Minor linker cleanup, primarily to use Elf32_Dyn

11 years agoMerge "Minor linker cleanup, primarily to use Elf32_Dyn"
Brian Carlstrom [Wed, 6 Mar 2013 01:01:23 +0000 (01:01 +0000)]
Merge "Minor linker cleanup, primarily to use Elf32_Dyn"

11 years agoMinor linker cleanup, primarily to use Elf32_Dyn
Brian Carlstrom [Thu, 28 Feb 2013 23:58:45 +0000 (15:58 -0800)]
Minor linker cleanup, primarily to use Elf32_Dyn

Change-Id: Ifa9408e9859c6f79444715bed4808b7c13fdced5

11 years agoam 3f7b1cd3: am be21fe7a: Merge "Upgrade to tzdata2013a."
Elliott Hughes [Tue, 5 Mar 2013 22:23:45 +0000 (22:23 +0000)]
am 3f7b1cd3: am be21fe7a: Merge "Upgrade to tzdata2013a."

* commit '3f7b1cd3acf9990efea9f75559b2f873ab3838fe':
  Upgrade to tzdata2013a.

11 years agoam be21fe7a: Merge "Upgrade to tzdata2013a."
Elliott Hughes [Tue, 5 Mar 2013 22:22:01 +0000 (14:22 -0800)]
am be21fe7a: Merge "Upgrade to tzdata2013a."

* commit 'be21fe7a5947e24f9f0db90f8e16c54766d1237a':
  Upgrade to tzdata2013a.

11 years agoMerge "Upgrade to tzdata2013a."
Elliott Hughes [Tue, 5 Mar 2013 22:19:14 +0000 (22:19 +0000)]
Merge "Upgrade to tzdata2013a."

11 years agoUpgrade to tzdata2013a.
Elliott Hughes [Tue, 5 Mar 2013 22:00:38 +0000 (14:00 -0800)]
Upgrade to tzdata2013a.

From the release notes:

    Chile's 2013 rules, and we guess rules for 2014 and later, will be
    the same as 2012, namely Apr Sun>=23 03:00 UTC to Sep Sun>=2 04:00 UTC.
    (Thanks to Steffen Thorsen and Robert Elz.)

    New Zones Asia/Khandyga, Asia/Ust-Nera, Europe/Busingen.
    (Thanks to Tobias Conradi and Arthur David Olson.)

Change-Id: I351e04b3348420ad7df7c648963c235b534033d2

11 years agoam e5e6e17c: am 133d97e4: Merge "Add stack unwinding directives to memcpy."
Ben Cheng [Tue, 5 Mar 2013 21:20:42 +0000 (21:20 +0000)]
am e5e6e17c: am 133d97e4: Merge "Add stack unwinding directives to memcpy."

* commit 'e5e6e17c5bd06e097c5bb4da9a23b5e293309ab9':
  Add stack unwinding directives to memcpy.

11 years agoam 133d97e4: Merge "Add stack unwinding directives to memcpy."
Ben Cheng [Tue, 5 Mar 2013 21:17:23 +0000 (13:17 -0800)]
am 133d97e4: Merge "Add stack unwinding directives to memcpy."

* commit '133d97e4b07a733787fb85692ad8427fdc3d1d22':
  Add stack unwinding directives to memcpy.

11 years agoMerge "Add stack unwinding directives to memcpy."
Ben Cheng [Tue, 5 Mar 2013 21:04:38 +0000 (21:04 +0000)]
Merge "Add stack unwinding directives to memcpy."

11 years agoam 7b69ac53: am cf9a9604: Merge "Switch to upstream-freebsd for the unmolested wchar...
Elliott Hughes [Tue, 5 Mar 2013 20:28:28 +0000 (20:28 +0000)]
am 7b69ac53: am cf9a9604: Merge "Switch to upstream-freebsd for the unmolested wchar code."

* commit '7b69ac535abca0e7867524e68f5a3581cc367de8':
  Switch to upstream-freebsd for the unmolested wchar code.

11 years agoam cf9a9604: Merge "Switch to upstream-freebsd for the unmolested wchar code."
Elliott Hughes [Tue, 5 Mar 2013 20:27:09 +0000 (12:27 -0800)]
am cf9a9604: Merge "Switch to upstream-freebsd for the unmolested wchar code."

* commit 'cf9a9604adb27600c79ca236578a8be89168202f':
  Switch to upstream-freebsd for the unmolested wchar code.

11 years agoMerge "Switch to upstream-freebsd for the unmolested wchar code."
Elliott Hughes [Tue, 5 Mar 2013 20:13:32 +0000 (20:13 +0000)]
Merge "Switch to upstream-freebsd for the unmolested wchar code."

11 years agoam 2125c155: am d392e044: Merge "Move realpath.c to upstream-freebsd."
Elliott Hughes [Mon, 4 Mar 2013 23:56:56 +0000 (23:56 +0000)]
am 2125c155: am d392e044: Merge "Move realpath.c to upstream-freebsd."

* commit '2125c15506cbe9e4062d72ebb723d164e9c01c1f':
  Move realpath.c to upstream-freebsd.

11 years agoam d392e044: Merge "Move realpath.c to upstream-freebsd."
Elliott Hughes [Mon, 4 Mar 2013 16:25:58 +0000 (08:25 -0800)]
am d392e044: Merge "Move realpath.c to upstream-freebsd."

* commit 'd392e044c7a03ff1c0903c3512d00955bc7de473':
  Move realpath.c to upstream-freebsd.

11 years agoSwitch to upstream-freebsd for the unmolested wchar code.
Elliott Hughes [Sat, 2 Mar 2013 02:35:56 +0000 (18:35 -0800)]
Switch to upstream-freebsd for the unmolested wchar code.

Change-Id: I87b4d76ff8da04109ae53638eec4f11629798960

11 years agoMerge "Move realpath.c to upstream-freebsd."
Elliott Hughes [Sat, 2 Mar 2013 01:22:04 +0000 (01:22 +0000)]
Merge "Move realpath.c to upstream-freebsd."

11 years agoMerge "Remove unused arm defines. DO NOT MERGE" into jb-mr2-dev
Christopher Ferris [Sat, 2 Mar 2013 01:15:59 +0000 (01:15 +0000)]
Merge "Remove unused arm defines. DO NOT MERGE" into jb-mr2-dev

11 years agoMove realpath.c to upstream-freebsd.
Elliott Hughes [Sat, 2 Mar 2013 00:59:46 +0000 (16:59 -0800)]
Move realpath.c to upstream-freebsd.

This is actually a slightly newer upstream version than the one I
originally pulled. Hopefully now it's in upstream-freebsd it will
be easier to track upstream, though I still need to sit down and
write the necessary scripts at some point.

Bug: 5110679
Change-Id: I87e563f0f95aa8e68b45578e2a8f448bbf827a33

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

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

(cherry picked from commit 6e1a5cf31ba47508b08dba02a45b4ea6e1edd6d2)

Change-Id: I69654d47db1458136782b5504290f620e924ee75

11 years agoAdd stack unwinding directives to memcpy.
Ben Cheng [Fri, 1 Mar 2013 20:38:09 +0000 (12:38 -0800)]
Add stack unwinding directives to memcpy.

Also include some Android specific header files.

Change-Id: Idbcbd43458ba945ca8c61bfbc04ea15fc0ae4e00

11 years agoam 52b3aed7: am c5c6cb3f: am 66273ac2: Merge "Adding strcmp tuned for Cortex-A15."
Ben Cheng [Fri, 1 Mar 2013 18:28:25 +0000 (18:28 +0000)]
am 52b3aed7: am c5c6cb3f: am 66273ac2: Merge "Adding strcmp tuned for Cortex-A15."

* commit '52b3aed7982e9d68aad0652f54d5ee180ddf1c5a':
  Adding strcmp tuned for Cortex-A15.

11 years agoam 55fc93a9: am 8f149da0: am b3b1ab62: Merge "Adding memcpy tuned for Cortex-A15."
Ben Cheng [Fri, 1 Mar 2013 18:28:25 +0000 (18:28 +0000)]
am 55fc93a9: am 8f149da0: am b3b1ab62: Merge "Adding memcpy tuned for Cortex-A15."

* commit '55fc93a90961022e38ef0bb63bcb81d2b4e5aef6':
  Adding memcpy tuned for Cortex-A15.

11 years agoam cc646773: am 305a9995: am 8fa924e5: Merge "unistd.h: don\'t include sys/capability.h"
Nick Kralevich [Fri, 1 Mar 2013 18:28:24 +0000 (18:28 +0000)]
am cc646773: am 305a9995: am 8fa924e5: Merge "unistd.h: don\'t include sys/capability.h"

* commit 'cc64677342209d38f88138c03d3ded0e1d61637c':
  unistd.h: don't include sys/capability.h

11 years agoam c5c6cb3f: am 66273ac2: Merge "Adding strcmp tuned for Cortex-A15."
Ben Cheng [Fri, 1 Mar 2013 18:26:52 +0000 (10:26 -0800)]
am c5c6cb3f: am 66273ac2: Merge "Adding strcmp tuned for Cortex-A15."

* commit 'c5c6cb3f13642386e08acf687b4bc39f568bad0c':
  Adding strcmp tuned for Cortex-A15.

11 years agoam 8f149da0: am b3b1ab62: Merge "Adding memcpy tuned for Cortex-A15."
Ben Cheng [Fri, 1 Mar 2013 18:26:52 +0000 (10:26 -0800)]
am 8f149da0: am b3b1ab62: Merge "Adding memcpy tuned for Cortex-A15."

* commit '8f149da08dc3125824e168f8d29613be80b2085c':
  Adding memcpy tuned for Cortex-A15.

11 years agoam 305a9995: am 8fa924e5: Merge "unistd.h: don\'t include sys/capability.h"
Nick Kralevich [Fri, 1 Mar 2013 18:26:51 +0000 (10:26 -0800)]
am 305a9995: am 8fa924e5: Merge "unistd.h: don\'t include sys/capability.h"

* commit '305a999589a8dfde077589106853522d483d24d2':
  unistd.h: don't include sys/capability.h

11 years agoam 66273ac2: Merge "Adding strcmp tuned for Cortex-A15."
Ben Cheng [Fri, 1 Mar 2013 18:24:58 +0000 (10:24 -0800)]
am 66273ac2: Merge "Adding strcmp tuned for Cortex-A15."

* commit '66273ac2b6b8c2042350204575bd290d96dea681':
  Adding strcmp tuned for Cortex-A15.

11 years agoam b3b1ab62: Merge "Adding memcpy tuned for Cortex-A15."
Ben Cheng [Fri, 1 Mar 2013 18:24:58 +0000 (10:24 -0800)]
am b3b1ab62: Merge "Adding memcpy tuned for Cortex-A15."

* commit 'b3b1ab6213df15f99c9af3088cfe733428816fd3':
  Adding memcpy tuned for Cortex-A15.

11 years agoam 8fa924e5: Merge "unistd.h: don\'t include sys/capability.h"
Nick Kralevich [Fri, 1 Mar 2013 18:24:57 +0000 (10:24 -0800)]
am 8fa924e5: Merge "unistd.h: don\'t include sys/capability.h"

* commit '8fa924e5dff4588cca8586e0e727b9a544db7083':
  unistd.h: don't include sys/capability.h

11 years agoMerge "Adding strcmp tuned for Cortex-A15."
Ben Cheng [Fri, 1 Mar 2013 18:18:33 +0000 (18:18 +0000)]
Merge "Adding strcmp tuned for Cortex-A15."

11 years agoMerge "Adding memcpy tuned for Cortex-A15."
Ben Cheng [Fri, 1 Mar 2013 18:18:05 +0000 (18:18 +0000)]
Merge "Adding memcpy tuned for Cortex-A15."

11 years agoMerge "unistd.h: don't include sys/capability.h"
Nick Kralevich [Fri, 1 Mar 2013 18:14:47 +0000 (18:14 +0000)]
Merge "unistd.h: don't include sys/capability.h"

11 years agounistd.h: don't include sys/capability.h
Nick Kralevich [Fri, 1 Mar 2013 17:46:45 +0000 (09:46 -0800)]
unistd.h: don't include sys/capability.h

Don't pull in unnecessary header files. AFAIK, I've fixed all
the code which didn't include the correct header files.

Change-Id: If0b7bba74e77cb24a0cf9ce8968aa07400855e58

11 years agoAdding strcmp tuned for Cortex-A15.
Greta Yorsh [Fri, 30 Nov 2012 09:31:38 +0000 (09:31 +0000)]
Adding strcmp tuned for Cortex-A15.

The attached patch provides a new implementation of strcmp for ARM,
using LDRD instead of LDR whenever possible.

For older architectures that do not support LDRD, this implementation
uses the same algorithm as before.

Testing and benchmarking:
* Validation: successfully passes a test that compares different strings
of length 1-128 and offsets 0-8 from a word boundary. Checked on
qemu/A15/A9, ARM/Thumb mode, Big/Little Endian.
* Integration with gcc: no regression on qemu for arm-none-eabi --with-cpu
a15/a9 --with-mode arm/thumb.

Change-Id: I9e230e1b99dbdc9119b69ee858a89038c516a4ea
Signed-off-by: Vassilis Laganakos <vasileios.laganakos@arm.com>
11 years agoAdding memcpy tuned for Cortex-A15.
Greta Yorsh [Tue, 4 Oct 2011 16:02:25 +0000 (16:02 +0000)]
Adding memcpy tuned for Cortex-A15.

The strategy for large block sizes is LDRD and STRD with offset addressing,
where the main loop copies 64 bytes in every iteration, (i.e., 8 calls to
LDRD and STRD pairs), interleaving load and stores (i.e., the pairs of LDRD
and STRD of the same data are consecutive instructions), and the writeback
of an updated address is a separate instruction, which allows us to write
back the accumulated update once per iteration.

This strategy is implemented in memcpy.S. In some configurations, a plain
version of memcpy (included from memcpy-stub.c) is used instead of the
optimized one.

Validation:
* Correctness: checked memcpy using a test harness for block sizes
ranging between 1 to 128, and source and destination buffers alignment
ranging in { 0,1,2,3,4,8,12 } bytes each.
* Performance: benchmarking on Cortex-A15 FPGA indicates that this strategy
is better for A15 than the strategy used by glibc and even slightly better
than using NEON. Benchmarking on Cortex-A9 bare metal and Linux shows
that the proposed strategy is reasonable: not as fast as the version of
memcpy from glibc (which is the best open source strategy for A9), but
comparable with csl and bionic.
* Integration with GCC: no regression for arm-none-eabi --with-cpu
cortex-a15 and cortex-a9.

Change-Id: Ied56354d8992c62ae3e02d582a2bd55585d814b9
Signed-off-by: Vassilis Laganakos <vasileios.laganakos@arm.com>
11 years agoBreak bionic implementations into arch versions. DO NOT MERGE
Christopher Ferris [Tue, 26 Feb 2013 09:30:00 +0000 (01:30 -0800)]
Break bionic implementations into arch versions. DO NOT MERGE

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

Bug: 8005082

(cherry picked from commit acdde8c1cf8e8beed98c052757d96695b820b50c)

Change-Id: I0108d432af9f6283ae99adfc92a3399e5ab3e31d

11 years agoam 9c102ccf: am 7fe8229b: am 9c1912c4: Merge "Avoid changing the C++ ABI with ssize_t."
Elliott Hughes [Thu, 28 Feb 2013 19:46:19 +0000 (19:46 +0000)]
am 9c102ccf: am 7fe8229b: am 9c1912c4: Merge "Avoid changing the C++ ABI with ssize_t."

* commit '9c102ccf9517637f9d293b4e52f9a40573d8fc1d':
  Avoid changing the C++ ABI with ssize_t.

11 years agoam 7fe8229b: am 9c1912c4: Merge "Avoid changing the C++ ABI with ssize_t."
Elliott Hughes [Thu, 28 Feb 2013 19:44:20 +0000 (11:44 -0800)]
am 7fe8229b: am 9c1912c4: Merge "Avoid changing the C++ ABI with ssize_t."

* commit '7fe8229b49ea091d769b63052247ca12280975eb':
  Avoid changing the C++ ABI with ssize_t.

11 years agoam 9c1912c4: Merge "Avoid changing the C++ ABI with ssize_t."
Elliott Hughes [Thu, 28 Feb 2013 19:43:11 +0000 (11:43 -0800)]
am 9c1912c4: Merge "Avoid changing the C++ ABI with ssize_t."

* commit '9c1912c4bf5eb0edc07bfd333226c4e0b7a629eb':
  Avoid changing the C++ ABI with ssize_t.

11 years agoMerge "Avoid changing the C++ ABI with ssize_t."
Elliott Hughes [Thu, 28 Feb 2013 19:28:53 +0000 (19:28 +0000)]
Merge "Avoid changing the C++ ABI with ssize_t."

11 years agoAvoid changing the C++ ABI with ssize_t.
Elliott Hughes [Thu, 28 Feb 2013 18:51:14 +0000 (10:51 -0800)]
Avoid changing the C++ ABI with ssize_t.

Bug: 8253769
Change-Id: Ia325003ed6e59da553e2bdde7c43515bc191b8ba

11 years agoam 82f4cc5d: am 58b997c8: am f5f906c1: Merge "libc: create sys/capability.h"
Nick Kralevich [Tue, 26 Feb 2013 21:55:28 +0000 (21:55 +0000)]
am 82f4cc5d: am 58b997c8: am f5f906c1: Merge "libc: create sys/capability.h"

* commit '82f4cc5de495c6cc3d3736ab075ccd05285beabc':
  libc: create sys/capability.h

11 years agoam 58b997c8: am f5f906c1: Merge "libc: create sys/capability.h"
Nick Kralevich [Tue, 26 Feb 2013 21:51:26 +0000 (13:51 -0800)]
am 58b997c8: am f5f906c1: Merge "libc: create sys/capability.h"

* commit '58b997c8121455ecb9aa1b80d7c796115149ec2a':
  libc: create sys/capability.h

11 years agoam f5f906c1: Merge "libc: create sys/capability.h"
Nick Kralevich [Tue, 26 Feb 2013 21:50:03 +0000 (13:50 -0800)]
am f5f906c1: Merge "libc: create sys/capability.h"

* commit 'f5f906c184677b8295523231cfeead9ed94661ad':
  libc: create sys/capability.h

11 years agoMerge "libc: create sys/capability.h"
Nick Kralevich [Tue, 26 Feb 2013 21:38:10 +0000 (21:38 +0000)]
Merge "libc: create sys/capability.h"

11 years agolibc: create sys/capability.h
Nick Kralevich [Tue, 26 Feb 2013 21:27:15 +0000 (13:27 -0800)]
libc: create sys/capability.h

Per "man capset", sys/capability.h is the appropriate header file
for the capget / capset definition, not unistd.h. Fixed.

As a short term hack, continue to include sys/capability.h in
unistd.h, until we can fix all the code which uses capget / capset.

Change-Id: I6e7cf55955d761ca785a14c5e4b7a44125d8fc15

11 years agoam d9cb6988: am 406968b2: am c0e9ddd0: Merge "Reimplement scandir(3)."
Elliott Hughes [Mon, 25 Feb 2013 22:58:44 +0000 (22:58 +0000)]
am d9cb6988: am 406968b2: am c0e9ddd0: Merge "Reimplement scandir(3)."

* commit 'd9cb69881a062c615a8009be0a70270c70eb35da':
  Reimplement scandir(3).

11 years agoam 406968b2: am c0e9ddd0: Merge "Reimplement scandir(3)."
Elliott Hughes [Mon, 25 Feb 2013 22:56:51 +0000 (14:56 -0800)]
am 406968b2: am c0e9ddd0: Merge "Reimplement scandir(3)."

* commit '406968b2444bf29e449acebdfb7ff174abd1e0ad':
  Reimplement scandir(3).

11 years agoam c0e9ddd0: Merge "Reimplement scandir(3)."
Elliott Hughes [Mon, 25 Feb 2013 22:54:54 +0000 (14:54 -0800)]
am c0e9ddd0: Merge "Reimplement scandir(3)."

* commit 'c0e9ddd002f6084c29c26236d741d64d01713c15':
  Reimplement scandir(3).

11 years agoMerge "Reimplement scandir(3)."
Elliott Hughes [Mon, 25 Feb 2013 22:43:28 +0000 (22:43 +0000)]
Merge "Reimplement scandir(3)."

11 years agoReimplement scandir(3).
Elliott Hughes [Mon, 25 Feb 2013 21:14:31 +0000 (13:14 -0800)]
Reimplement scandir(3).

The old scandir implementation didn't take into account the varying
size of directory entries, and didn't correctly clean up on its
error exits.

Bug: 7339844
Change-Id: Ib40e3564709752241a3119a496cbb2192e3f9abe

11 years agoam ed1068c8: am 7b8bf681: am f6bb5bf4: Merge "Add the glibc-compatible names to ...
Elliott Hughes [Fri, 22 Feb 2013 22:09:30 +0000 (14:09 -0800)]
am ed1068c8: am 7b8bf681: am f6bb5bf4: Merge "Add the glibc-compatible names to <sys/endian.h>."

* commit 'ed1068c86ea0380e4b4909252367ffacc812ad57':
  Add the glibc-compatible names to <sys/endian.h>.

11 years agoam 7b8bf681: am f6bb5bf4: Merge "Add the glibc-compatible names to <sys/endian.h>."
Elliott Hughes [Fri, 22 Feb 2013 22:06:12 +0000 (14:06 -0800)]
am 7b8bf681: am f6bb5bf4: Merge "Add the glibc-compatible names to <sys/endian.h>."

* commit '7b8bf68133cda6c5ff9207248b563c2f6297e22a':
  Add the glibc-compatible names to <sys/endian.h>.

11 years agoam f6bb5bf4: Merge "Add the glibc-compatible names to <sys/endian.h>."
Elliott Hughes [Fri, 22 Feb 2013 22:02:44 +0000 (14:02 -0800)]
am f6bb5bf4: Merge "Add the glibc-compatible names to <sys/endian.h>."

* commit 'f6bb5bf498810d0622f66020059c87b96738c35b':
  Add the glibc-compatible names to <sys/endian.h>.

11 years agoMerge "Add the glibc-compatible names to <sys/endian.h>."
Elliott Hughes [Fri, 22 Feb 2013 21:46:59 +0000 (21:46 +0000)]
Merge "Add the glibc-compatible names to <sys/endian.h>."

11 years agoam dd843914: am 440bc83d: am 7b2c6385: Merge "Fix <memory.h> to be a synonym for...
Elliott Hughes [Fri, 22 Feb 2013 20:16:14 +0000 (12:16 -0800)]
am dd843914: am 440bc83d: am 7b2c6385: Merge "Fix <memory.h> to be a synonym for <string.h> like in glibc."

* commit 'dd8439141aeac6dc3a64e25f313d08833e1d85f5':
  Fix <memory.h> to be a synonym for <string.h> like in glibc.

11 years agoam 440bc83d: am 7b2c6385: Merge "Fix <memory.h> to be a synonym for <string.h> like...
Elliott Hughes [Fri, 22 Feb 2013 20:12:45 +0000 (12:12 -0800)]
am 440bc83d: am 7b2c6385: Merge "Fix <memory.h> to be a synonym for <string.h> like in glibc."

* commit '440bc83d924fa616614b4b426da66c2893048887':
  Fix <memory.h> to be a synonym for <string.h> like in glibc.

11 years agoam 7b2c6385: Merge "Fix <memory.h> to be a synonym for <string.h> like in glibc."
Elliott Hughes [Fri, 22 Feb 2013 20:10:15 +0000 (12:10 -0800)]
am 7b2c6385: Merge "Fix <memory.h> to be a synonym for <string.h> like in glibc."

* commit '7b2c6385effbb6d6e98bfe29cc6c144211128d9e':
  Fix <memory.h> to be a synonym for <string.h> like in glibc.

11 years agoam 41fb968c: am cadc8583: am bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"
Nick Kralevich [Fri, 22 Feb 2013 19:59:38 +0000 (11:59 -0800)]
am 41fb968c: am cadc8583: am bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"

* commit '41fb968c4268d080b0be4493876672efc4a71e16':
  libc: add sys/signal.h for compatibility

11 years agoam cadc8583: am bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"
Nick Kralevich [Fri, 22 Feb 2013 19:56:39 +0000 (11:56 -0800)]
am cadc8583: am bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"

* commit 'cadc858329a5929911eff5f9a208229112e36a93':
  libc: add sys/signal.h for compatibility

11 years agoam bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"
Nick Kralevich [Fri, 22 Feb 2013 19:53:05 +0000 (11:53 -0800)]
am bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"

* commit 'bc0e7ee18157c2ffe65644514555689f4259ccfe':
  libc: add sys/signal.h for compatibility

11 years agoMerge "Fix <memory.h> to be a synonym for <string.h> like in glibc."
Elliott Hughes [Fri, 22 Feb 2013 19:49:38 +0000 (19:49 +0000)]
Merge "Fix <memory.h> to be a synonym for <string.h> like in glibc."

11 years agoMerge "libc: add sys/signal.h for compatibility"
Nick Kralevich [Fri, 22 Feb 2013 19:33:52 +0000 (19:33 +0000)]
Merge "libc: add sys/signal.h for compatibility"

11 years agoMerge "gethostbyname: fix crash"
Nick Kralevich [Fri, 22 Feb 2013 19:32:37 +0000 (19:32 +0000)]
Merge "gethostbyname: fix crash"

11 years agoFix <memory.h> to be a synonym for <string.h> like in glibc.
Elliott Hughes [Fri, 22 Feb 2013 19:11:48 +0000 (11:11 -0800)]
Fix <memory.h> to be a synonym for <string.h> like in glibc.

Change-Id: If23589c5d85dffd28788e04b010303620fa178ca

11 years agoAdd the glibc-compatible names to <sys/endian.h>.
Elliott Hughes [Fri, 22 Feb 2013 19:01:17 +0000 (11:01 -0800)]
Add the glibc-compatible names to <sys/endian.h>.

Also remove declarations for functions that don't exist; these
are all macros.

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

11 years agolibc: add sys/signal.h for compatibility
Nick Kralevich [Fri, 22 Feb 2013 18:38:28 +0000 (10:38 -0800)]
libc: add sys/signal.h for compatibility

Some applications look for sys/signal.h instead of signal.h.
Work around those apps.

Change-Id: I76ac7744ebc56d196b5f0cb9ed381d32817436b9

11 years agoDon't pass pid to dnsproxyd
Nick Kralevich [Fri, 22 Feb 2013 05:22:54 +0000 (21:22 -0800)]
Don't pass pid to dnsproxyd

dnsproxyd can already determine our pid by looking at our
socket connection. It's dangerous (and unneeded) to pass it
ourselves.

Change-Id: I2596d02e361b302259ddb084be2fb75be59889c5

11 years agogethostbyname: fix crash
Nick Kralevich [Fri, 22 Feb 2013 04:10:41 +0000 (20:10 -0800)]
gethostbyname: fix crash

When an app doesn't have the internet permission, android_open_proxy
returns NULL, causing a segfault when calling fprintf. Fixed.

Change-Id: I598855350ed0db3cc88e5ae3b400145418a3a615

11 years agoam e974e951: am 2a5b57db: am 580a7073: Merge "Stop advertising rindex(3), which is...
Elliott Hughes [Fri, 22 Feb 2013 02:01:17 +0000 (18:01 -0800)]
am e974e951: am 2a5b57db: am 580a7073: Merge "Stop advertising rindex(3), which is both deprecated and unimplemented."

* commit 'e974e951606d2efbad4bafe5edbd09c13d875f6a':
  Stop advertising rindex(3), which is both deprecated and unimplemented.

11 years agoam 2a5b57db: am 580a7073: Merge "Stop advertising rindex(3), which is both deprecated...
Elliott Hughes [Fri, 22 Feb 2013 01:57:53 +0000 (17:57 -0800)]
am 2a5b57db: am 580a7073: Merge "Stop advertising rindex(3), which is both deprecated and unimplemented."

* commit '2a5b57db8c711b6f33581a68cfb7b82298ad988c':
  Stop advertising rindex(3), which is both deprecated and unimplemented.

11 years agoam 580a7073: Merge "Stop advertising rindex(3), which is both deprecated and unimplem...
Elliott Hughes [Fri, 22 Feb 2013 01:55:28 +0000 (17:55 -0800)]
am 580a7073: Merge "Stop advertising rindex(3), which is both deprecated and unimplemented."

* commit '580a707376d81bfcb39919f0a1203b39a39dbd8a':
  Stop advertising rindex(3), which is both deprecated and unimplemented.

11 years agoam 72e983d6: am 398f46dd: am a0259b42: Merge "libc: remove bcmp prototype"
Nick Kralevich [Fri, 22 Feb 2013 01:45:27 +0000 (17:45 -0800)]
am 72e983d6: am 398f46dd: am a0259b42: Merge "libc: remove bcmp prototype"

* commit '72e983d62828e1db5049800b7edef5a1b0cbbcbd':
  libc: remove bcmp prototype

11 years agoMerge "Stop advertising rindex(3), which is both deprecated and unimplemented."
Elliott Hughes [Fri, 22 Feb 2013 01:45:02 +0000 (01:45 +0000)]
Merge "Stop advertising rindex(3), which is both deprecated and unimplemented."

11 years agoam 398f46dd: am a0259b42: Merge "libc: remove bcmp prototype"
Nick Kralevich [Fri, 22 Feb 2013 01:42:07 +0000 (17:42 -0800)]
am 398f46dd: am a0259b42: Merge "libc: remove bcmp prototype"

* commit '398f46dd92fbb72e2a275cddccffdfde384bb3b4':
  libc: remove bcmp prototype

11 years agoStop advertising rindex(3), which is both deprecated and unimplemented.
Elliott Hughes [Fri, 22 Feb 2013 01:39:06 +0000 (17:39 -0800)]
Stop advertising rindex(3), which is both deprecated and unimplemented.

Change-Id: I3c775d9974e49c3f76a53e46e022659657b89034

11 years agoam a0259b42: Merge "libc: remove bcmp prototype"
Nick Kralevich [Fri, 22 Feb 2013 01:39:03 +0000 (17:39 -0800)]
am a0259b42: Merge "libc: remove bcmp prototype"

* commit 'a0259b42eba08e6d71a274fa3f770afccbb93107':
  libc: remove bcmp prototype

11 years agoMerge "libc: remove bcmp prototype"
Nick Kralevich [Fri, 22 Feb 2013 01:22:34 +0000 (01:22 +0000)]
Merge "libc: remove bcmp prototype"

11 years agolibc: remove bcmp prototype
Nick Kralevich [Fri, 22 Feb 2013 01:17:09 +0000 (17:17 -0800)]
libc: remove bcmp prototype

AFAIK, bionic only ever provided an implementation of bcmp
for x86, and even then, the code was never actually compiled.
Remove the prototype.

bcmp() has been obsoleted and replaced by memcmp()

Change-Id: I549d02ab6a9241a9acbbbfade0d98a9a02c2eaee

11 years agoam caeb0bf5: am 719d46f8: am a9ff09d1: Merge "Fix raise(3) so it works in signal...
Elliott Hughes [Thu, 21 Feb 2013 23:19:55 +0000 (15:19 -0800)]
am caeb0bf5: am 719d46f8: am a9ff09d1: Merge "Fix raise(3) so it works in signal handlers."

* commit 'caeb0bf53c8299d53f246573392fd688cae8a625':
  Fix raise(3) so it works in signal handlers.

11 years agoam 719d46f8: am a9ff09d1: Merge "Fix raise(3) so it works in signal handlers."
Elliott Hughes [Thu, 21 Feb 2013 22:21:13 +0000 (14:21 -0800)]
am 719d46f8: am a9ff09d1: Merge "Fix raise(3) so it works in signal handlers."

* commit '719d46f8ac4f2af89f8e8927db8c460b91622417':
  Fix raise(3) so it works in signal handlers.

11 years agoam a9ff09d1: Merge "Fix raise(3) so it works in signal handlers."
Elliott Hughes [Thu, 21 Feb 2013 22:17:47 +0000 (14:17 -0800)]
am a9ff09d1: Merge "Fix raise(3) so it works in signal handlers."

* commit 'a9ff09d1fc22292adc12cf99d4d44448d619b3cf':
  Fix raise(3) so it works in signal handlers.

11 years agoMerge "Fix raise(3) so it works in signal handlers."
Elliott Hughes [Thu, 21 Feb 2013 20:05:35 +0000 (20:05 +0000)]
Merge "Fix raise(3) so it works in signal handlers."

11 years agoFix raise(3) so it works in signal handlers.
Elliott Hughes [Thu, 21 Feb 2013 19:22:23 +0000 (11:22 -0800)]
Fix raise(3) so it works in signal handlers.

We could special-case raise(3) in non-threaded programs, but the more
conservative course is to make pthread_kill(3) work in signal handlers
at the cost of a race shared by other C libraries.

Change-Id: I59fb23d03bdabf403435e731704b33acdf3e0234

11 years agoam aa96db5b: (-s ours) am 818b1423: (-s ours) Fix mako builds. Do not merge.
Jean-Baptiste Queru [Wed, 20 Feb 2013 22:03:19 +0000 (14:03 -0800)]
am aa96db5b: (-s ours) am 818b1423: (-s ours) Fix mako builds. Do not merge.

* commit 'aa96db5ba0a39d8fac0925871632031d21e1ab3e':
  Fix mako builds. Do not merge.

11 years agoam 818b1423: (-s ours) Fix mako builds. Do not merge.
Jean-Baptiste Queru [Wed, 20 Feb 2013 22:00:43 +0000 (14:00 -0800)]
am 818b1423: (-s ours) Fix mako builds. Do not merge.

* commit '818b1423d228e478245a1b0d2fe687606ea1741c':
  Fix mako builds. Do not merge.