summaryrefslogtreecommitdiff
path: root/sys/compat/common
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2021-11-01 05:07:15 +0000
committerthorpej <thorpej@NetBSD.org>2021-11-01 05:07:15 +0000
commiteb96f2ebad312da7489a018c02fd03c8dbe82bae (patch)
tree30c44005eb1fa6d100b6bf3b3115aa0e02107671 /sys/compat/common
parent540021409c37ce67e3a28a40e3b15431d458d3cc (diff)
Use "stack_t" instead of "struct sigaltstack", as the former is the
newer standardized name. NFC.
Diffstat (limited to 'sys/compat/common')
-rw-r--r--sys/compat/common/compat_sigaltstack.h4
-rw-r--r--sys/compat/common/kern_sig_43.c14
2 files changed, 9 insertions, 9 deletions
diff --git a/sys/compat/common/compat_sigaltstack.h b/sys/compat/common/compat_sigaltstack.h
index 3268a34fe57..bc9054b81f0 100644
--- a/sys/compat/common/compat_sigaltstack.h
+++ b/sys/compat/common/compat_sigaltstack.h
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_sigaltstack.h,v 1.3 2011/06/05 09:37:10 dsl Exp $ */
+/* $NetBSD: compat_sigaltstack.h,v 1.4 2021/11/01 05:07:16 thorpej Exp $ */
/* Wrapper for calling sigaltstack1() from compat (or other) code */
@@ -17,7 +17,7 @@
#define compat_sigaltstack(uap, compat_ss, ss_onstack, ss_disable) do { \
struct compat_ss css; \
- struct sigaltstack nss, oss; \
+ stack_t nss, oss; \
int error; \
\
if (SCARG_COMPAT_PTR(uap, nss)) { \
diff --git a/sys/compat/common/kern_sig_43.c b/sys/compat/common/kern_sig_43.c
index 9e4d333a556..d50241e5bde 100644
--- a/sys/compat/common/kern_sig_43.c
+++ b/sys/compat/common/kern_sig_43.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sig_43.c,v 1.37 2021/09/07 11:43:02 riastradh Exp $ */
+/* $NetBSD: kern_sig_43.c,v 1.38 2021/11/01 05:07:16 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig_43.c,v 1.37 2021/09/07 11:43:02 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig_43.c,v 1.38 2021/11/01 05:07:16 thorpej Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -70,8 +70,8 @@ void compat_43_sigmask_to_sigset(const int *, sigset_t *);
void compat_43_sigset_to_sigmask(const sigset_t *, int *);
void compat_43_sigvec_to_sigaction(const struct sigvec *, struct sigaction *);
void compat_43_sigaction_to_sigvec(const struct sigaction *, struct sigvec *);
-void compat_43_sigstack_to_sigaltstack(const struct sigstack *, struct sigaltstack *);
-void compat_43_sigaltstack_to_sigstack(const struct sigaltstack *, struct sigstack *);
+void compat_43_sigstack_to_sigaltstack(const struct sigstack *, stack_t *);
+void compat_43_sigaltstack_to_sigstack(const stack_t *, struct sigstack *);
static struct syscall_package kern_sig_43_syscalls[] = {
{ SYS_compat_43_osigblock, 0, (sy_call_t *)compat_43_sys_sigblock },
@@ -121,7 +121,7 @@ compat_43_sigaction_to_sigvec(const struct sigaction *sa, struct sigvec *sv)
}
void
-compat_43_sigstack_to_sigaltstack(const struct sigstack *ss, struct sigaltstack *sa)
+compat_43_sigstack_to_sigaltstack(const struct sigstack *ss, stack_t *sa)
{
memset(sa, 0, sizeof(*sa));
sa->ss_sp = ss->ss_sp;
@@ -132,7 +132,7 @@ compat_43_sigstack_to_sigaltstack(const struct sigstack *ss, struct sigaltstack
}
void
-compat_43_sigaltstack_to_sigstack(const struct sigaltstack *sa, struct sigstack *ss)
+compat_43_sigaltstack_to_sigstack(const stack_t *sa, struct sigstack *ss)
{
memset(ss, 0, sizeof(*ss));
ss->ss_sp = sa->ss_sp;
@@ -197,7 +197,7 @@ compat_43_sys_sigstack(struct lwp *l, const struct compat_43_sys_sigstack_args *
syscallarg(struct sigstack *) oss;
} */
struct sigstack nss, oss;
- struct sigaltstack nsa, osa;
+ stack_t nsa, osa;
int error;
if (SCARG(uap, nss)) {