[libc] Add sigprocmask
authorAlex Brachet <alexbrachetmialot@gmail.com>
Mon, 2 Mar 2020 08:47:21 +0000 (03:47 -0500)
committerAlex Brachet <alexbrachetmialot@gmail.com>
Mon, 2 Mar 2020 08:47:21 +0000 (03:47 -0500)
commitcd76a0263990b0991fb91726070ac09a6a74c547
treedc3fd70e452b26246024c85e2807d8c86c28fd83
parent802b22b5c8c30bebc1695a217478be02653c6b53
[libc] Add sigprocmask

Summary: This patch adds `sigprocmask`, `sigemptyset` and `sigaddset`

Reviewers: sivachandra, MaskRay, gchatelet

Reviewed By: sivachandra

Subscribers: mgorny, tschuett, libc-commits

Differential Revision: https://reviews.llvm.org/D75026
16 files changed:
libc/config/linux/api.td
libc/include/signal.h.def
libc/lib/CMakeLists.txt
libc/spec/posix.td
libc/src/signal/linux/CMakeLists.txt
libc/src/signal/linux/sigaddset.cpp [new file with mode: 0644]
libc/src/signal/linux/sigemptyset.cpp [new file with mode: 0644]
libc/src/signal/linux/signal.h
libc/src/signal/linux/sigprocmask.cpp [new file with mode: 0644]
libc/src/signal/sigaddset.h [new file with mode: 0644]
libc/src/signal/sigemptyset.h [new file with mode: 0644]
libc/src/signal/sigprocmask.h [new file with mode: 0644]
libc/test/src/signal/CMakeLists.txt
libc/test/src/signal/raise_test.cpp
libc/test/src/signal/sigaddset_test.cpp [new file with mode: 0644]
libc/test/src/signal/sigprocmask_test.cpp [new file with mode: 0644]