OSDN Git Service

Clean up the 32-bit kernel support, fix LP64 fcntl declaration.
authorElliott Hughes <enh@google.com>
Thu, 7 Nov 2013 00:20:54 +0000 (16:20 -0800)
committerElliott Hughes <enh@google.com>
Thu, 7 Nov 2013 00:33:39 +0000 (16:33 -0800)
commit062092543fdbd6fa2676e4f5b37a15f7bba94332
tree1363126a8783cca6b0ae3faf7cab2657d1934323
parent7115c80231aa88272294076c8775c09727ece85a
Clean up the 32-bit kernel support, fix LP64 fcntl declaration.

In practice, thanks to all the registers the stubs don't actually change,
but it's confusing to have an incorrect declaration.

I suspect that fcntl remains broken for aarch64; it happens to work for
x86_64 because the first vararg argument gets placed in the right register
anyway, but I have no reason to believe that's true for aarch64.

This patch adds a unit test, though, so we'll be able to tell when we get
as far as running the unit tests.

Change-Id: I58dd0054fe99d7d51d04c22781d8965dff1afbf3
19 files changed:
libc/Android.mk
libc/SYSCALLS.TXT
libc/arch-arm/syscalls.mk
libc/arch-arm/syscalls/__fcntl.S [deleted file]
libc/arch-mips/syscalls.mk
libc/arch-mips/syscalls/__fcntl.S [deleted file]
libc/arch-x86/syscalls.mk
libc/arch-x86/syscalls/__fcntl.S [deleted file]
libc/bionic/__get_tls.cpp [deleted file]
libc/bionic/fcntl.c [deleted file]
libc/bionic/fstatfs.c [deleted file]
libc/bionic/legacy_32_bit_support.cpp [new file with mode: 0644]
libc/bionic/lseek64.c [deleted file]
libc/bionic/ndk_cruft.cpp
libc/bionic/pread.c [deleted file]
libc/bionic/pwrite.c [deleted file]
libc/bionic/statfs.c [deleted file]
tests/Android.mk
tests/fcntl_test.cpp [new file with mode: 0644]