blob: 1c4dc68da925aa4ac5444ec232b7e9e7c6a867de [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07004
5ENTRY(pread64)
6 movq %rcx, %r10
7 movl $__NR_pread64, %eax
8 syscall
9 cmpq $-MAX_ERRNO, %rax
10 jb 1f
11 negl %eax
12 movl %eax, %edi
13 call __set_errno
Elliott Hughese4ffd9f2013-10-01 13:29:43 -0700141:
15 ret
16END(pread64)
Elliott Hughes8fbf8de2013-11-06 13:10:37 -080017
Elliott Hughes986f9062014-02-18 16:42:36 -080018 .globl pread
19 .equ pread, pread64