aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/signal-common.h
diff options
context:
space:
mode:
authorWarner Losh <imp@bsdimp.com>2022-01-08 21:24:18 -0700
committerWarner Losh <imp@bsdimp.com>2022-01-28 15:53:41 -0700
commitc93cbac1f4aab40c3fd4ac7488c7e3365ec5c894 (patch)
tree1ac83ddd833bf3ddf179c69c952cd7f2f05fb163 /bsd-user/signal-common.h
parent38be620c950dcf629ba3217c6a183fee0e790fa8 (diff)
bsd-user/signal.c: sigset manipulation routines.
target_sigemptyset: resets a set to having no bits set target_sigaddset: adds a signal to a set target_sigismember: returns true when signal is a member host_to_target_sigset_internal: convert host sigset to target host_to_target_sigset: convert host sigset to target target_to_host_sigset_internal: convert target sigset to host target_to_host_sigset: convert target sigset to host Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Kyle Evans <kevans@freebsd.org> Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'bsd-user/signal-common.h')
-rw-r--r--bsd-user/signal-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bsd-user/signal-common.h b/bsd-user/signal-common.h
index 80e9503238..ee819266f5 100644
--- a/bsd-user/signal-common.h
+++ b/bsd-user/signal-common.h
@@ -14,11 +14,13 @@ abi_long do_sigaltstack(abi_ulong uss_addr, abi_ulong uoss_addr, abi_ulong sp);
long do_sigreturn(CPUArchState *env);
void force_sig_fault(int sig, int code, abi_ulong addr);
int host_to_target_signal(int sig);
+void host_to_target_sigset(target_sigset_t *d, const sigset_t *s);
void process_pending_signals(CPUArchState *env);
void queue_signal(CPUArchState *env, int sig, int si_type,
target_siginfo_t *info);
void signal_init(void);
int target_to_host_signal(int sig);
+void target_to_host_sigset(sigset_t *d, const target_sigset_t *s);
/*
* Within QEMU the top 8 bits of si_code indicate which of the parts of the