bionic/libc
Colin Cross 3d19a8319b bionic: fix __set_errno for arm64 syscalls that return a 64-bit value
bionic/libc/arch-arm64/syscalls/read.S ends with:
    b.hi __set_errno
    ret
END(read)

If __set_errno returns int, it will set w0 to 0xFFFFFFFF, which means
x0 is 0x00000000FFFFFFFF.  When interpreted as a ssize_t that is
INT_MAX, not -1.

Change __set_errno to return long, which will cause x0 to be set instead
of w0.

Change-Id: I9f9ea0f2995928d2ea240eb2ff7758ecdf0ff412
2014-02-18 12:11:38 -08:00
..
arch-arm Reconfig libc's Android.mk to build for multilib 2014-02-12 13:58:34 -08:00
arch-arm64 Reconfig libc's Android.mk to build for multilib 2014-02-12 13:58:34 -08:00
arch-common/bionic AArch64: Add initial support for AArch64 2013-12-16 17:00:22 -08:00
arch-mips Reconfig libc's Android.mk to build for multilib 2014-02-12 13:58:34 -08:00
arch-mips64 Reconfig libc's Android.mk to build for multilib 2014-02-12 13:58:34 -08:00
arch-x86 Reconfig libc's Android.mk to build for multilib 2014-02-12 13:58:34 -08:00
arch-x86_64 Reconfig libc's Android.mk to build for multilib 2014-02-12 13:58:34 -08:00
bionic bionic: fix __set_errno for arm64 syscalls that return a 64-bit value 2014-02-18 12:11:38 -08:00
include Restore sys_signame for LP64. 2014-02-12 19:04:27 -08:00
kernel Fix NSIG. 2014-02-11 22:16:04 -08:00
netbsd Remove duplicate definitions of MIN and MAX. 2014-02-17 10:57:56 -08:00
private Switch <elf.h> over to linux uapi under the covers. 2014-02-10 18:22:24 -08:00
stdio Fix x86_64 build, clean up intermediate libraries. 2013-10-09 16:00:17 -07:00
stdlib bionic: call stdio cleanup on exit 2013-11-19 09:49:17 +07:00
string Optimize __memset_chk, __memcpy_chk. DO NOT MERGE. 2013-08-14 18:14:43 -07:00
tools Build syscall stubs in their own library. 2014-02-11 13:52:02 -08:00
tzcode Fix x86_64 build, clean up intermediate libraries. 2013-10-09 16:00:17 -07:00
unistd Switch to current upstream getopt_long. 2013-06-25 14:56:17 -07:00
upstream-dlmalloc Fix build warning of initialization but no use. 2012-09-06 09:59:13 -07:00
upstream-freebsd Switch to upstream sleep(3) and usleep(3). 2013-11-20 16:24:16 -08:00
upstream-netbsd bionic: call stdio cleanup on exit 2013-11-19 09:49:17 +07:00
wchar Switch to upstream-freebsd for the unmolested wchar code. 2013-03-01 18:35:56 -08:00
zoneinfo Upgrade to tzdata2013i. 2013-12-20 11:26:19 -08:00
Android.mk Clean up sys_signame and sys_siglist a little. 2014-02-12 17:09:25 -08:00
crt.mk Reconfig libc's Android.mk to build for multilib 2014-02-12 13:58:34 -08:00
MODULE_LICENSE_BSD
NOTICE Regenerate the NOTICE files. 2014-01-07 13:46:11 -08:00
SYSCALLS.TXT [MIPS64] Add syscall related files 2014-02-06 15:39:38 -08:00