[libc-commits] [libc] 2921387 - [libc] Add spec for sigdelset and sigfillset.

Paula Toth via libc-commits libc-commits at lists.llvm.org
Thu Apr 23 16:38:59 PDT 2020


Author: Paula Toth
Date: 2020-04-23T16:38:47-07:00
New Revision: 29213878e7dc0c329b57c60aac87a3cf392416fc

URL: https://github.com/llvm/llvm-project/commit/29213878e7dc0c329b57c60aac87a3cf392416fc
DIFF: https://github.com/llvm/llvm-project/commit/29213878e7dc0c329b57c60aac87a3cf392416fc.diff

LOG: [libc] Add spec for sigdelset and sigfillset.

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/libc/config/linux/api.td b/libc/config/linux/api.td
index 741899abcca8..16bb0d79fe93 100644
--- a/libc/config/linux/api.td
+++ b/libc/config/linux/api.td
@@ -270,9 +270,11 @@ def SignalAPI : PublicAPI<"signal.h"> {
   let Functions = [
     "raise",
     "sigaction",
+    "sigdelset",
     "sigprocmask",
     "sigemptyset",
     "sigaddset",
+    "sigfillset",
     "signal",
   ];
 }

diff  --git a/libc/lib/CMakeLists.txt b/libc/lib/CMakeLists.txt
index 39654d8b2267..5b31ad231fc0 100644
--- a/libc/lib/CMakeLists.txt
+++ b/libc/lib/CMakeLists.txt
@@ -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

diff  --git a/libc/spec/posix.td b/libc/spec/posix.td
index dfde4d1d114a..7085e81a6b80 100644
--- a/libc/spec/posix.td
+++ b/libc/spec/posix.td
@@ -157,6 +157,12 @@ def POSIX : StandardSpec<"POSIX"> {
            ArgSpec<ConstRestrictStructSigactionPtr>,
            ArgSpec<RestrictStructSigactionPtr>]
         >,
+        FunctionSpec<
+          "sigdelset",
+          RetValSpec<IntType>,
+          [ArgSpec<SigSetPtrType>,
+           ArgSpec<IntType>]
+        >,
         FunctionSpec<
           "sigprocmask",
           RetValSpec<IntType>,
@@ -170,6 +176,12 @@ def POSIX : StandardSpec<"POSIX"> {
         FunctionSpec<
           "sigaddset",
           RetValSpec<IntType>,
+          [ArgSpec<SigSetPtrType>,
+           ArgSpec<IntType>]
+        >,
+        FunctionSpec<
+          "sigfillset",
+          RetValSpec<IntType>,
           [ArgSpec<SigSetPtrType>]
         >,
       ]


        


More information about the libc-commits mailing list