diff options
| author | Stacey Son <sson@FreeBSD.org> | 2023-09-25 21:24:00 +0300 |
|---|---|---|
| committer | Warner Losh <imp@bsdimp.com> | 2023-10-03 17:14:06 -0600 |
| commit | 3f254cf203e7bebc3758058802f834d9ba6ca3dc (patch) | |
| tree | 14432c66892269899da04dffd7a93e57802cd1e4 /bsd-user/signal.c | |
| parent | d314ae93f1724fa2f5e9636aa6483acf9fa7505f (diff) | |
| download | focaccia-qemu-3f254cf203e7bebc3758058802f834d9ba6ca3dc.tar.gz focaccia-qemu-3f254cf203e7bebc3758058802f834d9ba6ca3dc.zip | |
bsd-user: Implement host_to_target_siginfo.
Used in wait6 system call Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Message-Id: <20230925182425.3163-4-kariem.taha2.7@gmail.com>
Diffstat (limited to 'bsd-user/signal.c')
| -rw-r--r-- | bsd-user/signal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bsd-user/signal.c b/bsd-user/signal.c index b6beab659e..ea82241b70 100644 --- a/bsd-user/signal.c +++ b/bsd-user/signal.c @@ -311,6 +311,12 @@ static void tswap_siginfo(target_siginfo_t *tinfo, const target_siginfo_t *info) } } +void host_to_target_siginfo(target_siginfo_t *tinfo, const siginfo_t *info) +{ + host_to_target_siginfo_noswap(tinfo, info); + tswap_siginfo(tinfo, tinfo); +} + int block_signals(void) { TaskState *ts = (TaskState *)thread_cpu->opaque; |