summaryrefslogtreecommitdiffstats
path: root/libc/arch-mips/syscalls
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-11-06 16:20:54 -0800
committerElliott Hughes <enh@google.com>2013-11-06 16:33:39 -0800
commit062092543fdbd6fa2676e4f5b37a15f7bba94332 (patch)
tree1363126a8783cca6b0ae3faf7cab2657d1934323 /libc/arch-mips/syscalls
parent7115c80231aa88272294076c8775c09727ece85a (diff)
downloadbionic-062092543fdbd6fa2676e4f5b37a15f7bba94332.zip
bionic-062092543fdbd6fa2676e4f5b37a15f7bba94332.tar.gz
bionic-062092543fdbd6fa2676e4f5b37a15f7bba94332.tar.bz2
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
Diffstat (limited to 'libc/arch-mips/syscalls')
-rw-r--r--libc/arch-mips/syscalls/__fcntl.S23
1 files changed, 0 insertions, 23 deletions
diff --git a/libc/arch-mips/syscalls/__fcntl.S b/libc/arch-mips/syscalls/__fcntl.S
deleted file mode 100644
index 2288c7e..0000000
--- a/libc/arch-mips/syscalls/__fcntl.S
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Generated by gensyscalls.py. Do not edit. */
-
-#include <asm/unistd.h>
- .text
- .globl __fcntl
- .align 4
- .ent __fcntl
-
-__fcntl:
- .set noreorder
- .cpload $t9
- li $v0, __NR_fcntl
- syscall
- bnez $a3, 1f
- move $a0, $v0
- j $ra
- nop
-1:
- la $t9,__set_errno
- j $t9
- nop
- .set reorder
- .end __fcntl