search for: _klibc_needs_sigaction_fixup

Displaying 4 results from an estimated 4 matches for "_klibc_needs_sigaction_fixup".

2020 Aug 29
0
[klibc:master] signal: Add config flag for additional sigaction fixup
...| 20 ++++++++++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/usr/include/klibc/sysconfig.h b/usr/include/klibc/sysconfig.h index 5722e04f..d658ad30 100644 --- a/usr/include/klibc/sysconfig.h +++ b/usr/include/klibc/sysconfig.h @@ -176,6 +176,17 @@ #endif +/* + * _KLIBC_NEEDS_SIGACTION_FIXUP + * + * On some architectures, struct sigaction needs additional + * changes before passing to the kernel. + */ +#ifndef _KLIBC_NEEDS_SIGACTION_FIXUP +# define _KLIBC_NEEDS_SIGACTION_FIXUP 0 +#endif + + /* * _KLIBC_STATFS_F_TYPE_64: * diff --git a/usr/klibc/sigaction.c b/usr/klibc/sigaction.c...
2020 Aug 28
0
[klibc:ia64-signal-fix] signal: Add config flag for additional sigaction fixup
...igaction.c | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/usr/include/klibc/sysconfig.h b/usr/include/klibc/sysconfig.h index 5722e04f..d658ad30 100644 --- a/usr/include/klibc/sysconfig.h +++ b/usr/include/klibc/sysconfig.h @@ -176,6 +176,17 @@ #endif +/* + * _KLIBC_NEEDS_SIGACTION_FIXUP + * + * On some architectures, struct sigaction needs additional + * changes before passing to the kernel. + */ +#ifndef _KLIBC_NEEDS_SIGACTION_FIXUP +# define _KLIBC_NEEDS_SIGACTION_FIXUP 0 +#endif + + /* * _KLIBC_STATFS_F_TYPE_64: * diff --git a/usr/klibc/sigaction.c b/usr/klibc/sigaction.c...
2020 Aug 29
0
[klibc:master] ia64: Fix sigaction function implementation
...r, and -mno-pic does not set any ELF flags that the kernel could detect. Thus to fix this regression we must construct descriptors solely for passing to/from the kernel. Signed-off-by: Jessica Clarke <jrtc27 at jrtc27.com> [bwh: Moved the fix-up into an arch-specific source file and defined _KLIBC_NEEDS_SIGACTION_FIXUP] Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/include/arch/ia64/klibc/archconfig.h | 3 ++ usr/klibc/SYSCALLS.def | 3 +- usr/klibc/arch/ia64/Kbuild | 2 +- usr/klibc/arch/ia64/sigaction.c | 50 ++++++++++++++++++++++++++++++++ 4...
2020 Aug 28
0
[klibc:ia64-signal-fix] ia64: Fix sigaction struct layout and function implementation
...e kernel for signal handling, it always expects a descriptor, and -mno-pic does not set any ELF flags that the kernel could detect. Thus to fix this regression we must construct descriptors solely for passing to/from the kernel. [bwh: Moved the fix-up into an arch-specific source file and defined _KLIBC_NEEDS_SIGACTION_FIXUP] --- usr/include/arch/ia64/klibc/archconfig.h | 3 ++ usr/klibc/SYSCALLS.def | 3 +- usr/klibc/arch/ia64/Kbuild | 2 +- usr/klibc/arch/ia64/sigaction.c | 50 ++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 2 deletions(-) diff --git...