summaryrefslogtreecommitdiff
path: root/newlib/libc/sys/sysvi386/close.s
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/sysvi386/close.s')
-rw-r--r--newlib/libc/sys/sysvi386/close.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/libc/sys/sysvi386/close.s b/newlib/libc/sys/sysvi386/close.s
new file mode 100644
index 00000000000..e46c0c13dd2
--- /dev/null
+++ b/newlib/libc/sys/sysvi386/close.s
@@ -0,0 +1,9 @@
+ .globl _close
+ .globl close
+_close:
+close:
+ movl $6, %eax
+ lcall $7,$0
+ jb _cerror
+ xor %eax, %eax
+ ret