blob: 1d042efc27e395462e87a200a8589b52df71fbb9 [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
Dan Albertbc9f9f22014-08-08 15:19:20 -07005 .hidden __set_errno
6
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07007ENTRY(pread64)
8 movq %rcx, %r10
9 movl $__NR_pread64, %eax
10 syscall
11 cmpq $-MAX_ERRNO, %rax
12 jb 1f
13 negl %eax
14 movl %eax, %edi
Dan Albert3726f9c2014-08-08 15:15:29 -070015 call __set_errno
Elliott Hughese4ffd9f2013-10-01 13:29:43 -0700161:
17 ret
18END(pread64)
Elliott Hughes8fbf8de2013-11-06 13:10:37 -080019
Elliott Hughes986f9062014-02-18 16:42:36 -080020 .globl pread
21 .equ pread, pread64