clarify the purpose of this project
[nyanglibc.git] / posix / setresgid.s
blobac0637aa4653c552c550a62c46cf9b459c20a3c0
1 .text
2 .p2align 4,,15
3 .globl __setresgid
4 .hidden __setresgid
5 .type __setresgid, @function
6 __setresgid:
7 cmpq $0, __nptl_setxid@GOTPCREL(%rip)
8 jne .L11
9 movl $119, %eax
10 #APP
11 # 29 "../sysdeps/unix/sysv/linux/setresgid.c" 1
12 syscall
14 # 0 "" 2
15 #NO_APP
16 cmpq $-4096, %rax
17 ja .L12
18 rep ret
19 .p2align 4,,10
20 .p2align 3
21 .L11:
22 subq $56, %rsp
23 movl %edi, %eax
24 movq %rax, 8(%rsp)
25 movl %esi, %eax
26 movq %rsp, %rdi
27 movq %rax, 16(%rsp)
28 movl %edx, %eax
29 movl $119, (%rsp)
30 movq %rax, 24(%rsp)
31 call __nptl_setxid@PLT
32 addq $56, %rsp
33 ret
34 .p2align 4,,10
35 .p2align 3
36 .L12:
37 movq __libc_errno@gottpoff(%rip), %rdx
38 negl %eax
39 movl %eax, %fs:(%rdx)
40 movl $-1, %eax
41 ret
42 .size __setresgid, .-__setresgid
43 .weak setresgid
44 .set setresgid,__setresgid
45 .weak __nptl_setxid
46 .hidden __nptl_setxid