clarify the purpose of this project
[nyanglibc.git] / grp / setgroups.s
blob4868a059f3d199d9216372d020dafa3dba606c1a
1 .text
2 .p2align 4,,15
3 .globl setgroups
4 .hidden setgroups
5 .type setgroups, @function
6 setgroups:
7 cmpq $0, __nptl_setxid@GOTPCREL(%rip)
8 jne .L11
9 movl $116, %eax
10 #APP
11 # 33 "../sysdeps/unix/sysv/linux/setgroups.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 movq %rdi, 8(%rsp)
24 movq %rsp, %rdi
25 movl $116, (%rsp)
26 movq %rsi, 16(%rsp)
27 call __nptl_setxid@PLT
28 addq $56, %rsp
29 ret
30 .p2align 4,,10
31 .p2align 3
32 .L12:
33 movq __libc_errno@gottpoff(%rip), %rdx
34 negl %eax
35 movl %eax, %fs:(%rdx)
36 movl $-1, %eax
37 ret
38 .size setgroups, .-setgroups
39 .weak __nptl_setxid
40 .hidden __nptl_setxid