blob: 518ab73d76c88d4a7f8da1cd769a53d888cfad5e [file] [log] [blame]
Serban Constantinescu7f8863d2013-10-10 23:05:06 +01001/* Generated by gensyscalls.py. Do not edit. */
2
Elliott Hughesed744842013-11-07 10:31:05 -08003#include <private/bionic_asm.h>
Serban Constantinescu7f8863d2013-10-10 23:05:06 +01004
5ENTRY(getrlimit)
Serban Constantinescu7f8863d2013-10-10 23:05:06 +01006 mov x8, __NR_getrlimit
7 svc #0
8
Serban Constantinescu7f8863d2013-10-10 23:05:06 +01009 cmn x0, #(MAX_ERRNO + 1)
10 cneg x0, x0, hi
Elliott Hughes011e1112014-09-08 15:25:01 -070011 b.hi __set_errno_internal
Serban Constantinescu7f8863d2013-10-10 23:05:06 +010012
13 ret
14END(getrlimit)
Elliott Hughes0f461e32014-01-09 10:17:03 -080015
Elliott Hughes986f9062014-02-18 16:42:36 -080016 .globl getrlimit64
17 .equ getrlimit64, getrlimit