blob: 91a2e6544dba68bfd199fcd2a9bc1c84ffa5ca22 [file] [log] [blame]
Elliott Hughesf64b8ea2014-02-03 16:20:46 -08001/* Generated by gensyscalls.py. Do not edit. */
2
3#include <private/bionic_asm.h>
4
Dan Albertbc9f9f22014-08-08 15:19:20 -07005 .hidden __set_errno
6
Elliott Hughesf64b8ea2014-02-03 16:20:46 -08007ENTRY(fallocate)
8 movq %rcx, %r10
9 movl $__NR_fallocate, %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 Hughesf64b8ea2014-02-03 16:20:46 -0800161:
17 ret
18END(fallocate)
19
Elliott Hughes986f9062014-02-18 16:42:36 -080020 .globl fallocate64
21 .equ fallocate64, fallocate