]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blob - libc/arch-sh/syscalls/__setreuid.S
stdlib: optimize bsearch()
[android-sdk/platform-bionic.git] / libc / arch-sh / syscalls / __setreuid.S
1 /* autogenerated by gensyscalls.py */
2 #include <sys/linux-syscalls.h>
4     .text
5     .type __setreuid, @function
6     .globl __setreuid
7     .align 4
9 __setreuid:
11     /* invoke trap */
12     mov.l   0f, r3  /* trap num */
13     trapa   #(2 + 0x10)
15     /* check return value */
16     cmp/pz  r0
17     bt      __NR_setreuid32_end
19     /* keep error number */
20     sts.l   pr, @-r15
21     mov.l   1f, r1
22     jsr     @r1
23     mov     r0, r4
24     lds.l   @r15+, pr
26 __NR_setreuid32_end:
27     rts
28     nop
30     .align  2
31 0:  .long   __NR_setreuid32
32 1:  .long   __set_syscall_errno