Elliott Hughes | 0f461e3 | 2014-01-09 10:17:03 -0800 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
2 | |||||
3 | #include <private/bionic_asm.h> | ||||
4 | |||||
5 | ENTRY(prlimit64) | ||||
6 | movq %rcx, %r10 | ||||
7 | movl $__NR_prlimit64, %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 | ||||
15 | 1: | ||||
16 | ret | ||||
17 | END(prlimit64) | ||||
18 | |||||
Elliott Hughes | 986f906 | 2014-02-18 16:42:36 -0800 | [diff] [blame] | 19 | .globl prlimit |
20 | .equ prlimit, prlimit64 |