[libc] Add spec for sigdelset and sigfillset.
authorPaula Toth <paulatoth@google.com>
Thu, 23 Apr 2020 23:30:23 +0000 (16:30 -0700)
committerPaula Toth <paulatoth@google.com>
Thu, 23 Apr 2020 23:38:47 +0000 (16:38 -0700)
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

libc/config/linux/api.td
libc/lib/CMakeLists.txt
libc/spec/posix.td

index 741899a..16bb0d7 100644 (file)
@@ -270,9 +270,11 @@ def SignalAPI : PublicAPI<"signal.h"> {
   let Functions = [
     "raise",
     "sigaction",
+    "sigdelset",
     "sigprocmask",
     "sigemptyset",
     "sigaddset",
+    "sigfillset",
     "signal",
   ];
 }
index 39654d8..5b31ad2 100644 (file)
@@ -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
index dfde4d1..7085e81 100644 (file)
@@ -158,6 +158,12 @@ def POSIX : StandardSpec<"POSIX"> {
            ArgSpec<RestrictStructSigactionPtr>]
         >,
         FunctionSpec<
+          "sigdelset",
+          RetValSpec<IntType>,
+          [ArgSpec<SigSetPtrType>,
+           ArgSpec<IntType>]
+        >,
+        FunctionSpec<
           "sigprocmask",
           RetValSpec<IntType>,
           [ArgSpec<IntType>, ArgSpec<ConstRestrictSigSetType>, ArgSpec<RestrictSigSetType>]
@@ -170,6 +176,12 @@ def POSIX : StandardSpec<"POSIX"> {
         FunctionSpec<
           "sigaddset",
           RetValSpec<IntType>,
+          [ArgSpec<SigSetPtrType>,
+           ArgSpec<IntType>]
+        >,
+        FunctionSpec<
+          "sigfillset",
+          RetValSpec<IntType>,
           [ArgSpec<SigSetPtrType>]
         >,
       ]