blob: a1e0ea1210023a0e1193362d6a6a28e767e6a6de [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07003#include <asm/unistd.h>
4#include <linux/err.h>
5#include <machine/asm.h>
6
7ENTRY(pwrite64)
8 movq %rcx, %r10
9 movl $__NR_pwrite64, %eax
10 syscall
11 cmpq $-MAX_ERRNO, %rax
12 jb 1f
13 negl %eax
14 movl %eax, %edi
15 call __set_errno
16 orq $-1, %rax
171:
18 ret
19END(pwrite64)
Elliott Hughes8fbf8de2013-11-06 13:10:37 -080020
21 .globl _C_LABEL(pwrite)
22 .equ _C_LABEL(pwrite), _C_LABEL(pwrite64)