blob: 8f6edd6fc811669e56cd176cf3eef71731e2bea7 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/* autogenerated by gensyscalls.py */
Elliott Hughes7582a9c2013-02-06 17:08:15 -08002#include <machine/asm.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08003#include <sys/linux-syscalls.h>
4
Elliott Hughes7582a9c2013-02-06 17:08:15 -08005ENTRY(getrlimit)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08006 pushl %ebx
7 pushl %ecx
8 mov 12(%esp), %ebx
9 mov 16(%esp), %ecx
10 movl $__NR_ugetrlimit, %eax
11 int $0x80
12 cmpl $-129, %eax
13 jb 1f
14 negl %eax
15 pushl %eax
16 call __set_errno
17 addl $4, %esp
18 orl $-1, %eax
191:
20 popl %ecx
21 popl %ebx
22 ret
Elliott Hughes7582a9c2013-02-06 17:08:15 -080023END(getrlimit)