Displaying 2 results from an estimated 2 matches for "0d7c5c9d".
2020 Aug 27
0
[klibc:master] signal: Add sysconfig setting to force SA_SIGINFO on
...own restorer function, this must also be set so that the
+ * restorer can always use rt_sigreturn().
+ */
+#ifndef _KLIBC_NEEDS_SA_SIGINFO
+# define _KLIBC_NEEDS_SA_SIGINFO 0
+#endif
+
+
/*
* _KLIBC_STATFS_F_TYPE_64:
*
diff --git a/usr/klibc/sigaction.c b/usr/klibc/sigaction.c
index 966bc1c6..0d7c5c9d 100644
--- a/usr/klibc/sigaction.c
+++ b/usr/klibc/sigaction.c
@@ -22,19 +22,26 @@ __extern int __rt_sigaction(int, const struct sigaction *, struct sigaction *,
int sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
{
- int rv;
-
+ unsigned int needed_flags = 0
#if _KLIBC...
2020 Aug 27
0
[klibc:master] alpha: Pass restorer to rt_sigaction() and disable executable stack
...lign 3
+ .type __sigreturn, at function
+ .ent __sigreturn,0
+ .globl __sigreturn
+__sigreturn:
+ mov sp,a0 # struct sigcontext on stack
+ lda v0,__NR_rt_sigreturn(zero)
+ callsys
+ .size __sigreturn,.-__sigreturn
+ .end __sigreturn
diff --git a/usr/klibc/sigaction.c b/usr/klibc/sigaction.c
index 0d7c5c9d..789494db 100644
--- a/usr/klibc/sigaction.c
+++ b/usr/klibc/sigaction.c
@@ -14,7 +14,7 @@ __extern int __rt_sigaction(int, const struct sigaction *, struct sigaction *,
void (*)(void), size_t);
#elif defined(__alpha__)
__extern int __rt_sigaction(int, const struct sigaction *, struct sig...