Home | History | Annotate | Download | only in syscalls
      1 /* autogenerated by gensyscalls.py */
      2 #include <sys/linux-syscalls.h>
      3 
      4     .text
      5     .type fchownat, @function
      6     .globl fchownat
      7     .align 4
      8 
      9 fchownat:
     10 
     11     /* get ready for additonal arg */
     12     mov.l   @r15, r0
     13 
     14     /* invoke trap */
     15     mov.l   0f, r3  /* trap num */
     16     trapa   #(5 + 0x10)
     17 
     18     /* check return value */
     19     cmp/pz  r0
     20     bt      __NR_fchownat_end
     21 
     22     /* keep error number */
     23     sts.l   pr, @-r15
     24     mov.l   1f, r1
     25     jsr     @r1
     26     mov     r0, r4
     27     lds.l   @r15+, pr
     28 
     29 __NR_fchownat_end:
     30     rts
     31     nop
     32 
     33     .align  2
     34 0:  .long   __NR_fchownat
     35 1:  .long   __set_syscall_errno
     36