OSDN Git Service
Elliott Hughes [Thu, 21 Mar 2013 23:14:47 +0000 (23:14 +0000)]
Merge "Expose 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
Christopher Ferris [Wed, 20 Mar 2013 22:14:48 +0000 (22:14 +0000)]
Merge "Create 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
Elliott Hughes [Fri, 15 Mar 2013 23:52:09 +0000 (23:52 +0000)]
Merge "Hide 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
Elliott Hughes [Fri, 15 Mar 2013 23:21:36 +0000 (23:21 +0000)]
Merge "Clean 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
Elliott Hughes [Fri, 15 Mar 2013 18:26:49 +0000 (18:26 +0000)]
Merge "Remove 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
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."
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
Christopher Ferris [Thu, 14 Mar 2013 23:23:42 +0000 (23:23 +0000)]
Merge "Remove 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
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."
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
Elliott Hughes [Wed, 13 Mar 2013 00:44:33 +0000 (00:44 +0000)]
Merge "Use 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
Christopher Ferris [Tue, 12 Mar 2013 22:24:09 +0000 (22:24 +0000)]
Merge "Break 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
Elliott Hughes [Tue, 12 Mar 2013 19:08:36 +0000 (19:08 +0000)]
Merge "Support 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
Elliott Hughes [Tue, 12 Mar 2013 18:54:27 +0000 (18:54 +0000)]
Merge "Use more types than just 'unsigned' in the linker."
Elliott Hughes [Tue, 12 Mar 2013 17:40:45 +0000 (10:40 -0700)]
Use more types than just 'unsigned' in the linker.
Still chipping away at the situation where every variable in the
linker was of type 'unsigned'. This patch switches counts over to
being size_t and adds an explicit type for init/fini function pointers
and arrays of function pointers.
Also improve logging from CallArray.
Also remove trailing "\n"s from log messages.
Change-Id: Ie036d2622caac50f4d29f0570888bb527661d77e
Elliott Hughes [Tue, 12 Mar 2013 17:24:03 +0000 (17:24 +0000)]
Merge "Use Elf32_Addr instead of unsigned in linker"
Kito Cheng [Tue, 12 Mar 2013 06:58:06 +0000 (14:58 +0800)]
Use Elf32_Addr instead of unsigned in linker
Change-Id: I52dcbb4b0ff0a4052e0ad7a9bbeb2df65c9d2f66
Elliott Hughes [Tue, 12 Mar 2013 01:28:36 +0000 (01:28 +0000)]
Merge "Cache the most-recently used timezone for mktime_tz and localtime_tz."
Elliott Hughes [Tue, 12 Mar 2013 00:17:02 +0000 (17:17 -0700)]
Cache the most-recently used timezone for mktime_tz and localtime_tz.
Normally, the C library implicitly caches your timezone by virtue
of the fact that the prehistoric API assumes a single timezone for
the entire process.
The unfortunate mktime_tz and localtime_tz extensions work around
this, but represent timezones as strings to their callers, so code
that makes heavy use of these needs a cache to be able to perform
acceptably until it can hopefully one day be rewritten to use
java.util.Calendar or icu4c.
Bug:
8270865
Change-Id: I92e3964e86dc33ceac925f819cc5e26ff4203f50
Elliott Hughes [Mon, 11 Mar 2013 17:55:27 +0000 (17:55 +0000)]
Merge "Let bionic use the correct definition of ssize_t."
Elliott Hughes [Mon, 11 Mar 2013 16:42:57 +0000 (16:42 +0000)]
Merge "Upgrade to tzdata2013b."
Elliott Hughes [Mon, 11 Mar 2013 16:41:45 +0000 (09:41 -0700)]
Upgrade to tzdata2013b.
From the release notes:
Changes affecting current and future time stamps:
Haiti uses US daylight-saving rules this year, and presumably future years.
This changes time stamps starting today. (Thanks to Steffen Thorsen.)
Paraguay will end DST on March 24 this year.
(Thanks to Steffen Thorsen.) For now, assume it's just this year.
Morocco does not observe DST during Ramadan;
try to predict Ramadan in Morocco as best we can.
(Thanks to Erik Homoet for the heads-up.)
Change-Id: I98d5290ea5a1d9fb1eeddab1c9e72135dc9e4bd1
Elliott Hughes [Fri, 8 Mar 2013 23:28:52 +0000 (15:28 -0800)]
Let bionic use the correct definition of ssize_t.
Bug:
8253769
Change-Id: I50c7cc20828fc089b83580e039ce9153a6c5a8cc
Elliott Hughes [Thu, 7 Mar 2013 19:57:17 +0000 (19:57 +0000)]
Merge "Regenerate NOTICE files."
Elliott Hughes [Thu, 7 Mar 2013 19:48:58 +0000 (11:48 -0800)]
Regenerate NOTICE files.
Also clean up some obsolete cruft.
Change-Id: Iec3b36f6607f7a08b72de99294ed5b6cd910dd5f
Elliott Hughes [Thu, 7 Mar 2013 00:54:22 +0000 (00:54 +0000)]
Merge "Upgrade to current NetBSD popen/pclose."
Elliott Hughes [Thu, 7 Mar 2013 00:20:55 +0000 (16:20 -0800)]
Upgrade to current NetBSD popen/pclose.
This gets us back to using vfork now our ARM vfork assembler stub is
fixed, and adds the missing thread safety for the 'pidlist'.
Bug:
5335385
Change-Id: Ib08bfa65b2cb9fa695717aae629ea14816bf988d
Brian Carlstrom [Wed, 6 Mar 2013 23:55:56 +0000 (23:55 +0000)]
Merge "Fix typo of DT_NEEDED for DT_NULL"
Brian Carlstrom [Wed, 6 Mar 2013 23:32:16 +0000 (15:32 -0800)]
Fix typo of DT_NEEDED for DT_NULL
(cherry-pick of
138b205ea9efc117fe522c2d7191378023a6e2cd)
Change-Id: Ia895cb3018df55554627f1f61dcdfdada4a961ce
Elliott Hughes [Wed, 6 Mar 2013 23:13:01 +0000 (23:13 +0000)]
Merge "Fix debug malloc."
Elliott Hughes [Wed, 6 Mar 2013 23:03:53 +0000 (15:03 -0800)]
Fix debug malloc.
This was broken by the change to use AT_RANDOM for the stack guards.
Bug:
7959813
Bug:
8330764
Change-Id: I791900092b72a9a900f16585237fa7ad82aaed9f
Elliott Hughes [Wed, 6 Mar 2013 17:25:51 +0000 (17:25 +0000)]
Merge "Fix 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
Brian Carlstrom [Wed, 6 Mar 2013 09:06:16 +0000 (09:06 +0000)]
Merge "Fix 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
Elliott Hughes [Wed, 6 Mar 2013 06:26:55 +0000 (06:26 +0000)]
Merge "More linker cleanup."
Elliott Hughes [Wed, 6 Mar 2013 02:47:58 +0000 (18:47 -0800)]
More linker cleanup.
Change-Id: I9fb3c7c0d4b4ffef0eeaf092d4e30ffe63a08671
Brian Carlstrom [Wed, 6 Mar 2013 01:01:23 +0000 (01:01 +0000)]
Merge "Minor 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
Elliott Hughes [Tue, 5 Mar 2013 22:19:14 +0000 (22:19 +0000)]
Merge "Upgrade 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
Ben Cheng [Tue, 5 Mar 2013 21:04:38 +0000 (21:04 +0000)]
Merge "Add stack unwinding directives to memcpy."
Elliott Hughes [Tue, 5 Mar 2013 20:13:32 +0000 (20:13 +0000)]
Merge "Switch 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
Elliott Hughes [Sat, 2 Mar 2013 01:22:04 +0000 (01:22 +0000)]
Merge "Move 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
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
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.
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.
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
Ben Cheng [Fri, 1 Mar 2013 18:18:33 +0000 (18:18 +0000)]
Merge "Adding strcmp tuned for Cortex-A15."
Ben Cheng [Fri, 1 Mar 2013 18:18:05 +0000 (18:18 +0000)]
Merge "Adding memcpy tuned for Cortex-A15."
Nick Kralevich [Fri, 1 Mar 2013 18:14:47 +0000 (18:14 +0000)]
Merge "unistd.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
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>
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>
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.
Elliott Hughes [Thu, 28 Feb 2013 19:28:53 +0000 (19:28 +0000)]
Merge "Avoid 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
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
Nick Kralevich [Tue, 26 Feb 2013 21:38:10 +0000 (21:38 +0000)]
Merge "libc: 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
Elliott Hughes [Mon, 25 Feb 2013 22:54:54 +0000 (14:54 -0800)]
am
c0e9ddd0: Merge "Reimplement scandir(3)."
* commit '
c0e9ddd002f6084c29c26236d741d64d01713c15':
Reimplement scandir(3).
Elliott Hughes [Mon, 25 Feb 2013 22:43:28 +0000 (22:43 +0000)]
Merge "Reimplement 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
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>.
Elliott Hughes [Fri, 22 Feb 2013 21:46:59 +0000 (21:46 +0000)]
Merge "Add the glibc-compatible names to <sys/endian.h>."
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.
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
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."
Nick Kralevich [Fri, 22 Feb 2013 19:33:52 +0000 (19:33 +0000)]
Merge "libc: add sys/signal.h for compatibility"
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
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
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
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.
Elliott Hughes [Fri, 22 Feb 2013 01:45:02 +0000 (01:45 +0000)]
Merge "Stop 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
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
Nick Kralevich [Fri, 22 Feb 2013 01:22:34 +0000 (01:22 +0000)]
Merge "libc: 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
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.
Elliott Hughes [Thu, 21 Feb 2013 20:05:35 +0000 (20:05 +0000)]
Merge "Fix 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
Jean-Baptiste Queru [Wed, 20 Feb 2013 20:47:58 +0000 (12:47 -0800)]
Fix mako builds. Do not merge.
Revert "Regenerate msm_ion.h."
This reverts commit
3fac8f7f492302ae680288996e31debc645fd684.
Elliott Hughes [Tue, 19 Feb 2013 22:13:53 +0000 (22:13 +0000)]
Merge "use architecture-specific ssize_t definition"
Thorsten Glaser [Sun, 17 Feb 2013 16:50:58 +0000 (16:50 +0000)]
use architecture-specific ssize_t definition
after change 32822 was rejected, this is the more light-weight
version of the fix: libc/include/sys/types.h already - via
libc/kernel/common/linux/posix_types.h - includes a definition
of __kernel_ssize_t from libc/kernel/arch-*/asm/posix_types.h
which is architecture-specific, toolchain-agnostic and also
gets rid of the gcc -Wformat warning (which it issues correctly,
since this i̲s̲ indeed a bug in bionic)
Change-Id: Ie4503ab16628bc25815a836d07556f665e9795c7
Elliott Hughes [Tue, 19 Feb 2013 21:58:18 +0000 (21:58 +0000)]
Merge "stdlib: atexit: include <sys/cdefs.h>"
Elliott Hughes [Tue, 19 Feb 2013 21:37:55 +0000 (21:37 +0000)]
Merge "Fix pthreads functions that should return ESRCH."
Elliott Hughes [Sat, 16 Feb 2013 03:21:51 +0000 (19:21 -0800)]
Fix pthreads functions that should return ESRCH.
imgtec pointed out that pthread_kill(3) was broken, but most of the
other functions that ought to return ESRCH for invalid/exited threads
were equally broken.
Change-Id: I96347f6195549aee0c72dc39063e6c5d06d2e01f
Elliott Hughes [Tue, 19 Feb 2013 19:14:26 +0000 (19:14 +0000)]
Merge "Update linker README."
Elliott Hughes [Tue, 19 Feb 2013 19:13:44 +0000 (11:13 -0800)]
Update linker README.
Change-Id: Icaa353e9cf1848c86e7445f4ad590bdab44f7941