[libc] Add sigaction
authorAlex Brachet <alexbrachetmialot@gmail.com>
Wed, 18 Mar 2020 05:08:59 +0000 (01:08 -0400)
committerAlex Brachet <alexbrachetmialot@gmail.com>
Wed, 18 Mar 2020 05:08:59 +0000 (01:08 -0400)
commit4d35055635ab91e640e8ae67c312ea6091ef7dae
treea1db770d5ed25c3a41955ff0a46588ef6708ac23
parent9bca8fc4cf5d290b576618d14a105fafe80cf5ae
[libc] Add sigaction

Summary: This patch adds `sigaction` and the `sa_restorer` signal trampoline function `__restore_rt`

Reviewers: sivachandra, MaskRay, PaulkaToast

Reviewed By: sivachandra

Subscribers: gchatelet, mgorny, tschuett, libc-commits

Differential Revision: https://reviews.llvm.org/D75802
libc/config/linux/api.td
libc/config/linux/signal.h.in
libc/lib/CMakeLists.txt
libc/spec/posix.td
libc/spec/stdc.td
libc/src/signal/linux/CMakeLists.txt
libc/src/signal/linux/__restore.cpp [new file with mode: 0644]
libc/src/signal/linux/sigaction.cpp [new file with mode: 0644]
libc/src/signal/sigaction.h [new file with mode: 0644]
libc/test/src/signal/CMakeLists.txt
libc/test/src/signal/sigaction_test.cpp [new file with mode: 0644]