blob: a10f76f66845ca478cd784317b3c831b7461a986 [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(pwrite64)
6 stp x29, x30, [sp, #-16]!
7 mov x29, sp
8 str x8, [sp, #-16]!
9
10 mov x8, __NR_pwrite64
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(pwrite64)
Elliott Hughes8fbf8de2013-11-06 13:10:37 -080022
23 .globl _C_LABEL(pwrite)
24 .equ _C_LABEL(pwrite), _C_LABEL(pwrite64)