about summary refs log tree commit diff
path: root/signal/sigaction.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-15 15:23:40 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-18 15:54:39 -0300
commita894053318f1ca246d13bb9efa65bd702df6b63e (patch)
treecb97178b942260e97d5651a4617d63b876123894 /signal/sigaction.c
parentd5ddd583da7ee8928eebfa1d7eee69b557deec9c (diff)
downloadglibc-a894053318f1ca246d13bb9efa65bd702df6b63e.tar.gz
glibc-a894053318f1ca246d13bb9efa65bd702df6b63e.tar.xz
glibc-a894053318f1ca246d13bb9efa65bd702df6b63e.zip
signal: Add __libc_sigaction
The generic implementation basically handle the system agnostic logic
(filtering out the invalid signals) while the __libc_sigaction is
the function with implements the system and architecture bits.

Checked on x86_64-linux-gnu and i686-linux-gnu.
Diffstat (limited to 'signal/sigaction.c')
-rw-r--r--signal/sigaction.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/signal/sigaction.c b/signal/sigaction.c
index 3bfc17945c..8d9f755ccc 100644
--- a/signal/sigaction.c
+++ b/signal/sigaction.c
@@ -17,7 +17,7 @@
 
 #include <errno.h>
 #include <signal.h>
-
+#include <internal-signals.h>
 
 /* If ACT is not NULL, change the action for SIG to *ACT.
    If OACT is not NULL, put the old action for SIG in *OACT.  */
@@ -30,10 +30,7 @@ __sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
       return -1;
     }
 
-  __set_errno (ENOSYS);
-  return -1;
+  return __libc_sigaction (sig, act, oact);
 }
 libc_hidden_def (__sigaction)
-stub_warning (sigaction)
-
 weak_alias (__sigaction, sigaction)