summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86_64/syscalls/__rt_sigaction.S
blob: 7ce3d8c41dbbcc337a11cb95b319fd01b9f8810a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Generated by gensyscalls.py. Do not edit. */

#include <private/bionic_asm.h>

    .hidden __set_errno

ENTRY(__rt_sigaction)
    movq    %rcx, %r10
    movl    $__NR_rt_sigaction, %eax
    syscall
    cmpq    $-MAX_ERRNO, %rax
    jb      1f
    negl    %eax
    movl    %eax, %edi
    call    __set_errno
1:
    ret
END(__rt_sigaction)
.hidden __rt_sigaction