summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm/syscalls/truncate64.S
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-arm/syscalls/truncate64.S')
-rw-r--r--libc/arch-arm/syscalls/truncate64.S15
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/arch-arm/syscalls/truncate64.S b/libc/arch-arm/syscalls/truncate64.S
new file mode 100644
index 0000000..059bd97
--- /dev/null
+++ b/libc/arch-arm/syscalls/truncate64.S
@@ -0,0 +1,15 @@
+/* autogenerated by gensyscalls.py */
+#include <asm/unistd.h>
+#include <linux/err.h>
+#include <machine/asm.h>
+
+ENTRY(truncate64)
+ mov ip, r7
+ ldr r7, =__NR_truncate64
+ swi #0
+ mov r7, ip
+ cmn r0, #(MAX_ERRNO + 1)
+ bxls lr
+ neg r0, r0
+ b __set_errno
+END(truncate64)