blob: e6959ca65c124f4f1fca716e27a272916c514657 [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
5ENTRY(fallocate)
6 movq %rcx, %r10
7 movl $__NR_fallocate, %eax
8 syscall
9 cmpq $-MAX_ERRNO, %rax
10 jb 1f
11 negl %eax
12 movl %eax, %edi
13 call __set_errno
14 orq $-1, %rax
151:
16 ret
17END(fallocate)
18
19 .globl _C_LABEL(fallocate64)
20 .equ _C_LABEL(fallocate64), _C_LABEL(fallocate)