summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86/syscalls/___close.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-x86/syscalls/___close.S')
-rw-r--r--libc/arch-x86/syscalls/___close.S22
1 files changed, 22 insertions, 0 deletions
diff --git a/libc/arch-x86/syscalls/___close.S b/libc/arch-x86/syscalls/___close.S
new file mode 100644
index 0000000..796944b
--- /dev/null
+++ b/libc/arch-x86/syscalls/___close.S
@@ -0,0 +1,22 @@
+/* Generated by gensyscalls.py. Do not edit. */
+
+#include <private/bionic_asm.h>
+
+ENTRY(___close)
+ pushl %ebx
+ .cfi_def_cfa_offset 8
+ .cfi_rel_offset ebx, 0
+ mov 8(%esp), %ebx
+ movl $__NR_close, %eax
+ int $0x80
+ cmpl $-MAX_ERRNO, %eax
+ jb 1f
+ negl %eax
+ pushl %eax
+ call __set_errno_internal
+ addl $4, %esp
+1:
+ popl %ebx
+ ret
+END(___close)
+.hidden ___close