blob: c8f5b6b831401a6cbfdce511d2c73d7989dabc38 [file] [log] [blame]
Serban Constantinescu7f8863d2013-10-10 23:05:06 +01001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Serban Constantinescu7f8863d2013-10-10 23:05:06 +01004
5ENTRY(ftruncate)
6 stp x29, x30, [sp, #-16]!
7 mov x29, sp
8 str x8, [sp, #-16]!
9
10 mov x8, __NR_ftruncate
11 svc #0
12
13 ldr x8, [sp], #16
14 ldp x29, x30, [sp], #16
15
16 cmn x0, #(MAX_ERRNO + 1)
17 cneg x0, x0, hi
18 b.hi __set_errno
19
20 ret
21END(ftruncate)
22
Elliott Hughes986f9062014-02-18 16:42:36 -080023 .globl ftruncate64
24 .equ ftruncate64, ftruncate