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 | |
| 5 | ENTRY(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 |
Elliott Hughes | 011e111 | 2014-09-08 15:25:01 -0700 | [diff] [blame] | 13 | call __set_errno_internal |
Elliott Hughes | f64b8ea | 2014-02-03 16:20:46 -0800 | [diff] [blame] | 14 | 1: |
| 15 | ret |
| 16 | END(fallocate) |
| 17 | |
Christopher Ferris | fa5faa0 | 2015-03-24 16:50:46 -0700 | [diff] [blame] | 18 | ALIAS_SYMBOL(fallocate64, fallocate) |