Skip to content

Commit

Permalink
[libc] Add spec for sigdelset and sigfillset.
Browse files Browse the repository at this point in the history
Summary: Caught by libc-tidy from patch D77281.

Reviewers: abrachet, sivachandra

Reviewed By: abrachet

Subscribers: mgorny, tschuett, libc-commits

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D78703
  • Loading branch information
PaulkaToast committed Apr 23, 2020
1 parent 248a5db commit 2921387
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc/config/linux/api.td
Expand Up @@ -270,9 +270,11 @@ def SignalAPI : PublicAPI<"signal.h"> {
let Functions = [
"raise",
"sigaction",
"sigdelset",
"sigprocmask",
"sigemptyset",
"sigaddset",
"sigfillset",
"signal",
];
}
Expand Down
2 changes: 2 additions & 0 deletions libc/lib/CMakeLists.txt
Expand Up @@ -11,9 +11,11 @@ add_entrypoint_library(
# signal.h entrypoints
libc.src.signal.raise
libc.src.signal.sigaction
libc.src.signal.sigdelset
libc.src.signal.sigaddset
libc.src.signal.sigemptyset
libc.src.signal.sigprocmask
libc.src.signal.sigfillset
libc.src.signal.signal

# stdlib.h entrypoints
Expand Down
12 changes: 12 additions & 0 deletions libc/spec/posix.td
Expand Up @@ -157,6 +157,12 @@ def POSIX : StandardSpec<"POSIX"> {
ArgSpec<ConstRestrictStructSigactionPtr>,
ArgSpec<RestrictStructSigactionPtr>]
>,
FunctionSpec<
"sigdelset",
RetValSpec<IntType>,
[ArgSpec<SigSetPtrType>,
ArgSpec<IntType>]
>,
FunctionSpec<
"sigprocmask",
RetValSpec<IntType>,
Expand All @@ -170,6 +176,12 @@ def POSIX : StandardSpec<"POSIX"> {
FunctionSpec<
"sigaddset",
RetValSpec<IntType>,
[ArgSpec<SigSetPtrType>,
ArgSpec<IntType>]
>,
FunctionSpec<
"sigfillset",
RetValSpec<IntType>,
[ArgSpec<SigSetPtrType>]
>,
]
Expand Down

0 comments on commit 2921387

Please sign in to comment.