summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm/syscalls/dup3.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-arm/syscalls/dup3.S')
-rw-r--r--libc/arch-arm/syscalls/dup3.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/libc/arch-arm/syscalls/dup3.S b/libc/arch-arm/syscalls/dup3.S
new file mode 100644
index 0000000..3e47c10
--- /dev/null
+++ b/libc/arch-arm/syscalls/dup3.S
@@ -0,0 +1,14 @@
+/* Generated by gensyscalls.py. Do not edit. */
+
+#include <private/bionic_asm.h>
+
+ENTRY(dup3)
+ mov ip, r7
+ ldr r7, =__NR_dup3
+ swi #0
+ mov r7, ip
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
+END(dup3)