Displaying 2 results from an estimated 2 matches for "c1ea5fdd".
2020 Aug 29
0
[klibc:master] ia64: sigaction: Make signal updates atomic
...signal while we're (potentially) updating its descriptor
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/klibc/arch/ia64/sigaction.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/usr/klibc/arch/ia64/sigaction.c b/usr/klibc/arch/ia64/sigaction.c
index c1ea5fdd..3d2dbd44 100644
--- a/usr/klibc/arch/ia64/sigaction.c
+++ b/usr/klibc/arch/ia64/sigaction.c
@@ -21,6 +21,7 @@ __extern int ____rt_sigaction(int, const struct sigaction *, struct sigaction *,
int __rt_sigaction(int sig, struct sigaction *act,
struct sigaction *oact, size_t size)
{
+ sigset_...
2020 Aug 29
0
[klibc:master] ia64: Fix sigaction function implementation
...lib-y := vfork.o setjmp.o sigaction.o pipe.o syscall.o
klib-y += ../../libgcc/__divdi3.o ../../libgcc/__divsi3.o
klib-y += ../../libgcc/__udivdi3.o ../../libgcc/__udivsi3.o
diff --git a/usr/klibc/arch/ia64/sigaction.c b/usr/klibc/arch/ia64/sigaction.c
new file mode 100644
index 00000000..c1ea5fdd
--- /dev/null
+++ b/usr/klibc/arch/ia64/sigaction.c
@@ -0,0 +1,50 @@
+/*
+ * sigaction.c
+ */
+
+#include <signal.h>
+#include <sys/syscall.h>
+
+/* We use -mno-pic so our function pointers are straight to the function entry
+ point, but the kernel always expects a descriptor. Thus we...