Elliott Hughes | f64b8ea | 2014-02-03 16:20:46 -0800 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
| 2 | |
| 3 | #include <private/bionic_asm.h> |
| 4 | |
Dan Albert | bc9f9f2 | 2014-08-08 15:19:20 -0700 | [diff] [blame] | 5 | .hidden __set_errno |
| 6 | |
Elliott Hughes | f64b8ea | 2014-02-03 16:20:46 -0800 | [diff] [blame] | 7 | ENTRY(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 Albert | 3726f9c | 2014-08-08 15:15:29 -0700 | [diff] [blame] | 15 | call __set_errno |
Elliott Hughes | f64b8ea | 2014-02-03 16:20:46 -0800 | [diff] [blame] | 16 | 1: |
| 17 | ret |
| 18 | END(fallocate) |
| 19 | |
Elliott Hughes | 986f906 | 2014-02-18 16:42:36 -0800 | [diff] [blame] | 20 | .globl fallocate64 |
| 21 | .equ fallocate64, fallocate |