blob: 0aa6cf3bda677b3280d1dee3d067229e42223158 [file] [log] [blame]
Elliott Hughes103ccde2013-10-16 14:27:59 -07001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Elliott Hughese4ffd9f2013-10-01 13:29:43 -07004
5ENTRY(setrlimit)
6 movl $__NR_setrlimit, %eax
7 syscall
8 cmpq $-MAX_ERRNO, %rax
9 jb 1f
10 negl %eax
11 movl %eax, %edi
Dan Albert512bc522014-08-07 10:46:42 -070012 call PIC_PLT(__set_errno)
Elliott Hughese4ffd9f2013-10-01 13:29:43 -0700131:
14 ret
15END(setrlimit)
Elliott Hughes0f461e32014-01-09 10:17:03 -080016
Elliott Hughes986f9062014-02-18 16:42:36 -080017 .globl setrlimit64
18 .equ setrlimit64, setrlimit