summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/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-x86/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-x86/syscalls')
-rw-r--r--libc/arch-x86/syscalls/__fcntl.S28
1 files changed, 0 insertions, 28 deletions
diff --git a/libc/arch-x86/syscalls/__fcntl.S b/libc/arch-x86/syscalls/__fcntl.S
deleted file mode 100644
index e0d069a..0000000
--- a/libc/arch-x86/syscalls/__fcntl.S
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Generated by gensyscalls.py. Do not edit. */
-
-#include <asm/unistd.h>
-#include <linux/err.h>
-#include <machine/asm.h>
-
-ENTRY(__fcntl)
- pushl %ebx
- pushl %ecx
- pushl %edx
- mov 16(%esp), %ebx
- mov 20(%esp), %ecx
- mov 24(%esp), %edx
- movl $__NR_fcntl, %eax
- int $0x80
- cmpl $-MAX_ERRNO, %eax
- jb 1f
- negl %eax
- pushl %eax
- call __set_errno
- addl $4, %esp
- orl $-1, %eax
-1:
- popl %edx
- popl %ecx
- popl %ebx
- ret
-END(__fcntl)